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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // display rotation. | 69 // display rotation. |
70 void SetRotationLocked(bool rotation_locked); | 70 void SetRotationLocked(bool rotation_locked); |
71 | 71 |
72 // Sets the display rotation for the given |source|. The new |rotation| will | 72 // Sets the display rotation for the given |source|. The new |rotation| will |
73 // also become active. Display changed notifications are surpressed for this | 73 // also become active. Display changed notifications are surpressed for this |
74 // change. | 74 // change. |
75 void SetDisplayRotation(gfx::Display::Rotation rotation, | 75 void SetDisplayRotation(gfx::Display::Rotation rotation, |
76 gfx::Display::RotationSource source); | 76 gfx::Display::RotationSource source); |
77 | 77 |
78 // aura::client::ActivationChangeObserver: | 78 // aura::client::ActivationChangeObserver: |
79 void OnWindowActivated(aura::Window* gained_active, | 79 void OnWindowActivated( |
80 aura::Window* lost_active) override; | 80 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 81 aura::Window* gained_active, |
| 82 aura::Window* lost_active) override; |
81 | 83 |
82 // aura::WindowObserver: | 84 // aura::WindowObserver: |
83 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; | 85 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; |
84 void OnWindowDestroying(aura::Window* window) override; | 86 void OnWindowDestroying(aura::Window* window) override; |
85 | 87 |
86 // chromeos::AccelerometerReader::Observer: | 88 // chromeos::AccelerometerReader::Observer: |
87 void OnAccelerometerUpdated( | 89 void OnAccelerometerUpdated( |
88 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; | 90 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; |
89 | 91 |
90 // content::ScreenOrientationDelegate: | 92 // content::ScreenOrientationDelegate: |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // Tracks all windows that have requested a lock, as well as the requested | 186 // Tracks all windows that have requested a lock, as well as the requested |
185 // orientation. | 187 // orientation. |
186 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; | 188 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; |
187 | 189 |
188 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); | 190 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); |
189 }; | 191 }; |
190 | 192 |
191 } // namespace ash | 193 } // namespace ash |
192 | 194 |
193 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 195 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
OLD | NEW |