Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Unified Diff: chrome/test/webdriver/commands/window_commands.h

Issue 9288051: Implement the webdriver window sizing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/webdriver/commands/window_commands.h
diff --git a/chrome/test/webdriver/commands/window_commands.h b/chrome/test/webdriver/commands/window_commands.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5df95d9e52c8693b37856de78e5fcf95fe63f98
--- /dev/null
+++ b/chrome/test/webdriver/commands/window_commands.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_TEST_WEBDRIVER_COMMANDS_WINDOW_COMMANDS_H_
+#define CHROME_TEST_WEBDRIVER_COMMANDS_WINDOW_COMMANDS_H_
+
+#include <string>
+#include <vector>
+
+#include "chrome/test/webdriver/commands/webdriver_command.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace webdriver {
+
+class Response;
+
+class WindowSizeCommand : public WebDriverCommand {
+ public:
+ WindowSizeCommand(const std::vector<std::string>& path_segments,
+ const base::DictionaryValue* parameters);
+ virtual ~WindowSizeCommand();
+
+ virtual bool DoesGet() OVERRIDE;
+ virtual bool DoesPost() OVERRIDE;
+ virtual void ExecuteGet(Response* const response) OVERRIDE;
+ virtual void ExecutePost(Response* const response) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WindowSizeCommand);
+};
+
+class WindowPositionCommand : public WebDriverCommand {
+ public:
+ WindowPositionCommand(const std::vector<std::string>& path_segments,
+ const base::DictionaryValue* parameters);
+ virtual ~WindowPositionCommand();
+
+ virtual bool DoesGet() OVERRIDE;
+ virtual bool DoesPost() OVERRIDE;
+ virtual void ExecuteGet(Response* const response) OVERRIDE;
+ virtual void ExecutePost(Response* const response) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WindowPositionCommand);
+};
+
+} // namespace webdriver
+
+#endif // CHROME_TEST_WEBDRIVER_COMMANDS_WINDOW_COMMANDS_H_
« no previous file with comments | « chrome/test/webdriver/commands/chrome_commands.cc ('k') | chrome/test/webdriver/commands/window_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698