| 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_SESSION_COMMANDS_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_SESSION_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const base::DictionaryValue& params, | 67 const base::DictionaryValue& params, |
| 68 scoped_ptr<base::Value>* value); | 68 scoped_ptr<base::Value>* value); |
| 69 | 69 |
| 70 // Configure the amount of time that a particular type of operation can execute | 70 // Configure the amount of time that a particular type of operation can execute |
| 71 // for before they are aborted and a timeout error is returned to the client. | 71 // for before they are aborted and a timeout error is returned to the client. |
| 72 Status ExecuteSetTimeout( | 72 Status ExecuteSetTimeout( |
| 73 Session* session, | 73 Session* session, |
| 74 const base::DictionaryValue& params, | 74 const base::DictionaryValue& params, |
| 75 scoped_ptr<base::Value>* value); | 75 scoped_ptr<base::Value>* value); |
| 76 | 76 |
| 77 // Set the timeout for asynchronous scripts. |
| 78 Status ExecuteSetScriptTimeout( |
| 79 Session* session, |
| 80 const base::DictionaryValue& params, |
| 81 scoped_ptr<base::Value>* value); |
| 82 |
| 77 // Returns whether an alert is open. | 83 // Returns whether an alert is open. |
| 78 Status ExecuteGetAlert( | 84 Status ExecuteGetAlert( |
| 79 Session* session, | 85 Session* session, |
| 80 const base::DictionaryValue& params, | 86 const base::DictionaryValue& params, |
| 81 scoped_ptr<base::Value>* value); | 87 scoped_ptr<base::Value>* value); |
| 82 | 88 |
| 83 // Returns the text of the open alert. | 89 // Returns the text of the open alert. |
| 84 Status ExecuteGetAlertText( | 90 Status ExecuteGetAlertText( |
| 85 Session* session, | 91 Session* session, |
| 86 const base::DictionaryValue& params, | 92 const base::DictionaryValue& params, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 98 const base::DictionaryValue& params, | 104 const base::DictionaryValue& params, |
| 99 scoped_ptr<base::Value>* value); | 105 scoped_ptr<base::Value>* value); |
| 100 | 106 |
| 101 // Dismisses the open alert. | 107 // Dismisses the open alert. |
| 102 Status ExecuteDismissAlert( | 108 Status ExecuteDismissAlert( |
| 103 Session* session, | 109 Session* session, |
| 104 const base::DictionaryValue& params, | 110 const base::DictionaryValue& params, |
| 105 scoped_ptr<base::Value>* value); | 111 scoped_ptr<base::Value>* value); |
| 106 | 112 |
| 107 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ | 113 #endif // CHROME_TEST_CHROMEDRIVER_SESSION_COMMANDS_H_ |
| OLD | NEW |