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

Side by Side Diff: chrome/test/webdriver/webdriver_server.cc

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <signal.h> 5 #include <signal.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "chrome/test/webdriver/commands/navigate_commands.h" 46 #include "chrome/test/webdriver/commands/navigate_commands.h"
47 #include "chrome/test/webdriver/commands/mouse_commands.h" 47 #include "chrome/test/webdriver/commands/mouse_commands.h"
48 #include "chrome/test/webdriver/commands/screenshot_command.h" 48 #include "chrome/test/webdriver/commands/screenshot_command.h"
49 #include "chrome/test/webdriver/commands/session_with_id.h" 49 #include "chrome/test/webdriver/commands/session_with_id.h"
50 #include "chrome/test/webdriver/commands/set_timeout_commands.h" 50 #include "chrome/test/webdriver/commands/set_timeout_commands.h"
51 #include "chrome/test/webdriver/commands/source_command.h" 51 #include "chrome/test/webdriver/commands/source_command.h"
52 #include "chrome/test/webdriver/commands/target_locator_commands.h" 52 #include "chrome/test/webdriver/commands/target_locator_commands.h"
53 #include "chrome/test/webdriver/commands/title_command.h" 53 #include "chrome/test/webdriver/commands/title_command.h"
54 #include "chrome/test/webdriver/commands/url_command.h" 54 #include "chrome/test/webdriver/commands/url_command.h"
55 #include "chrome/test/webdriver/commands/webelement_commands.h" 55 #include "chrome/test/webdriver/commands/webelement_commands.h"
56 #include "chrome/test/webdriver/commands/window_commands.h"
56 #include "chrome/test/webdriver/webdriver_dispatch.h" 57 #include "chrome/test/webdriver/webdriver_dispatch.h"
57 #include "chrome/test/webdriver/webdriver_logging.h" 58 #include "chrome/test/webdriver/webdriver_logging.h"
58 #include "chrome/test/webdriver/webdriver_session_manager.h" 59 #include "chrome/test/webdriver/webdriver_session_manager.h"
59 #include "chrome/test/webdriver/webdriver_util.h" 60 #include "chrome/test/webdriver/webdriver_util.h"
60 #include "third_party/mongoose/mongoose.h" 61 #include "third_party/mongoose/mongoose.h"
61 62
62 #if defined(OS_WIN) 63 #if defined(OS_WIN)
63 #include <time.h> 64 #include <time.h>
64 #elif defined(OS_POSIX) 65 #elif defined(OS_POSIX)
65 #include <errno.h> 66 #include <errno.h>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 dispatcher->Add<ForwardCommand>( "/session/*/forward"); 134 dispatcher->Add<ForwardCommand>( "/session/*/forward");
134 dispatcher->Add<SwitchFrameCommand>( "/session/*/frame"); 135 dispatcher->Add<SwitchFrameCommand>( "/session/*/frame");
135 dispatcher->Add<KeysCommand>( "/session/*/keys"); 136 dispatcher->Add<KeysCommand>( "/session/*/keys");
136 dispatcher->Add<RefreshCommand>( "/session/*/refresh"); 137 dispatcher->Add<RefreshCommand>( "/session/*/refresh");
137 dispatcher->Add<SourceCommand>( "/session/*/source"); 138 dispatcher->Add<SourceCommand>( "/session/*/source");
138 dispatcher->Add<TitleCommand>( "/session/*/title"); 139 dispatcher->Add<TitleCommand>( "/session/*/title");
139 dispatcher->Add<URLCommand>( "/session/*/url"); 140 dispatcher->Add<URLCommand>( "/session/*/url");
140 dispatcher->Add<WindowCommand>( "/session/*/window"); 141 dispatcher->Add<WindowCommand>( "/session/*/window");
141 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle"); 142 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle");
142 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles"); 143 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles");
144 dispatcher->Add<WindowSizeCommand>( "/session/*/window/*/size");
145 dispatcher->Add<WindowPositionCommand>(
146 "/session/*/window/*/position");
143 dispatcher->Add<SetAsyncScriptTimeoutCommand>( 147 dispatcher->Add<SetAsyncScriptTimeoutCommand>(
144 "/session/*/timeouts/async_script"); 148 "/session/*/timeouts/async_script");
145 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); 149 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait");
146 dispatcher->Add<LogCommand>( "/session/*/log"); 150 dispatcher->Add<LogCommand>( "/session/*/log");
147 151
148 // Cookie functions. 152 // Cookie functions.
149 dispatcher->Add<CookieCommand>( "/session/*/cookie"); 153 dispatcher->Add<CookieCommand>( "/session/*/cookie");
150 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); 154 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*");
151 155
152 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection"); 156 dispatcher->Add<BrowserConnectionCommand>("/session/*/browser_connection");
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 309
306 return (EXIT_SUCCESS); 310 return (EXIT_SUCCESS);
307 } 311 }
308 312
309 } // namespace webdriver 313 } // namespace webdriver
310 314
311 int main(int argc, char *argv[]) { 315 int main(int argc, char *argv[]) {
312 CommandLine::Init(argc, argv); 316 CommandLine::Init(argc, argv);
313 webdriver::RunChromeDriver(); 317 webdriver::RunChromeDriver();
314 } 318 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698