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

Side by Side Diff: ui/base/test/cocoa_test_event_utils.h

Issue 8332008: Cocoa: Support keyboard navigation in avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_ 5 #ifndef UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_
6 #define UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_ 6 #define UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 25 matching lines...) Expand all
36 NSEvent* MouseEventAtPoint(NSPoint point, NSEventType type, 36 NSEvent* MouseEventAtPoint(NSPoint point, NSEventType type,
37 NSUInteger modifiers); 37 NSUInteger modifiers);
38 NSEvent* LeftMouseDownAtPoint(NSPoint point); 38 NSEvent* LeftMouseDownAtPoint(NSPoint point);
39 NSEvent* LeftMouseDownAtPointInWindow(NSPoint point, NSWindow* window); 39 NSEvent* LeftMouseDownAtPointInWindow(NSPoint point, NSWindow* window);
40 40
41 // Return a mouse down and an up event with the given |clickCount| at 41 // Return a mouse down and an up event with the given |clickCount| at
42 // |view|'s midpoint. 42 // |view|'s midpoint.
43 std::pair<NSEvent*, NSEvent*> MouseClickInView(NSView* view, 43 std::pair<NSEvent*, NSEvent*> MouseClickInView(NSView* view,
44 NSUInteger clickCount); 44 NSUInteger clickCount);
45 45
46 // Returns a key event with the given character.
47 NSEvent* KeyEventWithCharacter(unichar c);
48
46 } // namespace cocoa_test_event_utils 49 } // namespace cocoa_test_event_utils
47 50
48 #endif // UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_ 51 #endif // UI_BASE_TEST_COCOA_TEST_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller_unittest.mm ('k') | ui/base/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698