| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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/message_pump_mac.h" | 5 #include "base/message_pump_mac.h" |
| 6 | 6 |
| 7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 #include <float.h> | 9 #include <float.h> |
| 10 | 10 |
| 11 #include "base/scoped_nsautorelease_pool.h" | 11 #include "base/scoped_nsautorelease_pool.h" |
| 12 #include "base/time.h" |
| 12 | 13 |
| 13 namespace { | 14 namespace { |
| 14 | 15 |
| 15 void NoOp(void* info) { | 16 void NoOp(void* info) { |
| 16 } | 17 } |
| 17 | 18 |
| 18 } // namespace | 19 } // namespace |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 | 22 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // static | 377 // static |
| 377 MessagePump* MessagePumpMac::Create() { | 378 MessagePump* MessagePumpMac::Create() { |
| 378 if ([NSThread isMainThread]) { | 379 if ([NSThread isMainThread]) { |
| 379 return new MessagePumpNSApplication; | 380 return new MessagePumpNSApplication; |
| 380 } | 381 } |
| 381 | 382 |
| 382 return new MessagePumpNSRunLoop; | 383 return new MessagePumpNSRunLoop; |
| 383 } | 384 } |
| 384 | 385 |
| 385 } // namespace base | 386 } // namespace base |
| OLD | NEW |