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

Side by Side Diff: ui/base/test/ui_controls_mac.mm

Issue 642143004: [Cocoa] Make TabContentsContainerView more testable for interactive_ui_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 | « ui/base/test/ui_controls.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/base/test/ui_controls.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698