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 149233: Adds a way to set the boundaries of the browser window through... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // the given ID in this window. Returns true if bounds could be obtained. 75 // the given ID in this window. Returns true if bounds could be obtained.
76 // If |screen_coordinates| is true, the bounds are returned in the coordinates 76 // If |screen_coordinates| is true, the bounds are returned in the coordinates
77 // of the screen, if false in the coordinates of the browser. 77 // of the screen, if false in the coordinates of the browser.
78 bool GetViewBounds(int view_id, gfx::Rect* bounds, bool screen_coordinates); 78 bool GetViewBounds(int view_id, gfx::Rect* bounds, bool screen_coordinates);
79 79
80 // Like GetViewBounds except returns false if timeout occurs before view 80 // Like GetViewBounds except returns false if timeout occurs before view
81 // bounds are obtained, and sets is_timeout accordingly. 81 // bounds are obtained, and sets is_timeout accordingly.
82 bool GetViewBoundsWithTimeout(int view_id, gfx::Rect* bounds, 82 bool GetViewBoundsWithTimeout(int view_id, gfx::Rect* bounds,
83 bool screen_coordinates, uint32 timeout_ms, 83 bool screen_coordinates, uint32 timeout_ms,
84 bool* is_timeout); 84 bool* is_timeout);
85
86 // Sets the position and size of the window. Returns true if setting the
87 // bounds was successful.
88 bool SetBounds(const gfx::Rect& bounds);
89
85 // Gets the id of the view that currently has focus. Returns true if the id 90 // Gets the id of the view that currently has focus. Returns true if the id
86 // was retrieved. 91 // was retrieved.
87 bool GetFocusedViewID(int* view_id); 92 bool GetFocusedViewID(int* view_id);
88 93
89 // Returns the browser this window corresponds to, or NULL if this window 94 // Returns the browser this window corresponds to, or NULL if this window
90 // is not a browser. The caller owns the returned BrowserProxy. 95 // is not a browser. The caller owns the returned BrowserProxy.
91 scoped_refptr<BrowserProxy> GetBrowser(); 96 scoped_refptr<BrowserProxy> GetBrowser();
92 97
93 // Same as GetWindow except return NULL if response isn't received 98 // Same as GetWindow except return NULL if response isn't received
94 // before the specified timeout. 99 // before the specified timeout.
95 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms, 100 scoped_refptr<BrowserProxy> GetBrowserWithTimeout(uint32 timeout_ms,
96 bool* is_timeout); 101 bool* is_timeout);
97 protected: 102 protected:
98 virtual ~WindowProxy() {} 103 virtual ~WindowProxy() {}
99 private: 104 private:
100 DISALLOW_COPY_AND_ASSIGN(WindowProxy); 105 DISALLOW_COPY_AND_ASSIGN(WindowProxy);
101 }; 106 };
102 107
103 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ 108 #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