| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROID_H
_ | |
| 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROID_H
_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "content/public/browser/browser_associated_interface.h" | |
| 10 #include "content/public/browser/browser_message_filter.h" | |
| 11 #include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h
" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class ScreenOrientationListenerAndroid | |
| 16 : public BrowserMessageFilter, | |
| 17 public BrowserAssociatedInterface< | |
| 18 device::mojom::ScreenOrientationListener>, | |
| 19 public NON_EXPORTED_BASE(device::mojom::ScreenOrientationListener) { | |
| 20 public: | |
| 21 ScreenOrientationListenerAndroid(); | |
| 22 | |
| 23 // BrowserMessageFilter implementation. | |
| 24 bool OnMessageReceived(const IPC::Message& message) override; | |
| 25 | |
| 26 private: | |
| 27 ~ScreenOrientationListenerAndroid() override; | |
| 28 | |
| 29 // device::mojom::ScreenOrientationListener: | |
| 30 void Start() override; | |
| 31 void Stop() override; | |
| 32 | |
| 33 int listeners_count_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationListenerAndroid); | |
| 36 }; | |
| 37 | |
| 38 } // namespace content | |
| 39 | |
| 40 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROI
D_H_ | |
| OLD | NEW |