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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 326813004: Added quick lock mechanism while in Touchview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
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_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
7 7
8 #include "ash/accelerometer/accelerometer_observer.h" 8 #include "ash/accelerometer/accelerometer_observer.h"
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/display/display_manager.h" 10 #include "ash/display/display_manager.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void EnterMaximizeMode(); 75 void EnterMaximizeMode();
76 76
77 // Removes MaximizeModeWindowManager and resets the display rotation if there 77 // Removes MaximizeModeWindowManager and resets the display rotation if there
78 // is no rotation lock. 78 // is no rotation lock.
79 void LeaveMaximizeMode(); 79 void LeaveMaximizeMode();
80 80
81 // An event targeter controller which traps mouse and keyboard events while 81 // An event targeter controller which traps mouse and keyboard events while
82 // maximize mode is engaged. 82 // maximize mode is engaged.
83 scoped_ptr<MaximizeModeEventBlocker> event_blocker_; 83 scoped_ptr<MaximizeModeEventBlocker> event_blocker_;
84 84
85 // An event handler used to detect screenshot actions while in maximize mode.
86 scoped_ptr<ui::EventHandler> event_handler_;
87
88 // When true calls to OnAccelerometerUpdated will not rotate the display. 85 // When true calls to OnAccelerometerUpdated will not rotate the display.
89 bool rotation_locked_; 86 bool rotation_locked_;
90 87
91 // Whether we have ever seen accelerometer data. 88 // Whether we have ever seen accelerometer data.
92 bool have_seen_accelerometer_data_; 89 bool have_seen_accelerometer_data_;
93 90
94 // True when the screen's orientation is being changed. 91 // True when the screen's orientation is being changed.
95 bool in_set_screen_rotation_; 92 bool in_set_screen_rotation_;
96 93
97 // The rotation of the display set by the user. This rotation will be 94 // The rotation of the display set by the user. This rotation will be
98 // restored upon exiting maximize mode. 95 // restored upon exiting maximize mode.
99 gfx::Display::Rotation user_rotation_; 96 gfx::Display::Rotation user_rotation_;
100 97
101 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); 98 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
102 }; 99 };
103 100
104 } // namespace ash 101 } // namespace ash
105 102
106 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 103 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698