Index: content/renderer/screen_orientation/screen_orientation_observer.h |
diff --git a/content/renderer/screen_orientation/screen_orientation_observer.h b/content/renderer/screen_orientation/screen_orientation_observer.h |
deleted file mode 100644 |
index 3e396898a1557da7ec547a6e625539ccf6bdb0f3..0000000000000000000000000000000000000000 |
--- a/content/renderer/screen_orientation/screen_orientation_observer.h |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
-// 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. |
- |
-#include "content/public/renderer/platform_event_observer.h" |
-#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h" |
- |
-namespace content { |
- |
-// ScreenOrientationObserver is a helper class implementing the |
-// PlatformEventObserver template with blink::WebPlatformEventListener, which is |
-// a pure virtual class because it doesn't expect listeners. |
-// It is implemented on top of PlatformEventObserver to make sure it follows a |
-// common code path even though it only uses part of this code path: it is not |
-// expected to receive messages back but should send messages to start/stop |
-// listening. |
-// The intent of this class is to make sure that platforms that can't listen for |
-// display rotations at a marginal cost can be told when to actually do it. |
-class ScreenOrientationObserver |
- : public PlatformEventObserver<blink::WebPlatformEventListener> { |
- public: |
- ScreenOrientationObserver(); |
- ~ScreenOrientationObserver() override; |
- |
- // Overriding this method just to make sure |listener| is always null. |
- void Start(blink::WebPlatformEventListener* listener) override; |
- |
- protected: |
- void SendStartMessage() override; |
- void SendStopMessage() override; |
- |
- private: |
- device::mojom::ScreenOrientationListener* GetScreenOrientationListener(); |
- |
- device::mojom::ScreenOrientationListenerAssociatedPtr listener_; |
-}; |
- |
-}; // namespace content |