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

Side by Side Diff: content/browser/screen_orientation/screen_orientation_listener_android.h

Issue 2688383002: [ScreenOrientation] Merge mojo interface ScreenOrientationListener into ScreenOrientation
Patch Set: Address comments from mlamouri@ Created 3 years, 10 months 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698