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

Side by Side Diff: chrome/test/chromedriver/element_commands.h

Issue 1669453002: [chromedriver] Apply page load timeout to slow cross-process navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DEPS modifications. Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEDRIVER_ELEMENT_COMMANDS_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_ELEMENT_COMMANDS_H_
6 #define CHROME_TEST_CHROMEDRIVER_ELEMENT_COMMANDS_H_ 6 #define CHROME_TEST_CHROMEDRIVER_ELEMENT_COMMANDS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace base { 13 namespace base {
14 class DictionaryValue; 14 class DictionaryValue;
15 class Value; 15 class Value;
16 } 16 }
17 17
18 struct Session; 18 struct Session;
19 class Status; 19 class Status;
20 class Timeout;
20 class WebView; 21 class WebView;
21 22
22 typedef base::Callback<Status( 23 typedef base::Callback<Status(
23 Session* session, 24 Session* session,
24 WebView* web_view, 25 WebView* web_view,
25 const std::string&, 26 const std::string&,
26 const base::DictionaryValue&, 27 const base::DictionaryValue&,
27 scoped_ptr<base::Value>*)> ElementCommand; 28 scoped_ptr<base::Value>*)> ElementCommand;
28 29
29 // Execute a command on a specific element. 30 // Execute a command on a specific element.
30 Status ExecuteElementCommand( 31 Status ExecuteElementCommand(
31 const ElementCommand& command, 32 const ElementCommand& command,
32 Session* session, 33 Session* session,
33 WebView* web_view, 34 WebView* web_view,
34 const base::DictionaryValue& params, 35 const base::DictionaryValue& params,
35 scoped_ptr<base::Value>* value); 36 scoped_ptr<base::Value>* value,
37 Timeout* timeout);
36 38
37 // Search for an element on the page, starting from the given element. 39 // Search for an element on the page, starting from the given element.
38 Status ExecuteFindChildElement( 40 Status ExecuteFindChildElement(
39 int interval_ms, 41 int interval_ms,
40 Session* session, 42 Session* session,
41 WebView* web_view, 43 WebView* web_view,
42 const std::string& element_id, 44 const std::string& element_id,
43 const base::DictionaryValue& params, 45 const base::DictionaryValue& params,
44 scoped_ptr<base::Value>* value); 46 scoped_ptr<base::Value>* value);
45 47
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 // Returns whether the two given elements are equivalent. 213 // Returns whether the two given elements are equivalent.
212 Status ExecuteElementEquals( 214 Status ExecuteElementEquals(
213 Session* session, 215 Session* session,
214 WebView* web_view, 216 WebView* web_view,
215 const std::string& element_id, 217 const std::string& element_id,
216 const base::DictionaryValue& params, 218 const base::DictionaryValue& params,
217 scoped_ptr<base::Value>* value); 219 scoped_ptr<base::Value>* value);
218 220
219 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_COMMANDS_H_ 221 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_COMMANDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698