OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_UI_CONTROLS_UI_CONTROLS_AURA_H_ | 5 #ifndef UI_UI_CONTROLS_UI_CONTROLS_AURA_H_ |
6 #define UI_UI_CONTROLS_UI_CONTROLS_AURA_H_ | 6 #define UI_UI_CONTROLS_UI_CONTROLS_AURA_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "ui/base/keycodes/keyboard_codes.h" | 9 #include "ui/base/keycodes/keyboard_codes.h" |
10 #include "ui/base/ui_export.h" | |
11 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
12 #include "ui/ui_controls/ui_controls.h" | 11 #include "ui/ui_controls/ui_controls.h" |
13 | 12 |
14 namespace ui_controls { | 13 namespace ui_controls { |
15 | 14 |
16 // An interface to provide Aura implementation of UI control. | 15 // An interface to provide Aura implementation of UI control. |
17 class UI_EXPORT UIControlsAura { | 16 class UIControlsAura { |
18 public: | 17 public: |
19 UIControlsAura(); | 18 UIControlsAura(); |
20 virtual ~UIControlsAura(); | 19 virtual ~UIControlsAura(); |
21 | 20 |
22 virtual bool SendKeyPress(gfx::NativeWindow window, | 21 virtual bool SendKeyPress(gfx::NativeWindow window, |
23 ui::KeyboardCode key, | 22 ui::KeyboardCode key, |
24 bool control, | 23 bool control, |
25 bool shift, | 24 bool shift, |
26 bool alt, | 25 bool alt, |
27 bool command) = 0; | 26 bool command) = 0; |
(...skipping 21 matching lines...) Expand all Loading... |
49 virtual bool SendMouseClick(MouseButton type) = 0; | 48 virtual bool SendMouseClick(MouseButton type) = 0; |
50 | 49 |
51 // Runs |closure| after processing all pending ui events. | 50 // Runs |closure| after processing all pending ui events. |
52 virtual void RunClosureAfterAllPendingUIEvents( | 51 virtual void RunClosureAfterAllPendingUIEvents( |
53 const base::Closure& closure) = 0; | 52 const base::Closure& closure) = 0; |
54 }; | 53 }; |
55 | 54 |
56 } // namespace ui_controls | 55 } // namespace ui_controls |
57 | 56 |
58 #endif // UI_UI_CONTROLS_UI_CONTROLS_AURA_H_ | 57 #endif // UI_UI_CONTROLS_UI_CONTROLS_AURA_H_ |
OLD | NEW |