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

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

Issue 10388251: Support maximize window command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 dispatcher->Add<RefreshCommand>( "/session/*/refresh"); 139 dispatcher->Add<RefreshCommand>( "/session/*/refresh");
140 dispatcher->Add<SourceCommand>( "/session/*/source"); 140 dispatcher->Add<SourceCommand>( "/session/*/source");
141 dispatcher->Add<TitleCommand>( "/session/*/title"); 141 dispatcher->Add<TitleCommand>( "/session/*/title");
142 dispatcher->Add<URLCommand>( "/session/*/url"); 142 dispatcher->Add<URLCommand>( "/session/*/url");
143 dispatcher->Add<WindowCommand>( "/session/*/window"); 143 dispatcher->Add<WindowCommand>( "/session/*/window");
144 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle"); 144 dispatcher->Add<WindowHandleCommand>( "/session/*/window_handle");
145 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles"); 145 dispatcher->Add<WindowHandlesCommand>("/session/*/window_handles");
146 dispatcher->Add<WindowSizeCommand>( "/session/*/window/*/size"); 146 dispatcher->Add<WindowSizeCommand>( "/session/*/window/*/size");
147 dispatcher->Add<WindowPositionCommand>( 147 dispatcher->Add<WindowPositionCommand>(
148 "/session/*/window/*/position"); 148 "/session/*/window/*/position");
149 dispatcher->Add<WindowMaximizeCommand>(
150 "/session/*/window/*/maximize");
149 dispatcher->Add<SetAsyncScriptTimeoutCommand>( 151 dispatcher->Add<SetAsyncScriptTimeoutCommand>(
150 "/session/*/timeouts/async_script"); 152 "/session/*/timeouts/async_script");
151 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait"); 153 dispatcher->Add<ImplicitWaitCommand>( "/session/*/timeouts/implicit_wait");
152 dispatcher->Add<LogCommand>( "/session/*/log"); 154 dispatcher->Add<LogCommand>( "/session/*/log");
153 dispatcher->Add<FileUploadCommand>( "/session/*/file"); 155 dispatcher->Add<FileUploadCommand>( "/session/*/file");
154 156
155 // Cookie functions. 157 // Cookie functions.
156 dispatcher->Add<CookieCommand>( "/session/*/cookie"); 158 dispatcher->Add<CookieCommand>( "/session/*/cookie");
157 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*"); 159 dispatcher->Add<NamedCookieCommand>("/session/*/cookie/*");
158 160
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 320
319 return (EXIT_SUCCESS); 321 return (EXIT_SUCCESS);
320 } 322 }
321 323
322 } // namespace webdriver 324 } // namespace webdriver
323 325
324 int main(int argc, char *argv[]) { 326 int main(int argc, char *argv[]) {
325 CommandLine::Init(argc, argv); 327 CommandLine::Init(argc, argv);
326 return webdriver::RunChromeDriver(); 328 return webdriver::RunChromeDriver();
327 } 329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698