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

Side by Side Diff: base/message_loop/message_pump_mac.h

Issue 333473002: Add a CFRunLoop mode for message loop tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add multimode helpers Created 6 years, 6 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
« no previous file with comments | « no previous file | base/message_loop/message_pump_mac.mm » ('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 // The basis for all native run loops on the Mac is the CFRunLoop. It can be 5 // The basis for all native run loops on the Mac is the CFRunLoop. It can be
6 // used directly, it can be used as the driving force behind the similar 6 // used directly, it can be used as the driving force behind the similar
7 // Foundation NSRunLoop, and it can be used to implement higher-level event 7 // Foundation NSRunLoop, and it can be used to implement higher-level event
8 // loops such as the NSApplication event loop. 8 // loops such as the NSApplication event loop.
9 // 9 //
10 // This file introduces a basic CFRunLoop-based implementation of the 10 // This file introduces a basic CFRunLoop-based implementation of the
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 343
344 // Wrapper to query -[NSApp isHandlingSendEvent] from C++ code. 344 // Wrapper to query -[NSApp isHandlingSendEvent] from C++ code.
345 // Requires NSApp to implement CrAppProtocol. 345 // Requires NSApp to implement CrAppProtocol.
346 static bool IsHandlingSendEvent(); 346 static bool IsHandlingSendEvent();
347 #endif // !defined(OS_IOS) 347 #endif // !defined(OS_IOS)
348 348
349 private: 349 private:
350 DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePumpMac); 350 DISALLOW_IMPLICIT_CONSTRUCTORS(MessagePumpMac);
351 }; 351 };
352 352
353 // Tasks posted to the message loop are posted under this mode, as well
354 // as kCFRunLoopCommonModes.
355 extern const CFStringRef BASE_EXPORT kMessageLoopExclusiveRunLoopMode;
356
353 } // namespace base 357 } // namespace base
354 358
355 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_MAC_H_ 359 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | base/message_loop/message_pump_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698