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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 // The pair |windex| and |tab_index| or the single |auto_id| must be given 1088 // The pair |windex| and |tab_index| or the single |auto_id| must be given
1089 // to specify the tab. 1089 // to specify the tab.
1090 // Example: 1090 // Example:
1091 // input: { "windex": 1, 1091 // input: { "windex": 1,
1092 // "tab_index": 1, 1092 // "tab_index": 1,
1093 // "auto_id": { "type": 0, "id": "awoein" } 1093 // "auto_id": { "type": 0, "id": "awoein" }
1094 // } 1094 // }
1095 // output: none 1095 // output: none
1096 void CloseTabJSON(base::DictionaryValue* args, IPC::Message* reply_message); 1096 void CloseTabJSON(base::DictionaryValue* args, IPC::Message* reply_message);
1097 1097
1098 // Sets the specified web view bounds.
1099 // The single |auto_id| must be given to specify the view.
1100 // This method currently is only supported for tabs.
1101 // Example:
1102 // input: { "auto_id": { "type": 0, "id": "awoein" },
1103 // "bounds": {
1104 // "x": 100,
1105 // "y": 200,
1106 // "width": 500,
1107 // "height": 800
1108 // }
1109 // }
1110 // output: none
1111 void SetViewBounds(base::DictionaryValue* args, IPC::Message* reply_message);
1112
1098 // Sends the WebKit events for a mouse click at a given coordinate. 1113 // Sends the WebKit events for a mouse click at a given coordinate.
1099 // The pair |windex| and |tab_index| or the single |auto_id| must be given 1114 // The pair |windex| and |tab_index| or the single |auto_id| must be given
1100 // to specify the render view. 1115 // to specify the render view.
1101 // Example: 1116 // Example:
1102 // input: { "windex": 1, 1117 // input: { "windex": 1,
1103 // "tab_index": 1, 1118 // "tab_index": 1,
1104 // "auto_id": { "type": 0, "id": "awoein" }, 1119 // "auto_id": { "type": 0, "id": "awoein" },
1105 // "button": automation::kLeftButton, 1120 // "button": automation::kLeftButton,
1106 // "x": 100, 1121 // "x": 100,
1107 // "y": 100 1122 // "y": 100
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 // Used to enumerate browser profiles. 1543 // Used to enumerate browser profiles.
1529 scoped_refptr<ImporterList> importer_list_; 1544 scoped_refptr<ImporterList> importer_list_;
1530 1545
1531 // The stored data for the ImportSettings operation. 1546 // The stored data for the ImportSettings operation.
1532 ImportSettingsData import_settings_data_; 1547 ImportSettingsData import_settings_data_;
1533 1548
1534 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1549 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1535 }; 1550 };
1536 1551
1537 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1552 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698