OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOMATION_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Wrapper over AutomationHandleTracker::InvalidateHandle. Receives the | 179 // Wrapper over AutomationHandleTracker::InvalidateHandle. Receives the |
180 // message from AutomationProxy, unpacks the messages and routes that call to | 180 // message from AutomationProxy, unpacks the messages and routes that call to |
181 // the tracker. | 181 // the tracker. |
182 virtual void InvalidateHandle(const IPC::Message& message); | 182 virtual void InvalidateHandle(const IPC::Message& message); |
183 | 183 |
184 // Creates a tab that can hosted in an external process. The function | 184 // Creates a tab that can hosted in an external process. The function |
185 // returns a TabProxy representing the tab as well as a window handle | 185 // returns a TabProxy representing the tab as well as a window handle |
186 // that can be reparented in another process. | 186 // that can be reparented in another process. |
187 scoped_refptr<TabProxy> CreateExternalTab( | 187 scoped_refptr<TabProxy> CreateExternalTab( |
188 const ExternalTabSettings& settings, | 188 const ExternalTabSettings& settings, |
189 gfx::AcceleratedWidget* external_tab_container, | 189 gfx::NativeWindow* external_tab_container, |
190 gfx::AcceleratedWidget* tab); | 190 gfx::NativeWindow* tab); |
191 | 191 |
192 base::TimeDelta action_timeout() const { | 192 base::TimeDelta action_timeout() const { |
193 return action_timeout_; | 193 return action_timeout_; |
194 } | 194 } |
195 | 195 |
196 // Sets the timeout for subsequent automation calls. | 196 // Sets the timeout for subsequent automation calls. |
197 void set_action_timeout(base::TimeDelta timeout) { | 197 void set_action_timeout(base::TimeDelta timeout) { |
198 DCHECK(timeout <= base::TimeDelta::FromMinutes(10)) | 198 DCHECK(timeout <= base::TimeDelta::FromMinutes(10)) |
199 << "10+ min of automation timeout " | 199 << "10+ min of automation timeout " |
200 "can make the test hang and be killed by buildbot"; | 200 "can make the test hang and be killed by buildbot"; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 259 |
260 // Delay to let the browser execute the command. | 260 // Delay to let the browser execute the command. |
261 base::TimeDelta action_timeout_; | 261 base::TimeDelta action_timeout_; |
262 | 262 |
263 base::PlatformThreadId listener_thread_id_; | 263 base::PlatformThreadId listener_thread_id_; |
264 | 264 |
265 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); | 265 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); |
266 }; | 266 }; |
267 | 267 |
268 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ | 268 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H_ |
OLD | NEW |