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

Side by Side Diff: content/public/browser/screen_orientation_delegate.h

Issue 546453004: Centralize ScreenOrientationProvider logic, add platform delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen_orientation_public_impl_split
Patch Set: Remove Factory Created 6 years, 2 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/screen_orientation_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_BROWSER_SCREEN_ORIENTATION_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DELEGATE_H_
7
8 #include "base/macros.h"
9 #include "content/common/content_export.h"
10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h"
11
12 namespace content {
13
14 class WebContents;
15
16 // Can be implemented to provide platform specific functionality for
17 // ScreenOrientationProvider.
18 class CONTENT_EXPORT ScreenOrientationDelegate {
19 public:
20 ScreenOrientationDelegate() {};
21 virtual ~ScreenOrientationDelegate() {}
22
23 // Returns true if the tab must be fullscreen in order for
mlamouri (slow - plz ping) 2014/10/08 09:13:18 nit: s/tab/|web_contents|/ ?
24 // ScreenOrientationProvider to respond to requests.
25 virtual bool FullScreenRequired(WebContents* web_contents) = 0;
26
27 // Lock display to the given orientation.
28 virtual void Lock(blink::WebScreenOrientationLockType lock_orientation) = 0;
29
30 // Are ScreenOrientationProvider requests currently supported by the platform.
31 virtual bool ScreenOrientationProviderSupported() = 0;
32
33 // Unlocks the display, allowing hardware rotation to resume.
34 virtual void Unlock() = 0;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegate);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_PUBLIC_BROWSER_SCREEN_ORIENTATION_DELEGATE_H_
43
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/screen_orientation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698