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

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

Issue 211033: Automated ui test porting + cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: all green\! Created 11 years, 3 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
Index: chrome/test/automation/window_proxy.h
===================================================================
--- chrome/test/automation/window_proxy.h (revision 26702)
+++ chrome/test/automation/window_proxy.h (working copy)
@@ -36,14 +36,6 @@
int handle)
: AutomationResourceProxy(tracker, sender, handle) {}
-#if defined(OS_WIN)
- // TODO(port): Use portable replacements for windowsisms.
-
- // Gets the outermost HWND that corresponds to the given window.
- // Returns true if the call was successful.
- bool GetHWND(HWND* handle) const;
-#endif // defined(OS_WIN)
-
// 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
@@ -72,6 +64,9 @@
// 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
@@ -84,6 +79,10 @@
bool screen_coordinates, uint32 timeout_ms,
bool* is_timeout);
+ // 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);

Powered by Google App Engine
This is Rietveld 408576698