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

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

Issue 162943004: [Refactor] Always pass in screen coordinates to UIControlsAura::SendMouseMove() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 #ifndef UI_BASE_TEST_UI_CONTROLS_H_ 5 #ifndef UI_BASE_TEST_UI_CONTROLS_H_
6 #define UI_BASE_TEST_UI_CONTROLS_H_ 6 #define UI_BASE_TEST_UI_CONTROLS_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bool alt, 51 bool alt,
52 bool command); 52 bool command);
53 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, 53 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window,
54 ui::KeyboardCode key, 54 ui::KeyboardCode key,
55 bool control, 55 bool control,
56 bool shift, 56 bool shift,
57 bool alt, 57 bool alt,
58 bool command, 58 bool command,
59 const base::Closure& task); 59 const base::Closure& task);
60 60
61 // Simulate a mouse move. (x,y) are absolute screen coordinates. 61 // Simulate a mouse move.
62 bool SendMouseMove(long x, long y); 62 bool SendMouseMove(long screen_x, long screen_y);
63 bool SendMouseMoveNotifyWhenDone(long x, 63 bool SendMouseMoveNotifyWhenDone(long screen_x,
64 long y, 64 long screen_y,
65 const base::Closure& task); 65 const base::Closure& task);
66 66
67 enum MouseButton { 67 enum MouseButton {
68 LEFT = 0, 68 LEFT = 0,
69 MIDDLE, 69 MIDDLE,
70 RIGHT, 70 RIGHT,
71 }; 71 };
72 72
73 // Used to indicate the state of the button when generating events. 73 // Used to indicate the state of the button when generating events.
74 enum MouseButtonState { 74 enum MouseButtonState {
(...skipping 18 matching lines...) Expand all
93 #endif 93 #endif
94 94
95 #if defined(USE_AURA) 95 #if defined(USE_AURA)
96 class UIControlsAura; 96 class UIControlsAura;
97 void InstallUIControlsAura(UIControlsAura* instance); 97 void InstallUIControlsAura(UIControlsAura* instance);
98 #endif 98 #endif
99 99
100 } // namespace ui_controls 100 } // namespace ui_controls
101 101
102 #endif // UI_BASE_TEST_UI_CONTROLS_H_ 102 #endif // UI_BASE_TEST_UI_CONTROLS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698