Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1275)

Unified Diff: content/browser/screen_orientation/screen_orientation_message_filter_android.h

Issue 2578503002: [DeviceService] Mojofy left screen orientation IPC messages. (Closed)
Patch Set: Address comments from mlamouri@ Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
blundell 2016/12/20 13:39:18 Let's rename this to ScreenOrientationListenerAndr
leonhsl(Using Gerrit) 2016/12/21 02:48:36 Done.
+ : 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_;

Powered by Google App Engine
This is Rietveld 408576698