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 synchronous script with arguments. |
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 asynchronous script with arguments. |
| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 scoped_ptr<base::Value>* value); | 243 scoped_ptr<base::Value>* value); |
237 | 244 |
238 // Delete all cookies visible to the current page. | 245 // Delete all cookies visible to the current page. |
239 Status ExecuteDeleteAllCookies( | 246 Status ExecuteDeleteAllCookies( |
240 Session* session, | 247 Session* session, |
241 WebView* web_view, | 248 WebView* web_view, |
242 const base::DictionaryValue& params, | 249 const base::DictionaryValue& params, |
243 scoped_ptr<base::Value>* value); | 250 scoped_ptr<base::Value>* value); |
244 | 251 |
245 #endif // CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ | 252 #endif // CHROME_TEST_CHROMEDRIVER_WINDOW_COMMANDS_H_ |
OLD | NEW |