Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: ash/display/screen_orientation_controller_chromeos.h

Issue 2811153002: Restore bounds after the screen is restored in clamshell (Closed)
Patch Set: Restore bounds after completely transitioned to clamshell. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698