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

Unified Diff: chrome/test/automation/window_proxy.h

Issue 10388175: Remove all the unnused automation IPCs. These were used by UI tests that have been converted to bro… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/automation/window_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/window_proxy.h
===================================================================
--- chrome/test/automation/window_proxy.h (revision 137438)
+++ chrome/test/automation/window_proxy.h (working copy)
@@ -36,63 +36,26 @@
int handle)
: AutomationResourceProxy(tracker, sender, handle) {}
- // Simulates a click at the OS level. |click| is in the window's coordinates
- // and |flags| specifies which buttons are pressed (as defined in
- // chrome/views/event.h). Note that this is equivalent to the user moving
- // the mouse and pressing the button. So if there is a window on top of this
- // window, the top window is clicked.
- bool SimulateOSClick(const gfx::Point& click, int flags);
-
// Moves the mouse pointer this location at the OS level. |location| is
// in the window's coordinates.
bool SimulateOSMouseMove(const gfx::Point& location);
- // Get the title of the top level window.
- bool GetWindowTitle(string16* text);
-
// Simulates a key press at the OS level. |key| is the virtual key code of the
// key pressed and |flags| specifies which modifiers keys are also pressed (as
// defined in chrome/views/event.h). Note that this actually sends the event
// to the window that has focus.
bool SimulateOSKeyPress(ui::KeyboardCode key, int flags);
- // Shows/hides the window and as a result makes it active/inactive.
- // Returns true if the call was successful.
- bool SetVisible(bool visible);
-
- // Sets |active| to true if this view is currently the active window.
- // Returns true if the call was successful.
- bool IsActive(bool* active);
-
- // Make this window the active window.
- // Returns true if the call was successful.
- bool Activate();
-
- // Sets |maximized| to true if this window is maximized.
- bool IsMaximized(bool* maximized);
-
// Gets the bounds (in window coordinates) that correspond to the view with
// the given ID in this window. Returns true if bounds could be obtained.
// If |screen_coordinates| is true, the bounds are returned in the coordinates
// of the screen, if false in the coordinates of the browser.
bool GetViewBounds(int view_id, gfx::Rect* bounds, bool screen_coordinates);
- // Gets the position and size of the window. Returns true if setting the
- // bounds was successful.
- bool GetBounds(gfx::Rect* bounds);
-
// Sets the position and size of the window. Returns true if setting the
// bounds was successful.
bool SetBounds(const gfx::Rect& bounds);
- // Returns the browser this window corresponds to, or NULL if this window
- // is not a browser. The caller owns the returned BrowserProxy.
- scoped_refptr<BrowserProxy> GetBrowser();
-
- // Same as GetWindow except return NULL if response isn't received
- // before the specified timeout.
- scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms,
- bool* is_timeout);
protected:
virtual ~WindowProxy() {}
private:
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/automation/window_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698