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

Side by Side Diff: ash/shell/content_client/shell_browser_main_parts.cc

Issue 13947019: Clean up selected ash defines for MessagePumpLinux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proof-reading Created 7 years, 8 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 "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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698