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

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

Issue 343080: Revert "Handle GTK enter and leave notification events and pass them to WebKit as " (Closed)
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
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
51 // Get the title of the top level window. 47 // Get the title of the top level window.
52 bool GetWindowTitle(string16* text); 48 bool GetWindowTitle(string16* text);
53 49
54 // Simulates a key press at the OS level. |key| is the virtual key code of the 50 // Simulates a key press at the OS level. |key| is the virtual key code of the
55 // key pressed and |flags| specifies which modifiers keys are also pressed (as 51 // key pressed and |flags| specifies which modifiers keys are also pressed (as
56 // defined in chrome/views/event.h). Note that this actually sends the event 52 // defined in chrome/views/event.h). Note that this actually sends the event
57 // to the window that has focus. 53 // to the window that has focus.
58 bool SimulateOSKeyPress(base::KeyboardCode key, int flags); 54 bool SimulateOSKeyPress(base::KeyboardCode key, int flags);
59 55
60 // Shows/hides the window and as a result makes it active/inactive. 56 // Shows/hides the window and as a result makes it active/inactive.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // before the specified timeout. 100 // before the specified timeout.
105 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms, 101 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms,
106 bool* is_timeout); 102 bool* is_timeout);
107 protected: 103 protected:
108 virtual ~WindowProxy() {} 104 virtual ~WindowProxy() {}
109 private: 105 private:
110 DISALLOW_COPY_AND_ASSIGN(WindowProxy); 106 DISALLOW_COPY_AND_ASSIGN(WindowProxy);
111 }; 107 };
112 108
113 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ 109 #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