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

Side by Side Diff: ui/events/test/cocoa_test_event_utils.mm

Issue 300113009: Fix BaseBubbleController close issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style fixing Created 6 years, 6 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/events/test/cocoa_test_event_utils.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "ui/events/test/cocoa_test_event_utils.h" 7 #include "ui/events/test/cocoa_test_event_utils.h"
8 8
9 ScopedClassSwizzler::ScopedClassSwizzler(Class target, Class source, 9 ScopedClassSwizzler::ScopedClassSwizzler(Class target, Class source,
10 SEL selector) { 10 SEL selector) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 location:point 60 location:point
61 modifierFlags:0 61 modifierFlags:0
62 timestamp:0 62 timestamp:0
63 windowNumber:[window windowNumber] 63 windowNumber:[window windowNumber]
64 context:nil 64 context:nil
65 eventNumber:0 65 eventNumber:0
66 clickCount:clickCount 66 clickCount:clickCount
67 pressure:1.0]; 67 pressure:1.0];
68 } 68 }
69 69
70 NSEvent* RightMouseDownAtPointInWindow(NSPoint point, NSWindow* window) {
71 return MouseEventAtPointInWindow(point, NSRightMouseDown, window, 1);
72 }
73
74 NSEvent* RightMouseDownAtPoint(NSPoint point) {
75 return RightMouseDownAtPointInWindow(point, nil);
76 }
77
70 NSEvent* LeftMouseDownAtPointInWindow(NSPoint point, NSWindow* window) { 78 NSEvent* LeftMouseDownAtPointInWindow(NSPoint point, NSWindow* window) {
71 return MouseEventAtPointInWindow(point, NSLeftMouseDown, window, 1); 79 return MouseEventAtPointInWindow(point, NSLeftMouseDown, window, 1);
72 } 80 }
73 81
74 NSEvent* LeftMouseDownAtPoint(NSPoint point) { 82 NSEvent* LeftMouseDownAtPoint(NSPoint point) {
75 return LeftMouseDownAtPointInWindow(point, nil); 83 return LeftMouseDownAtPointInWindow(point, nil);
76 } 84 }
77 85
78 std::pair<NSEvent*,NSEvent*> MouseClickInView(NSView* view, 86 std::pair<NSEvent*,NSEvent*> MouseClickInView(NSView* view,
79 NSUInteger clickCount) { 87 NSUInteger clickCount) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 modifierFlags:0 137 modifierFlags:0
130 timestamp:0 138 timestamp:0
131 windowNumber:0 139 windowNumber:0
132 context:nil 140 context:nil
133 subtype:0 141 subtype:0
134 data1:0 142 data1:0
135 data2:0]; 143 data2:0];
136 } 144 }
137 145
138 } // namespace cocoa_test_event_utils 146 } // namespace cocoa_test_event_utils
OLDNEW
« no previous file with comments | « ui/events/test/cocoa_test_event_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698