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 "chrome/browser/ui/ash/ash_init.h" | 5 #include "chrome/browser/ui/ash/ash_init.h" |
6 | 6 |
7 #include "ash/accelerators/accelerator_controller.h" | 7 #include "ash/accelerators/accelerator_controller.h" |
8 #include "ash/ash_switches.h" | 8 #include "ash/ash_switches.h" |
9 #include "ash/high_contrast/high_contrast_controller.h" | 9 #include "ash/high_contrast/high_contrast_controller.h" |
10 #include "ash/magnifier/magnification_controller.h" | 10 #include "ash/magnifier/magnification_controller.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ui/aura/aura_switches.h" | 22 #include "ui/aura/aura_switches.h" |
23 #include "ui/aura/display_manager.h" | 23 #include "ui/aura/display_manager.h" |
24 #include "ui/aura/env.h" | 24 #include "ui/aura/env.h" |
25 #include "ui/aura/root_window.h" | 25 #include "ui/aura/root_window.h" |
26 #include "ui/compositor/compositor_setup.h" | 26 #include "ui/compositor/compositor_setup.h" |
27 | 27 |
28 #if defined(OS_CHROMEOS) | 28 #if defined(OS_CHROMEOS) |
29 #include "base/chromeos/chromeos_version.h" | 29 #include "base/chromeos/chromeos_version.h" |
30 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 30 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
31 #include "chrome/browser/chromeos/login/user_manager.h" | 31 #include "chrome/browser/chromeos/login/user_manager.h" |
32 #include "chrome/browser/ui/ash/volume_controller_chromeos.h" | |
33 #include "chrome/browser/ui/ash/brightness_controller_chromeos.h" | 32 #include "chrome/browser/ui/ash/brightness_controller_chromeos.h" |
34 #include "chrome/browser/ui/ash/ime_controller_chromeos.h" | 33 #include "chrome/browser/ui/ash/ime_controller_chromeos.h" |
35 #include "chrome/browser/ui/ash/keyboard_brightness_controller_chromeos.h" | 34 #include "chrome/browser/ui/ash/keyboard_brightness_controller_chromeos.h" |
| 35 #include "chrome/browser/ui/ash/volume_controller_chromeos.h" |
36 #endif | 36 #endif |
37 | 37 |
38 | 38 |
39 namespace chrome { | 39 namespace chrome { |
40 | 40 |
41 bool ShouldOpenAshOnStartup() { | 41 bool ShouldOpenAshOnStartup() { |
42 #if defined(OS_CHROMEOS) | 42 #if defined(OS_CHROMEOS) |
43 return true; | 43 return true; |
44 #endif | 44 #endif |
45 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOpenAsh); | 45 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOpenAsh); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 #endif | 103 #endif |
104 ash::Shell::GetPrimaryRootWindow()->ShowRootWindow(); | 104 ash::Shell::GetPrimaryRootWindow()->ShowRootWindow(); |
105 } | 105 } |
106 | 106 |
107 void CloseAsh() { | 107 void CloseAsh() { |
108 if (ash::Shell::GetInstance()) | 108 if (ash::Shell::GetInstance()) |
109 ash::Shell::DeleteInstance(); | 109 ash::Shell::DeleteInstance(); |
110 } | 110 } |
111 | 111 |
112 } // namespace chrome | 112 } // namespace chrome |
OLD | NEW |