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

Side by Side Diff: chrome/test/automation/automation_proxy.h

Issue 12035027: Revert 178037 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698