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

Unified Diff: ash/shell.cc

Issue 289583002: Lock rotation when screen is manually rotated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non chromeOS builds Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.h ('k') | ash/wm/maximize_mode/maximize_mode_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index c0a176517c1f7c883e2d26096454cb7f43f70fb0..b8a69de6cc396d169978dac6e2a6a0f79cb2fb62 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -477,6 +477,14 @@ bool Shell::IsMaximizeModeWindowManagerEnabled() {
return maximize_mode_window_manager_.get() != NULL;
}
+#if defined(OS_CHROMEOS)
+bool Shell::ShouldSaveDisplaySettings() {
+ return !((IsMaximizeModeWindowManagerEnabled() &&
+ maximize_mode_controller_->in_set_screen_rotation()) ||
+ resolution_notification_controller_->DoesNotificationTimeout());
+}
+#endif
+
void Shell::UpdateShelfVisibility() {
RootWindowControllerList controllers = GetAllRootWindowControllers();
for (RootWindowControllerList::iterator iter = controllers.begin();
« no previous file with comments | « ash/shell.h ('k') | ash/wm/maximize_mode/maximize_mode_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698