Commit 69c35228 authored by Oksana Zhuravlova's avatar Oksana Zhuravlova Committed by Commit Bot

Remove {Start,Stop}Listening methods from Platform classes

This change removes StartListening() and StopListening() methods from
Platform and RendererBlinkPlatformImpl since they are not called
anymore.

Bug: 855308
Change-Id: I8f240737ca7d37abc1eb3267701f76854742d83d
Reviewed-on: https://chromium-review.googlesource.com/1144224Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577258}
parent b9d5a12b
......@@ -1072,16 +1072,6 @@ blink::InterfaceProvider* RendererBlinkPlatformImpl::GetInterfaceProvider() {
return blink_interface_provider_.get();
}
void RendererBlinkPlatformImpl::StartListening(
blink::WebPlatformEventType type,
blink::WebPlatformEventListener* listener) {
}
void RendererBlinkPlatformImpl::StopListening(
blink::WebPlatformEventType type) {
}
//------------------------------------------------------------------------------
blink::WebPushProvider* RendererBlinkPlatformImpl::PushProvider() {
......
......@@ -187,9 +187,6 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
blink::WebString ConvertIDNToUnicode(const blink::WebString& host) override;
service_manager::Connector* GetConnector() override;
blink::InterfaceProvider* GetInterfaceProvider() override;
void StartListening(blink::WebPlatformEventType,
blink::WebPlatformEventListener*) override;
void StopListening(blink::WebPlatformEventType) override;
blink::WebThread* CurrentThread() override;
blink::BlameContext* GetTopLevelBlameContext() override;
void RecordRappor(const char* metric,
......@@ -248,10 +245,6 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
private:
bool CheckPreparsedJsCachingEnabled() const;
// TODO(crbug.com/850997): Remove when Device*EventPump classes are
// moved to blink
void StopDeviceSensorEventPump(blink::WebPlatformEventType type);
// Ensure that the WebDatabaseHost has been initialized.
void InitializeWebDatabaseHostIfNeeded();
......
......@@ -101,7 +101,6 @@ class WebCanvasCaptureHandler;
class WebCookieJar;
class WebCrypto;
class WebDatabaseObserver;
class WebPlatformEventListener;
class WebFileSystem;
class WebGraphicsContext3DProvider;
class WebIDBFactory;
......@@ -631,18 +630,6 @@ class BLINK_PLATFORM_EXPORT Platform {
virtual const char* GetBrowserServiceName() const { return ""; }
// Platform events -----------------------------------------------------
// Device Orientation, Device Motion, Battery, Gamepad.
// Request the platform to start listening to the events of the specified
// type and notify the given listener (if not null) when there is an update.
virtual void StartListening(WebPlatformEventType type,
WebPlatformEventListener* listener) {}
// Request the platform to stop listening to the specified event and no
// longer notify the listener, if any.
virtual void StopListening(WebPlatformEventType type) {}
// This method converts from the supplied DOM code enum to the
// embedder's DOM code value for the key pressed. |dom_code| values are
// based on the value defined in
......
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