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

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

Issue 196193002: Implement ScreenOrientationProvider for Chrome Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 5 #ifndef CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 6 #define CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
7 7
8 #include "third_party/WebKit/public/platform/WebScreenOrientation.h"
9
8 namespace content { 10 namespace content {
9 11
10 // Interface that needs to be implemented by any backend that wants to handle 12 // Interface that needs to be implemented by any backend that wants to handle
11 // screen orientation lock/unlock. 13 // screen orientation lock/unlock.
12 class ScreenOrientationProvider { 14 class ScreenOrientationProvider {
13 public: 15 public:
14 // Lock the screen orientation to |orientations|. 16 // Lock the screen orientation to |orientations|.
15 virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0; 17 virtual void LockOrientation(blink::WebScreenOrientations orientations) = 0;
16 18
17 // Unlock the screen orientation. 19 // Unlock the screen orientation.
18 virtual void UnlockOrientation() = 0; 20 virtual void UnlockOrientation() = 0;
19 21
20 virtual ~ScreenOrientationProvider() {} 22 virtual ~ScreenOrientationProvider() {}
21 }; 23 };
22 24
23 } // namespace content 25 } // namespace content
24 26
25 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_ 27 #endif // CONTENT_BROWSER_SCREEN_ORIENTATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698