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

Side by Side Diff: chrome/test/automation/window_proxy.h

Issue 354010: Handle GTK enter and leave notification events and pass them to WebKit as ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TEST_AUTOMATION_WINDOW_PROXY_H__ 5 #ifndef CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__
6 #define CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ 6 #define CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 26 matching lines...) Expand all
37 int handle) 37 int handle)
38 : AutomationResourceProxy(tracker, sender, handle) {} 38 : AutomationResourceProxy(tracker, sender, handle) {}
39 39
40 // Simulates a click at the OS level. |click| is in the window's coordinates 40 // Simulates a click at the OS level. |click| is in the window's coordinates
41 // and |flags| specifies which buttons are pressed (as defined in 41 // and |flags| specifies which buttons are pressed (as defined in
42 // chrome/views/event.h). Note that this is equivalent to the user moving 42 // chrome/views/event.h). Note that this is equivalent to the user moving
43 // the mouse and pressing the button. So if there is a window on top of this 43 // the mouse and pressing the button. So if there is a window on top of this
44 // window, the top window is clicked. 44 // window, the top window is clicked.
45 bool SimulateOSClick(const gfx::Point& click, int flags); 45 bool SimulateOSClick(const gfx::Point& click, int flags);
46 46
47 // Moves the mouse pointer this location at the OS level. |location| is
48 // in the window's coordinates.
49 bool SimulateOSMouseMove(const gfx::Point& location);
50
47 // Get the title of the top level window. 51 // Get the title of the top level window.
48 bool GetWindowTitle(string16* text); 52 bool GetWindowTitle(string16* text);
49 53
50 // Simulates a key press at the OS level. |key| is the virtual key code of the 54 // Simulates a key press at the OS level. |key| is the virtual key code of the
51 // key pressed and |flags| specifies which modifiers keys are also pressed (as 55 // key pressed and |flags| specifies which modifiers keys are also pressed (as
52 // defined in chrome/views/event.h). Note that this actually sends the event 56 // defined in chrome/views/event.h). Note that this actually sends the event
53 // to the window that has focus. 57 // to the window that has focus.
54 bool SimulateOSKeyPress(base::KeyboardCode key, int flags); 58 bool SimulateOSKeyPress(base::KeyboardCode key, int flags);
55 59
56 // Shows/hides the window and as a result makes it active/inactive. 60 // Shows/hides the window and as a result makes it active/inactive.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // before the specified timeout. 104 // before the specified timeout.
101 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms, 105 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms,
102 bool* is_timeout); 106 bool* is_timeout);
103 protected: 107 protected:
104 virtual ~WindowProxy() {} 108 virtual ~WindowProxy() {}
105 private: 109 private:
106 DISALLOW_COPY_AND_ASSIGN(WindowProxy); 110 DISALLOW_COPY_AND_ASSIGN(WindowProxy);
107 }; 111 };
108 112
109 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ 113 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_messages_internal.h ('k') | chrome/test/automation/window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698