| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |