Commit ae150327 authored by Oksana Zhuravlova's avatar Oksana Zhuravlova Committed by Commit Bot

Remove unused WebPlatformEventType and related logic

Bug: 855308
Change-Id: I712a91bb7e344827e26cea38d92829871aee9b02
Reviewed-on: https://chromium-review.googlesource.com/1147660Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577574}
parent d2bc29d1
......@@ -319,7 +319,6 @@ source_set("blink_headers") {
"platform/web_native_scroll_behavior.h",
"platform/web_network_state_notifier.h",
"platform/web_platform_event_listener.h",
"platform/web_platform_event_type.h",
"platform/web_point.h",
"platform/web_pointer_event.h",
"platform/web_pointer_properties.h",
......
......@@ -55,7 +55,6 @@
#include "third_party/blink/public/platform/web_gamepad_listener.h"
#include "third_party/blink/public/platform/web_gesture_device.h"
#include "third_party/blink/public/platform/web_localized_string.h"
#include "third_party/blink/public/platform/web_platform_event_type.h"
#include "third_party/blink/public/platform/web_rtc_api_name.h"
#include "third_party/blink/public/platform/web_size.h"
#include "third_party/blink/public/platform/web_speech_synthesizer.h"
......
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_PLATFORM_EVENT_TYPE_H_
#define THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_PLATFORM_EVENT_TYPE_H_
namespace blink {
enum WebPlatformEventType {
kWebPlatformEventTypeDeviceMotion,
kWebPlatformEventTypeDeviceOrientation,
kWebPlatformEventTypeDeviceOrientationAbsolute,
kWebPlatformEventTypeGamepad,
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_PUBLIC_PLATFORM_WEB_PLATFORM_EVENT_TYPE_H_
......@@ -88,10 +88,4 @@ DeviceOrientationDispatcher::LatestDeviceOrientationData() {
return last_device_orientation_data_.Get();
}
WebPlatformEventType DeviceOrientationDispatcher::GetWebPlatformEventType()
const {
return (absolute_) ? kWebPlatformEventTypeDeviceOrientationAbsolute
: kWebPlatformEventTypeDeviceOrientation;
}
} // namespace blink
......@@ -33,7 +33,6 @@
#include "base/memory/scoped_refptr.h"
#include "third_party/blink/public/platform/modules/device_orientation/web_device_orientation_listener.h"
#include "third_party/blink/public/platform/web_platform_event_type.h"
#include "third_party/blink/renderer/core/frame/platform_event_dispatcher.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
......@@ -74,8 +73,6 @@ class DeviceOrientationDispatcher final
void StartListening(LocalFrame* frame) override;
void StopListening() override;
WebPlatformEventType GetWebPlatformEventType() const;
const bool absolute_;
Member<DeviceOrientationData> last_device_orientation_data_;
std::unique_ptr<DeviceOrientationEventPump> event_pump_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment