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

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: Reverted immediate lock on power button press. 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_controller.h" 10 #include "ash/display/display_controller.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Record UMA stats tracking touchview usage. 133 // Record UMA stats tracking touchview usage.
134 void RecordTouchViewStateTransition(); 134 void RecordTouchViewStateTransition();
135 135
136 // The maximized window manager (if enabled). 136 // The maximized window manager (if enabled).
137 scoped_ptr<MaximizeModeWindowManager> maximize_mode_window_manager_; 137 scoped_ptr<MaximizeModeWindowManager> maximize_mode_window_manager_;
138 138
139 // An event targeter controller which traps mouse and keyboard events while 139 // An event targeter controller which traps mouse and keyboard events while
140 // maximize mode is engaged. 140 // maximize mode is engaged.
141 scoped_ptr<MaximizeModeEventBlocker> event_blocker_; 141 scoped_ptr<MaximizeModeEventBlocker> event_blocker_;
142 142
143 // An event handler used to detect screenshot actions while in maximize mode.
144 scoped_ptr<ui::EventHandler> event_handler_;
145
146 // When true calls to OnAccelerometerUpdated will not rotate the display. 143 // When true calls to OnAccelerometerUpdated will not rotate the display.
147 bool rotation_locked_; 144 bool rotation_locked_;
148 145
149 // Whether we have ever seen accelerometer data. 146 // Whether we have ever seen accelerometer data.
150 bool have_seen_accelerometer_data_; 147 bool have_seen_accelerometer_data_;
151 148
152 // True when the screen's orientation is being changed. 149 // True when the screen's orientation is being changed.
153 bool in_set_screen_rotation_; 150 bool in_set_screen_rotation_;
154 151
155 // The rotation of the display set by the user. This rotation will be 152 // The rotation of the display set by the user. This rotation will be
(...skipping 12 matching lines...) Expand all
168 base::Time last_touchview_transition_time_; 165 base::Time last_touchview_transition_time_;
169 base::TimeDelta total_touchview_time_; 166 base::TimeDelta total_touchview_time_;
170 base::TimeDelta total_non_touchview_time_; 167 base::TimeDelta total_non_touchview_time_;
171 168
172 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); 169 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
173 }; 170 };
174 171
175 } // namespace ash 172 } // namespace ash
176 173
177 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 174 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698