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

Side by Side Diff: chrome/browser/automation/ui_controls_internal.h

Issue 8702019: Use callback_forward.h instead of callback.h where possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include order. Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ 6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/automation/ui_controls.h" 9 #include "chrome/browser/automation/ui_controls.h"
10 10
11 namespace ui_controls { 11 namespace ui_controls {
12 namespace internal { 12 namespace internal {
13 13
14 // A utility function to send a mouse click event in a closure. It's shared by 14 // A utility function to send a mouse click event in a closure. It's shared by
15 // ui_controls_linux.cc and ui_controls_mac.cc 15 // ui_controls_linux.cc and ui_controls_mac.cc
16 void ClickTask(MouseButton button, int state, const base::Closure& followup); 16 void ClickTask(MouseButton button, int state, const base::Closure& followup);
17 17
18 #if defined(OS_WIN) 18 #if defined(OS_WIN)
19 // A utility functions for windows to send key or mouse events and 19 // A utility functions for windows to send key or mouse events and
20 // run the task. 20 // run the task.
21 bool SendKeyPressImpl(ui::KeyboardCode key, 21 bool SendKeyPressImpl(ui::KeyboardCode key,
22 bool control, 22 bool control,
23 bool shift, 23 bool shift,
24 bool alt, 24 bool alt,
25 const base::Closure& task); 25 const base::Closure& task);
26 bool SendMouseMoveImpl(long x, long y, const base::Closure& task); 26 bool SendMouseMoveImpl(long x, long y, const base::Closure& task);
27 bool SendMouseEventsImpl(MouseButton type, 27 bool SendMouseEventsImpl(MouseButton type,
28 int state, 28 int state,
29 const base::Closure& task); 29 const base::Closure& task);
30 #endif 30 #endif
31 31
32 } // namespace internal 32 } // namespace internal
33 } // namespace ui_controls 33 } // namespace ui_controls
34 34
35 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ 35 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/ui_controls.h ('k') | chrome/browser/automation/ui_controls_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698