| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |