Chromium Code Reviews| 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/shell/content_client/shell_browser_main_parts.h" | 5 #include "ash/shell/content_client/shell_browser_main_parts.h" |
| 6 | 6 |
| 7 #include "ash/desktop_background/desktop_background_controller.h" | 7 #include "ash/desktop_background/desktop_background_controller.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell/shell_delegate_impl.h" | 9 #include "ash/shell/shell_delegate_impl.h" |
| 10 #include "ash/shell/window_watcher.h" | 10 #include "ash/shell/window_watcher.h" |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 #include "ui/compositor/compositor.h" | 28 #include "ui/compositor/compositor.h" |
| 29 #include "ui/compositor/test/compositor_test_support.h" | 29 #include "ui/compositor/test/compositor_test_support.h" |
| 30 #include "ui/gfx/screen.h" | 30 #include "ui/gfx/screen.h" |
| 31 #include "ui/views/focus/accelerator_handler.h" | 31 #include "ui/views/focus/accelerator_handler.h" |
| 32 #include "ui/views/test/test_views_delegate.h" | 32 #include "ui/views/test/test_views_delegate.h" |
| 33 | 33 |
| 34 #if defined(ENABLE_MESSAGE_CENTER) | 34 #if defined(ENABLE_MESSAGE_CENTER) |
| 35 #include "ui/message_center/message_center.h" | 35 #include "ui/message_center/message_center.h" |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #if defined(OS_LINUX) | 38 #if defined(OS_LINUX) |
|
sadrul
2013/04/09 18:50:24
This should be #if defined(USE_X11)
rjkroege
2013/04/09 19:50:10
Done.
| |
| 39 #include "ui/base/touch/touch_factory_x11.h" | 39 #include "ui/base/touch/touch_factory_x11.h" |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 #if defined(OS_CHROMEOS) | 42 #if defined(OS_CHROMEOS) |
| 43 #include "chromeos/dbus/dbus_thread_manager.h" | 43 #include "chromeos/dbus/dbus_thread_manager.h" |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 namespace ash { | 46 namespace ash { |
| 47 namespace shell { | 47 namespace shell { |
| 48 void InitWindowTypeLauncher(); | 48 void InitWindowTypeLauncher(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 const content::MainFunctionParams& parameters) | 82 const content::MainFunctionParams& parameters) |
| 83 : BrowserMainParts(), | 83 : BrowserMainParts(), |
| 84 delegate_(NULL) { | 84 delegate_(NULL) { |
| 85 } | 85 } |
| 86 | 86 |
| 87 ShellBrowserMainParts::~ShellBrowserMainParts() { | 87 ShellBrowserMainParts::~ShellBrowserMainParts() { |
| 88 } | 88 } |
| 89 | 89 |
| 90 #if !defined(OS_MACOSX) | 90 #if !defined(OS_MACOSX) |
| 91 void ShellBrowserMainParts::PreMainMessageLoopStart() { | 91 void ShellBrowserMainParts::PreMainMessageLoopStart() { |
| 92 #if defined(OS_LINUX) | 92 #if defined(OS_LINUX) && !defined(USE_MESSAGEPUMP_LINUX) |
|
sadrul
2013/04/09 18:50:24
This should just be #if defined(USE_X11)
rjkroege
2013/04/09 19:50:10
That sounds reasonable. done.
| |
| 93 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); | 93 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); |
| 94 #endif | 94 #endif |
| 95 } | 95 } |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 void ShellBrowserMainParts::PostMainMessageLoopStart() { | 98 void ShellBrowserMainParts::PostMainMessageLoopStart() { |
| 99 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
| 100 chromeos::DBusThreadManager::Initialize(); | 100 chromeos::DBusThreadManager::Initialize(); |
| 101 #endif | 101 #endif |
| 102 } | 102 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 aura::Env::DeleteInstance(); | 151 aura::Env::DeleteInstance(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { | 154 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { |
| 155 MessageLoopForUI::current()->Run(); | 155 MessageLoopForUI::current()->Run(); |
| 156 return true; | 156 return true; |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace shell | 159 } // namespace shell |
| 160 } // namespace ash | 160 } // namespace ash |
| OLD | NEW |