OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |