diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 21:42:02 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-07 21:42:02 +0000 |
commit | 3580aaf313e8fbfbec870e76a10a2461ab3f30c0 (patch) | |
tree | cebd7a2fe7a09cefacd6c0680b1e14d2e4ccb74e /base | |
parent | 60e9143637b518ac1d977c055922321082aaa818 (diff) | |
download | chromium_src-3580aaf313e8fbfbec870e76a10a2461ab3f30c0.zip chromium_src-3580aaf313e8fbfbec870e76a10a2461ab3f30c0.tar.gz chromium_src-3580aaf313e8fbfbec870e76a10a2461ab3f30c0.tar.bz2 |
Make aura_demo work on Mac
Fix a few instances where !Windows is assumed to be Linux.
Chang many instances of !USE_GTK_MESSAGE_PUMP &&
!OS_MACOSX && !OS_ANDROID to just USE_AURA (they are
equivalent now).
Add a very minimal RootWindowHostMac.
Of note is that building with Aura requires running
"gyp_chromium --no-circular-check" (the circular
check is only enabled on Mac, and doesn't work with
Aura).
Also note that the demo does not work properly unless BGRA
support is disabled (in FeatureInfo::InitializeBasicState these
extensions can be disabled).
BUG=331669
Review URL: https://codereview.chromium.org/110283005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243392 0039d316-1c4b-4281-b951-d872f2087c98
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 |