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

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

Issue 11878013: Make ui_controls only usable from interactive_ui_tests. This has two benefits: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 (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_INTERNAL_H_ 5 #ifndef UI_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_
6 #define UI_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_ 6 #define UI_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "ui/ui_controls/ui_controls.h" 9 #include "ui/ui_controls/ui_controls.h"
10 #include "ui/base/ui_export.h"
11 10
12 namespace ui_controls { 11 namespace ui_controls {
13 namespace internal { 12 namespace internal {
14 13
15 // A utility functions for windows to send key or mouse events and 14 // A utility functions for windows to send key or mouse events and
16 // run the task. These functions are internal, but exported so that 15 // run the task. These functions are internal, but exported so that
17 // aura implementation can use these utility functions. 16 // aura implementation can use these utility functions.
18 UI_EXPORT bool SendKeyPressImpl(HWND hwnd, 17 bool SendKeyPressImpl(HWND hwnd,
19 ui::KeyboardCode key, 18 ui::KeyboardCode key,
20 bool control, 19 bool control,
21 bool shift, 20 bool shift,
22 bool alt, 21 bool alt,
23 const base::Closure& task); 22 const base::Closure& task);
24 UI_EXPORT bool SendMouseMoveImpl(long x, long y, const base::Closure& task); 23 bool SendMouseMoveImpl(long x, long y, const base::Closure& task);
25 UI_EXPORT bool SendMouseEventsImpl(MouseButton type, 24 bool SendMouseEventsImpl(MouseButton type,
26 int state, 25 int state,
27 const base::Closure& task); 26 const base::Closure& task);
28 UI_EXPORT void RunClosureAfterAllPendingUITasksImpl(const base::Closure& task); 27 void RunClosureAfterAllPendingUITasksImpl(const base::Closure& task);
29 28
30 } // namespace internal 29 } // namespace internal
31 } // namespace ui_controls 30 } // namespace ui_controls
32 31
33 #endif // UI_BASE_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_ 32 #endif // UI_BASE_UI_CONTROLS_UI_CONTROLS_INTERNAL_H_
OLDNEW
« no previous file with comments | « ui/ui_controls/ui_controls_aura.h ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698