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

Side by Side Diff: ui/ui_controls/ui_controls_aura.h

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 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
« no previous file with comments | « ui/ui_controls/ui_controls.h ('k') | ui/ui_controls/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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_UI_CONTROLS_UI_CONTROLS_AURA_H_
6 #define UI_UI_CONTROLS_UI_CONTROLS_AURA_H_
7 #pragma once
8
9 #include "base/callback_forward.h"
10 #include "ui/base/keycodes/keyboard_codes.h"
11 #include "ui/base/ui_export.h"
12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/ui_controls/ui_controls.h"
14
15 namespace ui_controls {
16
17 // An interface to provide Aura implementation of UI control.
18 class UI_EXPORT UIControlsAura {
19 public:
20 UIControlsAura();
21 virtual ~UIControlsAura();
22
23 virtual bool SendKeyPress(gfx::NativeWindow window,
24 ui::KeyboardCode key,
25 bool control,
26 bool shift,
27 bool alt,
28 bool command) = 0;
29 virtual bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window,
30 ui::KeyboardCode key,
31 bool control,
32 bool shift,
33 bool alt,
34 bool command,
35 const base::Closure& task) = 0;
36
37 // Simulate a mouse move. (x,y) are absolute screen coordinates.
38 virtual bool SendMouseMove(long x, long y) = 0;
39 virtual bool SendMouseMoveNotifyWhenDone(long x,
40 long y,
41 const base::Closure& task) = 0;
42
43 // Sends a mouse down and/or up message. The click will be sent to wherever
44 // the cursor currently is, so be sure to move the cursor before calling this
45 // (and be sure the cursor has arrived!).
46 virtual bool SendMouseEvents(MouseButton type, int state) =0;
47 virtual bool SendMouseEventsNotifyWhenDone(MouseButton type, int state,
48 const base::Closure& task) = 0;
49 // Same as SendMouseEvents with BUTTON_UP | BUTTON_DOWN.
50 virtual bool SendMouseClick(MouseButton type) = 0;
51
52 // Runs |closure| after processing all pending ui events.
53 virtual void RunClosureAfterAllPendingUIEvents(
54 const base::Closure& closure) = 0;
55 };
56
57 } // namespace ui_controls
58
59 #endif // UI_UI_CONTROLS_UI_CONTROLS_AURA_H_
OLDNEW
« no previous file with comments | « ui/ui_controls/ui_controls.h ('k') | ui/ui_controls/ui_controls_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698