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

Side by Side Diff: chrome/browser/ui/ash/ash_init.cc

Issue 10694127: browser: Move some ash files into ui/ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 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 "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"
11 #include "ash/shell.h" 11 #include "ash/shell.h"
12 #include "ash/wm/key_rewriter_event_filter.h" 12 #include "ash/wm/key_rewriter_event_filter.h"
13 #include "ash/wm/property_util.h" 13 #include "ash/wm/property_util.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 15 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
16 #include "chrome/browser/lifetime/application_lifetime.h" 16 #include "chrome/browser/lifetime/application_lifetime.h"
17 #include "chrome/browser/ui/views/ash/caps_lock_handler.h" 17 #include "chrome/browser/ui/ash/caps_lock_handler.h"
18 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" 18 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
19 #include "chrome/browser/ui/views/ash/key_rewriter.h" 19 #include "chrome/browser/ui/views/ash/key_rewriter.h"
20 #include "chrome/browser/ui/views/ash/screenshot_taker.h" 20 #include "chrome/browser/ui/views/ash/screenshot_taker.h"
21 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
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/env.h" 24 #include "ui/aura/env.h"
24 #include "ui/aura/display_manager.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"
32 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h" 33 #include "chrome/browser/ui/views/ash/brightness_controller_chromeos.h"
33 #include "chrome/browser/ui/views/ash/ime_controller_chromeos.h" 34 #include "chrome/browser/ui/views/ash/ime_controller_chromeos.h"
34 #include "chrome/browser/ui/views/ash/volume_controller_chromeos.h"
35 #endif 35 #endif
36 36
37 37
38 namespace chrome { 38 namespace chrome {
39 39
40 bool ShouldOpenAshOnStartup() { 40 bool ShouldOpenAshOnStartup() {
41 #if defined(OS_CHROMEOS) 41 #if defined(OS_CHROMEOS)
42 return true; 42 return true;
43 #endif 43 #endif
44 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOpenAsh); 44 return CommandLine::ForCurrentProcess()->HasSwitch(switches::kOpenAsh);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 #endif 99 #endif
100 ash::Shell::GetPrimaryRootWindow()->ShowRootWindow(); 100 ash::Shell::GetPrimaryRootWindow()->ShowRootWindow();
101 } 101 }
102 102
103 void CloseAsh() { 103 void CloseAsh() {
104 if (ash::Shell::GetInstance()) 104 if (ash::Shell::GetInstance())
105 ash::Shell::DeleteInstance(); 105 ash::Shell::DeleteInstance();
106 } 106 }
107 107
108 } // namespace chrome 108 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/mock_xkeyboard.h ('k') | chrome/browser/ui/ash/caps_lock_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698