| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| 11 | 11 |
| 12 #include "base/thread.h" | 12 #include "base/thread.h" |
| 13 #include "chrome/test/automation/automation_handle_tracker.h" | 13 #include "chrome/test/automation/automation_handle_tracker.h" |
| 14 | 14 |
| 15 class GURL; | |
| 16 class BrowserProxy; | 15 class BrowserProxy; |
| 17 class TabProxy; | |
| 18 class WindowProxy; | 16 class WindowProxy; |
| 19 | 17 |
| 20 namespace gfx { | 18 namespace gfx { |
| 21 class Rect; | 19 class Rect; |
| 22 } | 20 } |
| 23 | 21 |
| 24 // This class presents the interface to actions that can be performed on a given | 22 // This class presents the interface to actions that can be performed on a given |
| 25 // window. Note that this object can be invalidated at any time if the | 23 // window. Note that this object can be invalidated at any time if the |
| 26 // corresponding window in the app is closed. In that case, any subsequent | 24 // corresponding window in the app is closed. In that case, any subsequent |
| 27 // calls will return false immediately. | 25 // calls will return false immediately. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 77 |
| 80 // Returns the browser this window corresponds to, or NULL if this window | 78 // Returns the browser this window corresponds to, or NULL if this window |
| 81 // is not a browser. The caller owns the returned BrowserProxy. | 79 // is not a browser. The caller owns the returned BrowserProxy. |
| 82 BrowserProxy* GetBrowser(); | 80 BrowserProxy* GetBrowser(); |
| 83 | 81 |
| 84 // Same as GetWindow except return NULL if response isn't received | 82 // Same as GetWindow except return NULL if response isn't received |
| 85 // before the specified timeout. | 83 // before the specified timeout. |
| 86 BrowserProxy* GetBrowserWithTimeout(uint32 timeout_ms, bool* is_timeout); | 84 BrowserProxy* GetBrowserWithTimeout(uint32 timeout_ms, bool* is_timeout); |
| 87 | 85 |
| 88 private: | 86 private: |
| 89 DISALLOW_EVIL_CONSTRUCTORS(WindowProxy); | 87 DISALLOW_COPY_AND_ASSIGN(WindowProxy); |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ | 90 #endif // CHROME_TEST_AUTOMATION_WINDOW_PROXY_H__ |
| 93 | |
| OLD | NEW |