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

Side by Side Diff: ash/accelerators/accelerator_controller.cc

Issue 10207030: Asynchronously load wallpapers when user pod is selected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review Created 8 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 | Annotate | Revision Log
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/accelerators/accelerator_controller.h" 5 #include "ash/accelerators/accelerator_controller.h"
6 6
7 #include "ash/accelerators/accelerator_table.h" 7 #include "ash/accelerators/accelerator_table.h"
8 #include "ash/desktop_background/desktop_background_controller.h" 8 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/caps_lock_delegate.h" 10 #include "ash/caps_lock_delegate.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 return true; 184 return true;
185 } 185 }
186 186
187 bool HandleToggleDesktopBackgroundMode() { 187 bool HandleToggleDesktopBackgroundMode() {
188 ash::DesktopBackgroundController* desktop_background_controller = 188 ash::DesktopBackgroundController* desktop_background_controller =
189 ash::Shell::GetInstance()->desktop_background_controller(); 189 ash::Shell::GetInstance()->desktop_background_controller();
190 if (desktop_background_controller->desktop_background_mode() == 190 if (desktop_background_controller->desktop_background_mode() ==
191 ash::DesktopBackgroundController::BACKGROUND_IMAGE) 191 ash::DesktopBackgroundController::BACKGROUND_IMAGE)
192 desktop_background_controller->SetDesktopBackgroundSolidColorMode(); 192 desktop_background_controller->SetDesktopBackgroundSolidColorMode();
193 else 193 else
194 desktop_background_controller->SetDesktopBackgroundImageMode(); 194 desktop_background_controller->SetLoggedInUserWallpaper();
195 return true; 195 return true;
196 } 196 }
197 197
198 bool HandleToggleRootWindowFullScreen() { 198 bool HandleToggleRootWindowFullScreen() {
199 ash::Shell::GetRootWindow()->ToggleFullScreen(); 199 ash::Shell::GetRootWindow()->ToggleFullScreen();
200 return true; 200 return true;
201 } 201 }
202 202
203 bool HandlePrintLayerHierarchy() { 203 bool HandlePrintLayerHierarchy() {
204 aura::RootWindow* root_window = ash::Shell::GetRootWindow(); 204 aura::RootWindow* root_window = ash::Shell::GetRootWindow();
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // Then set this one as active. 504 // Then set this one as active.
505 ActivateLauncherItem(found_index); 505 ActivateLauncherItem(found_index);
506 } 506 }
507 } 507 }
508 508
509 bool AcceleratorController::CanHandleAccelerators() const { 509 bool AcceleratorController::CanHandleAccelerators() const {
510 return true; 510 return true;
511 } 511 }
512 512
513 } // namespace ash 513 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698