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/chrome_browser_main_extra_parts_ash.h" | 5 #include "chrome/browser/chrome_browser_main_extra_parts_ash.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/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/wm/key_rewriter_event_filter.h" | 10 #include "ash/wm/key_rewriter_event_filter.h" |
11 #include "ash/wm/property_util.h" | 11 #include "ash/wm/property_util.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "chrome/common/chrome_switches.h" | |
14 #include "chrome/browser/ui/browser_list.h" | 13 #include "chrome/browser/ui/browser_list.h" |
15 #include "chrome/browser/ui/views/ash/caps_lock_handler.h" | 14 #include "chrome/browser/ui/views/ash/caps_lock_handler.h" |
16 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" | 15 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" |
17 #include "chrome/browser/ui/views/ash/key_rewriter.h" | 16 #include "chrome/browser/ui/views/ash/key_rewriter.h" |
18 #include "chrome/browser/ui/views/ash/screenshot_taker.h" | 17 #include "chrome/browser/ui/views/ash/screenshot_taker.h" |
19 #include "chrome/browser/ui/views/ash/user_gesture_handler.h" | 18 #include "chrome/browser/ui/views/ash/user_gesture_handler.h" |
20 #include "ui/aura/env.h" | 19 #include "chrome/common/chrome_switches.h" |
21 #include "ui/aura/aura_switches.h" | 20 #include "ui/aura/aura_switches.h" |
22 #include "ui/aura/client/user_gesture_client.h" | 21 #include "ui/aura/client/user_gesture_client.h" |
| 22 #include "ui/aura/env.h" |
23 #include "ui/aura/monitor_manager.h" | 23 #include "ui/aura/monitor_manager.h" |
24 #include "ui/aura/root_window.h" | 24 #include "ui/aura/root_window.h" |
25 #include "ui/gfx/compositor/compositor_setup.h" | 25 #include "ui/compositor/compositor_setup.h" |
26 | 26 |
27 #if defined(OS_CHROMEOS) | 27 #if defined(OS_CHROMEOS) |
28 #include "base/chromeos/chromeos_version.h" | 28 #include "base/chromeos/chromeos_version.h" |
| 29 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 30 #include "chrome/browser/chromeos/login/user_manager.h" |
29 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h" | 31 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h" |
30 #include "chrome/browser/ui/views/ash/ime_controller_chromeos.h" | 32 #include "chrome/browser/ui/views/ash/ime_controller_chromeos.h" |
31 #include "chrome/browser/ui/views/ash/volume_controller_chromeos.h" | 33 #include "chrome/browser/ui/views/ash/volume_controller_chromeos.h" |
32 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | |
33 #include "chrome/browser/chromeos/login/user_manager.h" | |
34 #endif | 34 #endif |
35 | 35 |
36 ChromeBrowserMainExtraPartsAsh::ChromeBrowserMainExtraPartsAsh() | 36 ChromeBrowserMainExtraPartsAsh::ChromeBrowserMainExtraPartsAsh() |
37 : ChromeBrowserMainExtraParts() { | 37 : ChromeBrowserMainExtraParts() { |
38 } | 38 } |
39 | 39 |
40 ChromeBrowserMainExtraPartsAsh::~ChromeBrowserMainExtraPartsAsh() { | 40 ChromeBrowserMainExtraPartsAsh::~ChromeBrowserMainExtraPartsAsh() { |
41 } | 41 } |
42 | 42 |
43 void ChromeBrowserMainExtraPartsAsh::PreProfileInit() { | 43 void ChromeBrowserMainExtraPartsAsh::PreProfileInit() { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 ash::Shell::GetRootWindow(), gesture_handler_.get()); | 85 ash::Shell::GetRootWindow(), gesture_handler_.get()); |
86 ash::Shell::GetRootWindow()->ShowRootWindow(); | 86 ash::Shell::GetRootWindow()->ShowRootWindow(); |
87 } | 87 } |
88 | 88 |
89 void ChromeBrowserMainExtraPartsAsh::PostProfileInit() { | 89 void ChromeBrowserMainExtraPartsAsh::PostProfileInit() { |
90 } | 90 } |
91 | 91 |
92 void ChromeBrowserMainExtraPartsAsh::PostMainMessageLoopRun() { | 92 void ChromeBrowserMainExtraPartsAsh::PostMainMessageLoopRun() { |
93 ash::Shell::DeleteInstance(); | 93 ash::Shell::DeleteInstance(); |
94 } | 94 } |
OLD | NEW |