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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10388251: Support maximize window command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit test in chromedriver_tests.py; nicer error reporting - a method to check whether the current v… 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 #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 // "bounds": { 1088 // "bounds": {
1089 // "x": 100, 1089 // "x": 100,
1090 // "y": 200, 1090 // "y": 200,
1091 // "width": 500, 1091 // "width": 500,
1092 // "height": 800 1092 // "height": 800
1093 // } 1093 // }
1094 // } 1094 // }
1095 // output: none 1095 // output: none
1096 void SetViewBounds(base::DictionaryValue* args, IPC::Message* reply_message); 1096 void SetViewBounds(base::DictionaryValue* args, IPC::Message* reply_message);
1097 1097
1098 // Maximizes the web view.
1099 // The single |auto_id| must be given to specify the view.
kkania 2012/05/24 17:25:38 Mention it only works for tabs
zori 2012/05/29 23:53:32 Done.
1100 // Example:
1101 // input: { "auto_id": { "type": 0, "id": "awoein" } }
1102 // output: none
1103 void MaximizeView(base::DictionaryValue* args, IPC::Message* reply_message);
1104
1098 // Sends the WebKit events for a mouse click at a given coordinate. 1105 // 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 1106 // The pair |windex| and |tab_index| or the single |auto_id| must be given
1100 // to specify the render view. 1107 // to specify the render view.
1101 // Example: 1108 // Example:
1102 // input: { "windex": 1, 1109 // input: { "windex": 1,
1103 // "tab_index": 1, 1110 // "tab_index": 1,
1104 // "auto_id": { "type": 0, "id": "awoein" }, 1111 // "auto_id": { "type": 0, "id": "awoein" },
1105 // "button": automation::kLeftButton, 1112 // "button": automation::kLeftButton,
1106 // "x": 100, 1113 // "x": 100,
1107 // "y": 100 1114 // "y": 100
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 ImportSettingsData import_settings_data_; 1504 ImportSettingsData import_settings_data_;
1498 1505
1499 // The automation event observer queue. It is lazily created when an observer 1506 // The automation event observer queue. It is lazily created when an observer
1500 // is added to avoid overhead when not needed. 1507 // is added to avoid overhead when not needed.
1501 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1508 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1502 1509
1503 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1510 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1504 }; 1511 };
1505 1512
1506 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1513 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698