| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ | 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/test/webdriver/session_manager.h" | |
| 12 #include "chrome/test/webdriver/commands/command.h" | 11 #include "chrome/test/webdriver/commands/command.h" |
| 12 #include "chrome/test/webdriver/session.h" |
| 13 |
| 14 class DictionaryValue; |
| 13 | 15 |
| 14 namespace webdriver { | 16 namespace webdriver { |
| 15 | 17 |
| 18 class Response; |
| 19 |
| 16 // All URLs that are found in the document: | 20 // All URLs that are found in the document: |
| 17 // http://code.google.com/p/selenium/wiki/JsonWireProtocol | 21 // http://code.google.com/p/selenium/wiki/JsonWireProtocol |
| 18 // and are to be supported for all browsers and platforms should inhert | 22 // and are to be supported for all browsers and platforms should inhert |
| 19 // this class. For cases which do not invlove interaction with the | 23 // this class. For cases which do not invlove interaction with the |
| 20 // browser, such a transfering a file, inhert from the Command class | 24 // browser, such a transfering a file, inhert from the Command class |
| 21 // directly. | 25 // directly. |
| 22 class WebDriverCommand : public Command { | 26 class WebDriverCommand : public Command { |
| 23 public: | 27 public: |
| 24 inline WebDriverCommand(const std::vector<std::string> path_segments, | 28 inline WebDriverCommand(const std::vector<std::string> path_segments, |
| 25 const DictionaryValue* const parameters) | 29 const DictionaryValue* const parameters) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 DictionaryValue* GetElementIdAsDictionaryValue(const std::string& element_id); | 48 DictionaryValue* GetElementIdAsDictionaryValue(const std::string& element_id); |
| 45 | 49 |
| 46 Session* session_; | 50 Session* session_; |
| 47 | 51 |
| 48 DISALLOW_COPY_AND_ASSIGN(WebDriverCommand); | 52 DISALLOW_COPY_AND_ASSIGN(WebDriverCommand); |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace webdriver | 55 } // namespace webdriver |
| 52 | 56 |
| 53 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ | 57 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ |
| OLD | NEW |