| OLD | NEW |
| 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 ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 5 #ifndef ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
| 6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // aura::client::ActivationChangeObserver: | 75 // aura::client::ActivationChangeObserver: |
| 76 void OnWindowActivated(aura::Window* gained_active, | 76 void OnWindowActivated(aura::Window* gained_active, |
| 77 aura::Window* lost_active) override; | 77 aura::Window* lost_active) override; |
| 78 | 78 |
| 79 // aura::WindowObserver: | 79 // aura::WindowObserver: |
| 80 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 80 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; |
| 81 void OnWindowDestroying(aura::Window* window) override; | 81 void OnWindowDestroying(aura::Window* window) override; |
| 82 | 82 |
| 83 // chromeos::AccelerometerReader::Observer: | 83 // chromeos::AccelerometerReader::Observer: |
| 84 void OnAccelerometerUpdated( | 84 void OnAccelerometerUpdated( |
| 85 const chromeos::AccelerometerUpdate& update) override; | 85 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; |
| 86 | 86 |
| 87 // content::ScreenOrientationDelegate: | 87 // content::ScreenOrientationDelegate: |
| 88 bool FullScreenRequired(content::WebContents* web_contents) override; | 88 bool FullScreenRequired(content::WebContents* web_contents) override; |
| 89 void Lock(content::WebContents* web_contents, | 89 void Lock(content::WebContents* web_contents, |
| 90 blink::WebScreenOrientationLockType lock_orientation) override; | 90 blink::WebScreenOrientationLockType lock_orientation) override; |
| 91 bool ScreenOrientationProviderSupported() override; | 91 bool ScreenOrientationProviderSupported() override; |
| 92 void Unlock(content::WebContents* web_contents) override; | 92 void Unlock(content::WebContents* web_contents) override; |
| 93 | 93 |
| 94 // DisplayController::Observer: | 94 // DisplayController::Observer: |
| 95 void OnDisplayConfigurationChanged() override; | 95 void OnDisplayConfigurationChanged() override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Tracks all windows that have requested a lock, as well as the requested | 180 // Tracks all windows that have requested a lock, as well as the requested |
| 181 // orientation. | 181 // orientation. |
| 182 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; | 182 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; |
| 183 | 183 |
| 184 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); | 184 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace ash | 187 } // namespace ash |
| 188 | 188 |
| 189 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 189 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
| OLD | NEW |