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

Unified Diff: services/device/screen_orientation/screen_orientation_listener_android.h

Issue 2745443002: [Device Service] Port ScreenOrientationListener into Device Service. (Closed)
Patch Set: Add DEPS Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: services/device/screen_orientation/screen_orientation_listener_android.h
diff --git a/services/device/screen_orientation/screen_orientation_listener_android.h b/services/device/screen_orientation/screen_orientation_listener_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..4df873a4346c84d2d0bb6d304806add71267c218
--- /dev/null
+++ b/services/device/screen_orientation/screen_orientation_listener_android.h
@@ -0,0 +1,34 @@
+// Copyright 2017 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.
+
+#ifndef SERVICES_DEVICE_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROID_H_
+#define SERVICES_DEVICE_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROID_H_
+
+#include "base/macros.h"
+#include "device/screen_orientation/public/interfaces/screen_orientation.mojom.h"
+
+namespace device {
+
+class ScreenOrientationListenerAndroid
+ : public mojom::ScreenOrientationListener {
+ public:
+ static void Create(mojom::ScreenOrientationListenerRequest request);
+
+ ~ScreenOrientationListenerAndroid() override;
+
+ private:
+ ScreenOrientationListenerAndroid();
+
+ // mojom::ScreenOrientationListener:
+ void Start() override;
+ void Stop() override;
+
+ int listeners_count_;
+
+ DISALLOW_COPY_AND_ASSIGN(ScreenOrientationListenerAndroid);
+};
+
+} // namespace device
+
+#endif // SERVICES_DEVICE_SCREEN_ORIENTATION_SCREEN_ORIENTATION_LISTENER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698