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

Side by Side Diff: chrome/test/chromedriver/server/http_handler.cc

Issue 2533963002: [chromedriver] Return not-implemented status code for FullscreenWindow command. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/test/chromedriver/server/http_handler.h" 5 #include "chrome/test/chromedriver/server/http_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 "session/:sessionId/window/:windowHandle/size", 334 "session/:sessionId/window/:windowHandle/size",
335 WrapToCommand("SetWindowSize", base::Bind(&ExecuteSetWindowSize))), 335 WrapToCommand("SetWindowSize", base::Bind(&ExecuteSetWindowSize))),
336 CommandMapping(kPost, 336 CommandMapping(kPost,
337 "session/:sessionId/window/:windowHandle/position", 337 "session/:sessionId/window/:windowHandle/position",
338 WrapToCommand("SetWindowPosition", 338 WrapToCommand("SetWindowPosition",
339 base::Bind(&ExecuteSetWindowPosition))), 339 base::Bind(&ExecuteSetWindowPosition))),
340 CommandMapping( 340 CommandMapping(
341 kPost, 341 kPost,
342 "session/:sessionId/window/:windowHandle/maximize", 342 "session/:sessionId/window/:windowHandle/maximize",
343 WrapToCommand("MaximizeWindow", base::Bind(&ExecuteMaximizeWindow))), 343 WrapToCommand("MaximizeWindow", base::Bind(&ExecuteMaximizeWindow))),
344 CommandMapping(
345 kPost,
346 "session/:sessionId/window/fullscreen",
347 WrapToCommand("FullscreenWindow",
348 base::Bind(&ExecuteUnimplementedCommand))),
344 CommandMapping(kDelete, 349 CommandMapping(kDelete,
345 "session/:sessionId/window", 350 "session/:sessionId/window",
346 WrapToCommand("CloseWindow", base::Bind(&ExecuteClose))), 351 WrapToCommand("CloseWindow", base::Bind(&ExecuteClose))),
347 CommandMapping( 352 CommandMapping(
348 kPost, 353 kPost,
349 "session/:sessionId/element/:id/drag", 354 "session/:sessionId/element/:id/drag",
350 WrapToCommand("Drag", base::Bind(&ExecuteUnimplementedCommand))), 355 WrapToCommand("Drag", base::Bind(&ExecuteUnimplementedCommand))),
351 CommandMapping( 356 CommandMapping(
352 kGet, 357 kGet,
353 "session/:sessionId/element/:id/css/:propertyName", 358 "session/:sessionId/element/:id/css/:propertyName",
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 params.SetString(name, decoded); 903 params.SetString(name, decoded);
899 } else if (command_path_parts[i] != path_parts[i]) { 904 } else if (command_path_parts[i] != path_parts[i]) {
900 return false; 905 return false;
901 } 906 }
902 } 907 }
903 out_params->MergeDictionary(&params); 908 out_params->MergeDictionary(&params);
904 return true; 909 return true;
905 } 910 }
906 911
907 } // namespace internal 912 } // namespace internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698