| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/base/test/ui_controls.h" | 5 #include "ui/base/test/ui_controls.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 #include <mach/mach_time.h> | 8 #include <mach/mach_time.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 bool SendMouseClick(MouseButton type) { | 382 bool SendMouseClick(MouseButton type) { |
| 383 CHECK(g_ui_controls_enabled); | 383 CHECK(g_ui_controls_enabled); |
| 384 return SendMouseEventsNotifyWhenDone(type, UP|DOWN, base::Closure()); | 384 return SendMouseEventsNotifyWhenDone(type, UP|DOWN, base::Closure()); |
| 385 } | 385 } |
| 386 | 386 |
| 387 void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) { | 387 void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) { |
| 388 base::MessageLoop::current()->PostTask( | 388 base::MessageLoop::current()->PostTask( |
| 389 FROM_HERE, base::Bind(&EventQueueWatcher, closure)); | 389 FROM_HERE, base::Bind(&EventQueueWatcher, closure)); |
| 390 } | 390 } |
| 391 | 391 |
| 392 bool IsFullKeyboardAccessEnabled() { |
| 393 return [NSApp isFullKeyboardAccessEnabled]; |
| 394 } |
| 395 |
| 392 } // namespace ui_controls | 396 } // namespace ui_controls |
| OLD | NEW |