OLD | NEW |
---|---|
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_WINDOW_COMMANDS_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 const base::DictionaryValue& params, | 32 const base::DictionaryValue& params, |
33 scoped_ptr<base::Value>* value); | 33 scoped_ptr<base::Value>* value); |
34 | 34 |
35 // Loads a URL. | 35 // Loads a URL. |
36 Status ExecuteGet( | 36 Status ExecuteGet( |
37 Session* session, | 37 Session* session, |
38 WebView* web_view, | 38 WebView* web_view, |
39 const base::DictionaryValue& params, | 39 const base::DictionaryValue& params, |
40 scoped_ptr<base::Value>* value); | 40 scoped_ptr<base::Value>* value); |
41 | 41 |
42 // Evaluates a given script with arguments. | 42 // Evaluates a given script with arguments synchronously. |
43 Status ExecuteExecuteScript( | 43 Status ExecuteExecuteScript( |
44 Session* session, | 44 Session* session, |
45 WebView* web_view, | 45 WebView* web_view, |
46 const base::DictionaryValue& params, | 46 const base::DictionaryValue& params, |
47 scoped_ptr<base::Value>* value); | 47 scoped_ptr<base::Value>* value); |
48 | 48 |
49 // Evaluates a given script with arguments asynchronously. | |
kkania
2013/03/08 17:25:12
technically, it doesn't evaluate a script asynchro
chrisgao (Use stgao instead)
2013/03/08 21:06:24
Done.
| |
50 Status ExecuteExecuteAsyncScript( | |
51 Session* session, | |
52 WebView* web_view, | |
53 const base::DictionaryValue& params, | |
54 scoped_ptr<base::Value>* value); | |
55 | |
49 // Changes the targeted frame for the given session. | 56 // Changes the targeted frame for the given session. |
50 Status ExecuteSwitchToFrame( | 57 Status ExecuteSwitchToFrame( |
51 Session* session, | 58 Session* session, |
52 WebView* web_view, | 59 WebView* web_view, |
53 const base::DictionaryValue& params, | 60 const base::DictionaryValue& params, |
54 scoped_ptr<base::Value>* value); | 61 scoped_ptr<base::Value>* value); |
55 | 62 |
56 // Get the current page title. | 63 // Get the current page title. |
57 Status ExecuteGetTitle( | 64 Status ExecuteGetTitle( |
58 Session* session, | 65 Session* session, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 const base::DictionaryValue& params, | 214 const base::DictionaryValue& params, |
208 scoped_ptr<base::Value>* value); | 215 scoped_ptr<base::Value>* value); |
209 | 216 |
210 Status ExecuteScreenshot( | 217 Status ExecuteScreenshot( |
211 Session* session, | 218 Session* session, |
212 WebView* web_view, | 219 WebView* web_view, |
213 const base::DictionaryValue& params, | 220 const base::DictionaryValue& params, |
214 scoped_ptr<base::Value>* value); | 221 scoped_ptr<base::Value>* value); |
215 | 222 |
216 #endif // CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ | 223 #endif // CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ |
OLD | NEW |