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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/display_info_provider_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 void Shell::UpdateAfterLoginStatusChange(LoginStatus status) { 474 void Shell::UpdateAfterLoginStatusChange(LoginStatus status) {
475 for (WmWindow* root_window : shell_port_->GetAllRootWindows()) { 475 for (WmWindow* root_window : shell_port_->GetAllRootWindows()) {
476 root_window->GetRootWindowController()->UpdateAfterLoginStatusChange( 476 root_window->GetRootWindowController()->UpdateAfterLoginStatusChange(
477 status); 477 status);
478 } 478 }
479 } 479 }
480 480
481 void Shell::NotifyMaximizeModeStarted() { 481 void Shell::NotifyMaximizeModeStarted() {
482 for (auto& observer : shell_observers_) 482 for (auto& observer : shell_observers_)
483 observer.OnMaximizeModeStarted(); 483 observer.OnMaximizeModeStarted();
484 display_manager_->NotifyMetricsChanged(
485 display_manager_->GetPrimaryDisplayCandidate(),
486 display::DisplayObserver::DISPLAY_METRIC_MAXIMIZE_MODE);
484 } 487 }
485 488
486 void Shell::NotifyMaximizeModeEnding() { 489 void Shell::NotifyMaximizeModeEnding() {
487 for (auto& observer : shell_observers_) 490 for (auto& observer : shell_observers_)
488 observer.OnMaximizeModeEnding(); 491 observer.OnMaximizeModeEnding();
489 } 492 }
490 493
491 void Shell::NotifyMaximizeModeEnded() { 494 void Shell::NotifyMaximizeModeEnded() {
492 for (auto& observer : shell_observers_) 495 for (auto& observer : shell_observers_)
493 observer.OnMaximizeModeEnded(); 496 observer.OnMaximizeModeEnded();
497 display_manager_->NotifyMetricsChanged(
498 display_manager_->GetPrimaryDisplayCandidate(),
499 display::DisplayObserver::DISPLAY_METRIC_MAXIMIZE_MODE);
494 } 500 }
495 501
496 void Shell::NotifyOverviewModeStarting() { 502 void Shell::NotifyOverviewModeStarting() {
497 for (auto& observer : shell_observers_) 503 for (auto& observer : shell_observers_)
498 observer.OnOverviewModeStarting(); 504 observer.OnOverviewModeStarting();
499 } 505 }
500 506
501 void Shell::NotifyOverviewModeEnded() { 507 void Shell::NotifyOverviewModeEnded() {
502 for (auto& observer : shell_observers_) 508 for (auto& observer : shell_observers_)
503 observer.OnOverviewModeEnded(); 509 observer.OnOverviewModeEnded();
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 void Shell::OnPrefServiceInitialized( 1264 void Shell::OnPrefServiceInitialized(
1259 std::unique_ptr<::PrefService> pref_service) { 1265 std::unique_ptr<::PrefService> pref_service) {
1260 if (!instance_) 1266 if (!instance_)
1261 return; 1267 return;
1262 // |pref_service_| is null if can't connect to Chrome (as happens when 1268 // |pref_service_| is null if can't connect to Chrome (as happens when
1263 // running mash outside of chrome --mash and chrome isn't built). 1269 // running mash outside of chrome --mash and chrome isn't built).
1264 pref_service_ = std::move(pref_service); 1270 pref_service_ = std::move(pref_service);
1265 } 1271 }
1266 1272
1267 } // namespace ash 1273 } // namespace ash
OLDNEW
« 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