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

Side by Side Diff: base/message_loop.cc

Issue 7833016: aura: A few changes to have aura_demo compile and run on linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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
« no previous file with comments | « base/message_loop.h ('k') | ui/gfx/gtk_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/message_loop.h" 5 #include "base/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #define MESSAGE_PUMP_IO new base::MessagePumpForIO() 144 #define MESSAGE_PUMP_IO new base::MessagePumpForIO()
145 #elif defined(OS_MACOSX) 145 #elif defined(OS_MACOSX)
146 #define MESSAGE_PUMP_UI base::MessagePumpMac::Create() 146 #define MESSAGE_PUMP_UI base::MessagePumpMac::Create()
147 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent() 147 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent()
148 #elif defined(OS_ANDROID) 148 #elif defined(OS_ANDROID)
149 #define MESSAGE_PUMP_UI new base::MessagePumpForUI() 149 #define MESSAGE_PUMP_UI new base::MessagePumpForUI()
150 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent() 150 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent()
151 #elif defined(USE_WAYLAND) 151 #elif defined(USE_WAYLAND)
152 #define MESSAGE_PUMP_UI new base::MessagePumpWayland() 152 #define MESSAGE_PUMP_UI new base::MessagePumpWayland()
153 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent() 153 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent()
154 #elif defined(TOUCH_UI) 154 #elif defined(TOUCH_UI) || defined(USE_AURA)
155 #define MESSAGE_PUMP_UI new base::MessagePumpX() 155 #define MESSAGE_PUMP_UI new base::MessagePumpX()
156 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent() 156 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent()
157 #elif defined(OS_NACL) 157 #elif defined(OS_NACL)
158 // Currently NaCl doesn't have a UI or an IO MessageLoop. 158 // Currently NaCl doesn't have a UI or an IO MessageLoop.
159 // TODO(abarth): Figure out if we need these. 159 // TODO(abarth): Figure out if we need these.
160 #define MESSAGE_PUMP_UI NULL 160 #define MESSAGE_PUMP_UI NULL
161 #define MESSAGE_PUMP_IO NULL 161 #define MESSAGE_PUMP_IO NULL
162 #elif defined(OS_POSIX) // POSIX but not MACOSX. 162 #elif defined(OS_POSIX) // POSIX but not MACOSX.
163 #define MESSAGE_PUMP_UI new base::MessagePumpGtk() 163 #define MESSAGE_PUMP_UI new base::MessagePumpGtk()
164 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent() 164 #define MESSAGE_PUMP_IO new base::MessagePumpLibevent()
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 Watcher *delegate) { 846 Watcher *delegate) {
847 return pump_libevent()->WatchFileDescriptor( 847 return pump_libevent()->WatchFileDescriptor(
848 fd, 848 fd,
849 persistent, 849 persistent,
850 static_cast<base::MessagePumpLibevent::Mode>(mode), 850 static_cast<base::MessagePumpLibevent::Mode>(mode),
851 controller, 851 controller,
852 delegate); 852 delegate);
853 } 853 }
854 854
855 #endif 855 #endif
OLDNEW
« no previous file with comments | « base/message_loop.h ('k') | ui/gfx/gtk_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698