| Index: content/browser/screen_orientation/screen_orientation_message_filter_android.h
|
| diff --git a/content/browser/screen_orientation/screen_orientation_message_filter_android.h b/content/browser/screen_orientation/screen_orientation_message_filter_android.h
|
| index be506f3cb0c49b36f57c66211a8da93d9299dac1..5d6266d9f2ae6800259b6da4891ba1bea5e29f5e 100644
|
| --- a/content/browser/screen_orientation/screen_orientation_message_filter_android.h
|
| +++ b/content/browser/screen_orientation/screen_orientation_message_filter_android.h
|
| @@ -6,11 +6,17 @@
|
| #define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_MESSAGE_FILTER_ANDROID_H_
|
|
|
| #include "base/macros.h"
|
| +#include "content/public/browser/browser_associated_interface.h"
|
| #include "content/public/browser/browser_message_filter.h"
|
| +#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h"
|
|
|
| namespace content {
|
|
|
| -class ScreenOrientationMessageFilterAndroid : public BrowserMessageFilter {
|
| +class ScreenOrientationMessageFilterAndroid
|
| + : public BrowserMessageFilter,
|
| + public BrowserAssociatedInterface<
|
| + device::mojom::ScreenOrientationAccurate>,
|
| + public NON_EXPORTED_BASE(device::mojom::ScreenOrientationAccurate) {
|
| public:
|
| ScreenOrientationMessageFilterAndroid();
|
|
|
| @@ -20,8 +26,9 @@ class ScreenOrientationMessageFilterAndroid : public BrowserMessageFilter {
|
| private:
|
| ~ScreenOrientationMessageFilterAndroid() override;
|
|
|
| - void OnStartListening();
|
| - void OnStopListening();
|
| + // device::mojom::ScreenOrientationAccurate:
|
| + void StartListening() override;
|
| + void StopListening() override;
|
|
|
| int listeners_count_;
|
|
|
|
|