OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/public/browser/screen_orientation_delegate.h" | |
6 | |
7 #ifndef ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ | 5 #ifndef ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ |
8 #define ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ | 6 #define ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ |
9 | 7 |
| 8 #include "content/public/browser/screen_orientation_delegate.h" |
| 9 |
| 10 #include "base/macros.h" |
| 11 |
10 namespace ash { | 12 namespace ash { |
11 | 13 |
12 class ScreenOrientationDelegateChromeos | 14 class ScreenOrientationDelegateChromeos |
13 : public content::ScreenOrientationDelegate { | 15 : public content::ScreenOrientationDelegate { |
14 public: | 16 public: |
15 ScreenOrientationDelegateChromeos(); | 17 ScreenOrientationDelegateChromeos(); |
16 ~ScreenOrientationDelegateChromeos() override; | 18 ~ScreenOrientationDelegateChromeos() override; |
17 | 19 |
18 private: | 20 private: |
19 // content::ScreenOrientationDelegate: | 21 // content::ScreenOrientationDelegate: |
20 bool FullScreenRequired(content::WebContents* web_contents) override; | 22 bool FullScreenRequired(content::WebContents* web_contents) override; |
21 void Lock(content::WebContents* web_contents, | 23 void Lock(content::WebContents* web_contents, |
22 blink::WebScreenOrientationLockType lock_orientation) override; | 24 blink::WebScreenOrientationLockType lock_orientation) override; |
23 bool ScreenOrientationProviderSupported() override; | 25 bool ScreenOrientationProviderSupported() override; |
24 void Unlock(content::WebContents* web_contents) override; | 26 void Unlock(content::WebContents* web_contents) override; |
25 | 27 |
26 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateChromeos); | 28 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateChromeos); |
27 }; | 29 }; |
28 | 30 |
29 } // namespace ash | 31 } // namespace ash |
30 | 32 |
31 #endif // ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ | 33 #endif // ASH_CONTENT_SCREEN_ORIENTATION_DELEGATE_CHROMEOS_H_ |
OLD | NEW |