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 #import "base/message_loop/message_pump_mac.h" | 5 #import "base/message_loop/message_pump_mac.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include <limits> | 10 #include <limits> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/mac/call_with_eh_frame.h" | 13 #include "base/mac/call_with_eh_frame.h" |
14 #include "base/mac/scoped_cftyperef.h" | 14 #include "base/mac/scoped_cftyperef.h" |
| 15 #include "base/macros.h" |
15 #include "base/message_loop/timer_slack.h" | 16 #include "base/message_loop/timer_slack.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "build/build_config.h" |
18 | 20 |
19 #if !defined(OS_IOS) | 21 #if !defined(OS_IOS) |
20 #import <AppKit/AppKit.h> | 22 #import <AppKit/AppKit.h> |
21 #endif // !defined(OS_IOS) | 23 #endif // !defined(OS_IOS) |
22 | 24 |
23 namespace base { | 25 namespace base { |
24 | 26 |
25 namespace { | 27 namespace { |
26 | 28 |
27 void CFRunLoopAddSourceToAllModes(CFRunLoopRef rl, CFRunLoopSourceRef source) { | 29 void CFRunLoopAddSourceToAllModes(CFRunLoopRef rl, CFRunLoopSourceRef source) { |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 [NSApplication sharedApplication]; | 784 [NSApplication sharedApplication]; |
783 g_not_using_cr_app = true; | 785 g_not_using_cr_app = true; |
784 return new MessagePumpNSApplication; | 786 return new MessagePumpNSApplication; |
785 #endif | 787 #endif |
786 } | 788 } |
787 | 789 |
788 return new MessagePumpNSRunLoop; | 790 return new MessagePumpNSRunLoop; |
789 } | 791 } |
790 | 792 |
791 } // namespace base | 793 } // namespace base |
OLD | NEW |