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

Side by Side Diff: base/run_loop.cc

Issue 110283005: Make aura_demo work on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix resolve Created 6 years, 11 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/run_loop.h ('k') | chrome/app/theme/theme_resources.grd » ('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) 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 "base/run_loop.h" 5 #include "base/run_loop.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 RunLoop::RunLoop() 11 RunLoop::RunLoop()
12 : loop_(MessageLoop::current()), 12 : loop_(MessageLoop::current()),
13 previous_run_loop_(NULL), 13 previous_run_loop_(NULL),
14 run_depth_(0), 14 run_depth_(0),
15 run_called_(false), 15 run_called_(false),
16 quit_called_(false), 16 quit_called_(false),
17 running_(false), 17 running_(false),
18 quit_when_idle_received_(false), 18 quit_when_idle_received_(false),
19 weak_factory_(this) { 19 weak_factory_(this) {
20 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ 20 #if defined(USE_AURA)
21 !defined(USE_GTK_MESSAGE_PUMP)
22 dispatcher_ = NULL; 21 dispatcher_ = NULL;
23 #endif 22 #endif
24 } 23 }
25 24
26 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ 25 #if defined(USE_AURA)
27 !defined(USE_GTK_MESSAGE_PUMP)
28 RunLoop::RunLoop(MessageLoop::Dispatcher* dispatcher) 26 RunLoop::RunLoop(MessageLoop::Dispatcher* dispatcher)
29 : loop_(MessageLoop::current()), 27 : loop_(MessageLoop::current()),
30 previous_run_loop_(NULL), 28 previous_run_loop_(NULL),
31 dispatcher_(dispatcher), 29 dispatcher_(dispatcher),
32 run_depth_(0), 30 run_depth_(0),
33 run_called_(false), 31 run_called_(false),
34 quit_called_(false), 32 quit_called_(false),
35 running_(false), 33 running_(false),
36 quit_when_idle_received_(false), 34 quit_when_idle_received_(false),
37 weak_factory_(this) { 35 weak_factory_(this) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 85
88 // Pop RunLoop stack: 86 // Pop RunLoop stack:
89 loop_->run_loop_ = previous_run_loop_; 87 loop_->run_loop_ = previous_run_loop_;
90 88
91 // Execute deferred QuitNow, if any: 89 // Execute deferred QuitNow, if any:
92 if (previous_run_loop_ && previous_run_loop_->quit_called_) 90 if (previous_run_loop_ && previous_run_loop_->quit_called_)
93 loop_->QuitNow(); 91 loop_->QuitNow();
94 } 92 }
95 93
96 } // namespace base 94 } // namespace base
OLDNEW
« no previous file with comments | « base/run_loop.h ('k') | chrome/app/theme/theme_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698