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

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

Issue 235025: Use windows keycodes under linux (and all non-windows platforms). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « base/keyboard_codes_posix.h ('k') | chrome/browser/automation/ui_controls_linux.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_
6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ 6 #define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 24 matching lines...) Expand all
35 // 35 //
36 // SendKeyPress(...); 36 // SendKeyPress(...);
37 // SendKeyPressNotifyWhenDone(..., task); 37 // SendKeyPressNotifyWhenDone(..., task);
38 // 38 //
39 // might trigger |task| early. 39 // might trigger |task| early.
40 // 40 //
41 // Note: Windows does not currently do anything with the |window| argument for 41 // Note: Windows does not currently do anything with the |window| argument for
42 // these functions, so passing NULL is ok. 42 // these functions, so passing NULL is ok.
43 43
44 // Send a key press with/without modifier keys. 44 // Send a key press with/without modifier keys.
45 // |key| should be a VKEY code as defined in base/keyboard_codes.h
45 bool SendKeyPress(gfx::NativeWindow window, wchar_t key, bool control, 46 bool SendKeyPress(gfx::NativeWindow window, wchar_t key, bool control,
46 bool shift, bool alt); 47 bool shift, bool alt);
47 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, wchar_t key, 48 bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, wchar_t key,
48 bool control, bool shift, 49 bool control, bool shift,
49 bool alt, Task* task); 50 bool alt, Task* task);
50 51
51 // Simulate a mouse move. (x,y) are absolute screen coordinates. 52 // Simulate a mouse move. (x,y) are absolute screen coordinates.
52 bool SendMouseMove(long x, long y); 53 bool SendMouseMove(long x, long y);
53 bool SendMouseMoveNotifyWhenDone(long x, long y, Task* task); 54 bool SendMouseMoveNotifyWhenDone(long x, long y, Task* task);
54 55
(...skipping 25 matching lines...) Expand all
80 #elif defined(OS_LINUX) 81 #elif defined(OS_LINUX)
81 GtkWidget* widget, 82 GtkWidget* widget,
82 #endif 83 #endif
83 MouseButton button, 84 MouseButton button,
84 int state, 85 int state,
85 Task* task); 86 Task* task);
86 87
87 } // ui_controls 88 } // ui_controls
88 89
89 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_ 90 #endif // CHROME_BROWSER_AUTOMATION_UI_CONTROLS_H_
OLDNEW
« no previous file with comments | « base/keyboard_codes_posix.h ('k') | chrome/browser/automation/ui_controls_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698