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

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

Issue 2904113002: Replacing WM_TOUCH with WM_POINTER for touch events on Wins 8+ (Closed)
Patch Set: wm touch Created 3 years, 5 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') | ui/base/test/ui_controls_aura.cc » ('j') | 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 #ifndef UI_TEST_BASE_UI_CONTROLS_AURA_H_ 5 #ifndef UI_TEST_BASE_UI_CONTROLS_AURA_H_
6 #define UI_TEST_BASE_UI_CONTROLS_AURA_H_ 6 #define UI_TEST_BASE_UI_CONTROLS_AURA_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "ui/base/test/ui_controls.h" 9 #include "ui/base/test/ui_controls.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Sends a mouse down and/or up message. The click will be sent to wherever 41 // Sends a mouse down and/or up message. The click will be sent to wherever
42 // the cursor currently is, so be sure to move the cursor before calling this 42 // the cursor currently is, so be sure to move the cursor before calling this
43 // (and be sure the cursor has arrived!). 43 // (and be sure the cursor has arrived!).
44 virtual bool SendMouseEvents(MouseButton type, int state) =0; 44 virtual bool SendMouseEvents(MouseButton type, int state) =0;
45 virtual bool SendMouseEventsNotifyWhenDone(MouseButton type, int state, 45 virtual bool SendMouseEventsNotifyWhenDone(MouseButton type, int state,
46 const base::Closure& task) = 0; 46 const base::Closure& task) = 0;
47 // Same as SendMouseEvents with BUTTON_UP | BUTTON_DOWN. 47 // Same as SendMouseEvents with BUTTON_UP | BUTTON_DOWN.
48 virtual bool SendMouseClick(MouseButton type) = 0; 48 virtual bool SendMouseClick(MouseButton type) = 0;
49 49
50 #if defined(OS_WIN)
51 virtual bool SendTouchEvents(int action, int num, int x, int y) = 0;
52 #endif
53
50 // Runs |closure| after processing all pending ui events. 54 // Runs |closure| after processing all pending ui events.
51 virtual void RunClosureAfterAllPendingUIEvents( 55 virtual void RunClosureAfterAllPendingUIEvents(
52 const base::Closure& closure) = 0; 56 const base::Closure& closure) = 0;
53 }; 57 };
54 58
55 } // namespace ui_controls 59 } // namespace ui_controls
56 60
57 #endif // UI_TEST_BASE_UI_CONTROLS_AURA_H_ 61 #endif // UI_TEST_BASE_UI_CONTROLS_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/test/ui_controls.h ('k') | ui/base/test/ui_controls_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698