OLD | NEW |
(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 ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_ASH_H
_ |
| 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_ASH_H
_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/browser/screen_orientation_delegate.h" |
| 10 #include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" |
| 11 |
| 12 namespace content { |
| 13 class WebContents; |
| 14 } |
| 15 |
| 16 namespace ash { |
| 17 |
| 18 // Implements ChromeOS specific functionality for ScreenOrientationProvider. |
| 19 class ScreenOrientationDelegateAsh : public content::ScreenOrientationDelegate { |
| 20 public: |
| 21 ScreenOrientationDelegateAsh(); |
| 22 virtual ~ScreenOrientationDelegateAsh(); |
| 23 |
| 24 // content::ScreenOrientationDelegate: |
| 25 virtual bool FullScreenRequired(content::WebContents* web_contents) override; |
| 26 virtual void Lock( |
| 27 blink::WebScreenOrientationLockType lock_orientation) override; |
| 28 virtual bool ScreenOrientationProviderSupported() override; |
| 29 virtual void Unlock() override; |
| 30 |
| 31 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationDelegateAsh); |
| 33 }; |
| 34 |
| 35 } // namespace ash |
| 36 |
| 37 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_ORIENTATION_SCREEN_ORIENTATION_DELEGATE_AS
H_H_ |
OLD | NEW |