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

Unified Diff: ash/shell.cc

Issue 18163006: Add persisted preference for projection touch HUD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolved clang compile errors + Resolved linux_chromeos trybot failure Created 7 years, 5 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/root_window_controller.cc ('k') | ash/shell_observer.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 1610ae3579cd2a545e336f812baf6691253ff58b..8d3b3bb6ea086ab5033ba61df9827612a958c043 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -715,10 +715,6 @@ void Shell::SetDisplayWorkAreaInsets(Window* contains,
void Shell::OnLoginStateChanged(user::LoginStatus status) {
FOR_EACH_OBSERVER(ShellObserver, observers_, OnLoginStateChanged(status));
- RootWindowControllerList controllers = GetAllRootWindowControllers();
- for (RootWindowControllerList::iterator iter = controllers.begin();
- iter != controllers.end(); ++iter)
- (*iter)->OnLoginStateChanged(status);
}
void Shell::UpdateAfterLoginStatusChange(user::LoginStatus status) {
@@ -854,16 +850,9 @@ void Shell::SetTouchHudProjectionEnabled(bool enabled) {
if (is_touch_hud_projection_enabled_ == enabled)
return;
- RootWindowList roots = GetInstance()->GetAllRootWindows();
- for (RootWindowList::iterator iter = roots.begin(); iter != roots.end();
- ++iter) {
- internal::RootWindowController* controller = GetRootWindowController(*iter);
- if (enabled)
- controller->EnableTouchHudProjection();
- else
- controller->DisableTouchHudProjection();
- }
is_touch_hud_projection_enabled_ = enabled;
+ FOR_EACH_OBSERVER(ShellObserver, observers_,
+ OnTouchHudProjectionToggled(enabled));
}
void Shell::InitRootWindowForSecondaryDisplay(aura::RootWindow* root) {
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shell_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698