diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/message_loop/message_loop.h | 6 | ||||
-rw-r--r-- | base/run_loop.cc | 6 | ||||
-rw-r--r-- | base/run_loop.h | 9 |
3 files changed, 8 insertions, 13 deletions
diff --git a/base/message_loop/message_loop.h b/base/message_loop/message_loop.h index f4ed5a1..04709e6 100644 --- a/base/message_loop/message_loop.h +++ b/base/message_loop/message_loop.h @@ -96,11 +96,11 @@ class WaitableEvent; class BASE_EXPORT MessageLoop : public MessagePump::Delegate { public: -#if defined(USE_GTK_MESSAGE_PUMP) - typedef MessagePumpGdkObserver Observer; -#elif !defined(OS_MACOSX) && !defined(OS_ANDROID) +#if defined(USE_AURA) typedef MessagePumpDispatcher Dispatcher; typedef MessagePumpObserver Observer; +#elif defined(USE_GTK_MESSAGE_PUMP) + typedef MessagePumpGdkObserver Observer; #endif // A MessageLoop has a particular type, which indicates the set of diff --git a/base/run_loop.cc b/base/run_loop.cc index 8666ee4..45723bb 100644 --- a/base/run_loop.cc +++ b/base/run_loop.cc @@ -17,14 +17,12 @@ RunLoop::RunLoop() running_(false), quit_when_idle_received_(false), weak_factory_(this) { -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) +#if defined(USE_AURA) dispatcher_ = NULL; #endif } -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) +#if defined(USE_AURA) RunLoop::RunLoop(MessageLoop::Dispatcher* dispatcher) : loop_(MessageLoop::current()), previous_run_loop_(NULL), diff --git a/base/run_loop.h b/base/run_loop.h index 0dce634..112bb79 100644 --- a/base/run_loop.h +++ b/base/run_loop.h @@ -27,14 +27,12 @@ class MessagePumpUIApplication; class BASE_EXPORT RunLoop { public: RunLoop(); -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) +#if defined(USE_AURA) explicit RunLoop(MessageLoop::Dispatcher* dispatcher); #endif ~RunLoop(); -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) +#if defined(USE_AURA) void set_dispatcher(MessageLoop::Dispatcher* dispatcher) { dispatcher_ = dispatcher; } @@ -97,8 +95,7 @@ class BASE_EXPORT RunLoop { // Parent RunLoop or NULL if this is the top-most RunLoop. RunLoop* previous_run_loop_; -#if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ - !defined(USE_GTK_MESSAGE_PUMP) +#if defined(USE_AURA) MessageLoop::Dispatcher* dispatcher_; #endif |