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 class Session; |
| 20 |
16 // All URLs that are found in the document: | 21 // All URLs that are found in the document: |
17 // http://code.google.com/p/selenium/wiki/JsonWireProtocol | 22 // http://code.google.com/p/selenium/wiki/JsonWireProtocol |
18 // and are to be supported for all browsers and platforms should inhert | 23 // and are to be supported for all browsers and platforms should inhert |
19 // this class. For cases which do not invlove interaction with the | 24 // this class. For cases which do not invlove interaction with the |
20 // browser, such a transfering a file, inhert from the Command class | 25 // browser, such a transfering a file, inhert from the Command class |
21 // directly. | 26 // directly. |
22 class WebDriverCommand : public Command { | 27 class WebDriverCommand : public Command { |
23 public: | 28 public: |
24 inline WebDriverCommand(const std::vector<std::string> path_segments, | 29 inline WebDriverCommand(const std::vector<std::string> path_segments, |
25 const DictionaryValue* const parameters) | 30 const DictionaryValue* const parameters) |
(...skipping 18 matching lines...) Expand all Loading... |
44 DictionaryValue* GetElementIdAsDictionaryValue(const std::string& element_id); | 49 DictionaryValue* GetElementIdAsDictionaryValue(const std::string& element_id); |
45 | 50 |
46 Session* session_; | 51 Session* session_; |
47 | 52 |
48 DISALLOW_COPY_AND_ASSIGN(WebDriverCommand); | 53 DISALLOW_COPY_AND_ASSIGN(WebDriverCommand); |
49 }; | 54 }; |
50 | 55 |
51 } // namespace webdriver | 56 } // namespace webdriver |
52 | 57 |
53 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ | 58 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBDRIVER_COMMAND_H_ |
OLD | NEW |