| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBELEMENT_COMMANDS_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_WEBELEMENT_COMMANDS_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_WEBELEMENT_COMMANDS_H_ | 6 #define CHROME_TEST_WEBDRIVER_COMMANDS_WEBELEMENT_COMMANDS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace webdriver { | 22 namespace webdriver { |
| 23 | 23 |
| 24 class Error; | 24 class Error; |
| 25 class Response; | 25 class Response; |
| 26 | 26 |
| 27 // Handles commands that interact with a web element in the WebDriver REST | 27 // Handles commands that interact with a web element in the WebDriver REST |
| 28 // service. | 28 // service. |
| 29 class WebElementCommand : public WebDriverCommand { | 29 class WebElementCommand : public WebDriverCommand { |
| 30 public: | 30 public: |
| 31 WebElementCommand(const std::vector<std::string>& path_segments, | 31 WebElementCommand(const std::vector<std::string>& path_segments, |
| 32 const base::DictionaryValue* const parameters); | 32 base::DictionaryValue* const parameters); |
| 33 virtual ~WebElementCommand(); | 33 virtual ~WebElementCommand(); |
| 34 | 34 |
| 35 virtual bool Init(Response* const response) OVERRIDE; | 35 virtual bool Init(Response* const response) OVERRIDE; |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 const std::vector<std::string>& path_segments_; | 38 const std::vector<std::string>& path_segments_; |
| 39 ElementId element; | 39 ElementId element; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 DISALLOW_COPY_AND_ASSIGN(WebElementCommand); | 42 DISALLOW_COPY_AND_ASSIGN(WebElementCommand); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 virtual bool DoesGet() OVERRIDE; | 277 virtual bool DoesGet() OVERRIDE; |
| 278 virtual void ExecuteGet(Response* const response) OVERRIDE; | 278 virtual void ExecuteGet(Response* const response) OVERRIDE; |
| 279 | 279 |
| 280 private: | 280 private: |
| 281 DISALLOW_COPY_AND_ASSIGN(ElementTextCommand); | 281 DISALLOW_COPY_AND_ASSIGN(ElementTextCommand); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace webdriver | 284 } // namespace webdriver |
| 285 | 285 |
| 286 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBELEMENT_COMMANDS_H_ | 286 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_WEBELEMENT_COMMANDS_H_ |
| OLD | NEW |