OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_TEST_WEBDRIVER_COMMANDS_TITLE_COMMAND_H_ | |
6 #define CHROME_TEST_WEBDRIVER_COMMANDS_TITLE_COMMAND_H_ | |
7 | |
8 #include <string> | |
9 #include <vector> | |
10 | |
11 #include "chrome/test/webdriver/commands/webdriver_command.h" | |
12 | |
13 namespace webdriver { | |
14 | |
15 class Response; | |
16 | |
17 // A call with HTTP GET will return the title of the tab. See: | |
18 // http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/t
itle | |
19 class TitleCommand : public WebDriverCommand { | |
20 public: | |
21 TitleCommand(const std::vector<std::string>& path_segments, | |
22 const DictionaryValue* const parameters); | |
23 virtual ~TitleCommand(); | |
24 | |
25 virtual bool DoesGet() OVERRIDE; | |
26 virtual void ExecuteGet(Response* const response) OVERRIDE; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(TitleCommand); | |
30 }; | |
31 | |
32 } // namespace webdriver | |
33 | |
34 #endif // CHROME_TEST_WEBDRIVER_COMMANDS_TITLE_COMMAND_H_ | |
OLD | NEW |