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_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 5 #ifndef ASH_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
6 #define ASH_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 6 #define ASH_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
7 | 7 |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // chromeos::AccelerometerReader::Observer: | 107 // chromeos::AccelerometerReader::Observer: |
108 void OnAccelerometerUpdated( | 108 void OnAccelerometerUpdated( |
109 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; | 109 scoped_refptr<const chromeos::AccelerometerUpdate> update) override; |
110 | 110 |
111 // WmDisplayObserver: | 111 // WmDisplayObserver: |
112 void OnDisplayConfigurationChanged() override; | 112 void OnDisplayConfigurationChanged() override; |
113 | 113 |
114 // ShellObserver: | 114 // ShellObserver: |
115 void OnMaximizeModeStarted() override; | 115 void OnMaximizeModeStarted() override; |
116 void OnMaximizeModeEnded() override; | 116 void OnMaximizeModeEnding() override; |
117 | 117 |
118 private: | 118 private: |
119 friend class test::ScreenOrientationControllerTestApi; | 119 friend class test::ScreenOrientationControllerTestApi; |
120 | 120 |
121 struct LockInfo { | 121 struct LockInfo { |
122 LockInfo() {} | 122 LockInfo() {} |
123 LockInfo(blink::WebScreenOrientationLockType orientation, | 123 LockInfo(blink::WebScreenOrientationLockType orientation, |
124 LockCompletionBehavior lock_completion_behavior) | 124 LockCompletionBehavior lock_completion_behavior) |
125 : orientation(orientation), | 125 : orientation(orientation), |
126 lock_completion_behavior(lock_completion_behavior) {} | 126 lock_completion_behavior(lock_completion_behavior) {} |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // Tracks all windows that have requested a lock, as well as the requested | 227 // Tracks all windows that have requested a lock, as well as the requested |
228 // orientation. | 228 // orientation. |
229 std::unordered_map<WmWindow*, LockInfo> lock_info_map_; | 229 std::unordered_map<WmWindow*, LockInfo> lock_info_map_; |
230 | 230 |
231 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); | 231 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); |
232 }; | 232 }; |
233 | 233 |
234 } // namespace ash | 234 } // namespace ash |
235 | 235 |
236 #endif // ASH_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ | 236 #endif // ASH_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ |
OLD | NEW |