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

Side by Side Diff: chrome/test/automation/automation_json_requests.h

Issue 9288051: Implement the webdriver window sizing commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 10 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Requests to drag and drop the file paths at the given coordinate in the 397 // Requests to drag and drop the file paths at the given coordinate in the
398 // specified view. Returns true on success. 398 // specified view. Returns true on success.
399 bool SendDragAndDropFilePathsJSONRequest( 399 bool SendDragAndDropFilePathsJSONRequest(
400 AutomationMessageSender* sender, 400 AutomationMessageSender* sender,
401 const WebViewLocator& locator, 401 const WebViewLocator& locator,
402 int x, 402 int x,
403 int y, 403 int y,
404 const std::vector<FilePath::StringType>& paths, 404 const std::vector<FilePath::StringType>& paths,
405 automation::Error* error) WARN_UNUSED_RESULT; 405 automation::Error* error) WARN_UNUSED_RESULT;
406 406
407 // Requests to set the given view's bounds. Returns true on success.
408 bool SendSetViewBoundsJSONRequest(
409 AutomationMessageSender* sender,
410 const WebViewId& id,
411 int x,
412 int y,
413 int width,
414 int height,
415 automation::Error* error) WARN_UNUSED_RESULT;
416
407 // Requests to get the active JavaScript modal dialog's message. Returns true 417 // Requests to get the active JavaScript modal dialog's message. Returns true
408 // on success. 418 // on success.
409 bool SendGetAppModalDialogMessageJSONRequest( 419 bool SendGetAppModalDialogMessageJSONRequest(
410 AutomationMessageSender* sender, 420 AutomationMessageSender* sender,
411 std::string* message, 421 std::string* message,
412 automation::Error* error) WARN_UNUSED_RESULT; 422 automation::Error* error) WARN_UNUSED_RESULT;
413 423
414 // Requests to accept or dismiss the active JavaScript modal dialog. 424 // Requests to accept or dismiss the active JavaScript modal dialog.
415 // Returns true on success. 425 // Returns true on success.
416 bool SendAcceptOrDismissAppModalDialogJSONRequest( 426 bool SendAcceptOrDismissAppModalDialogJSONRequest(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 504
495 // Requests the user preference to be set to the given value. 505 // Requests the user preference to be set to the given value.
496 // Ownership of |value| is taken by this function. Returns true on success. 506 // Ownership of |value| is taken by this function. Returns true on success.
497 bool SendSetPreferenceJSONRequest( 507 bool SendSetPreferenceJSONRequest(
498 AutomationMessageSender* sender, 508 AutomationMessageSender* sender,
499 const std::string& pref, 509 const std::string& pref,
500 base::Value* value, 510 base::Value* value,
501 automation::Error* error) WARN_UNUSED_RESULT; 511 automation::Error* error) WARN_UNUSED_RESULT;
502 512
503 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_ 513 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_JSON_REQUESTS_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_constants.cc ('k') | chrome/test/automation/automation_json_requests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698