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

Unified Diff: ash/shell.cc

Issue 2824843002: MD Settings: Display: Disable orientaiton control in tablet mode (Closed)
Patch Set: Add test and trigger onDisplayChanged 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/display_info_provider_chromeos.cc » ('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 a58793af529bb49f9a2e931ead84ec4e8ecbdd8a..61cbdf3e6cc5595c04977e8d4557d425cfdecb45 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -481,6 +481,9 @@ void Shell::UpdateAfterLoginStatusChange(LoginStatus status) {
void Shell::NotifyMaximizeModeStarted() {
for (auto& observer : shell_observers_)
observer.OnMaximizeModeStarted();
+ display_manager_->NotifyMetricsChanged(
+ display_manager_->GetPrimaryDisplayCandidate(),
+ display::DisplayObserver::DISPLAY_METRIC_MAXIMIZE_MODE);
}
void Shell::NotifyMaximizeModeEnding() {
@@ -491,6 +494,9 @@ void Shell::NotifyMaximizeModeEnding() {
void Shell::NotifyMaximizeModeEnded() {
for (auto& observer : shell_observers_)
observer.OnMaximizeModeEnded();
+ display_manager_->NotifyMetricsChanged(
+ display_manager_->GetPrimaryDisplayCandidate(),
+ display::DisplayObserver::DISPLAY_METRIC_MAXIMIZE_MODE);
}
void Shell::NotifyOverviewModeStarting() {
« no previous file with comments | « no previous file | chrome/browser/extensions/display_info_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698