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

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: |BrowserWindow| (gtk and cocoa) will notify when a window is maximized. Created 8 years, 6 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.
1100 // This method currently is only supported for tabs.
1101 // Example:
1102 // input: { "auto_id": { "type": 0, "id": "awoein" } }
1103 // output: none
1104 void MaximizeView(base::DictionaryValue* args, IPC::Message* reply_message);
1105
1098 // Sends the WebKit events for a mouse click at a given coordinate. 1106 // 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 1107 // The pair |windex| and |tab_index| or the single |auto_id| must be given
1100 // to specify the render view. 1108 // to specify the render view.
1101 // Example: 1109 // Example:
1102 // input: { "windex": 1, 1110 // input: { "windex": 1,
1103 // "tab_index": 1, 1111 // "tab_index": 1,
1104 // "auto_id": { "type": 0, "id": "awoein" }, 1112 // "auto_id": { "type": 0, "id": "awoein" },
1105 // "button": automation::kLeftButton, 1113 // "button": automation::kLeftButton,
1106 // "x": 100, 1114 // "x": 100,
1107 // "y": 100 1115 // "y": 100
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 ImportSettingsData import_settings_data_; 1508 ImportSettingsData import_settings_data_;
1501 1509
1502 // The automation event observer queue. It is lazily created when an observer 1510 // The automation event observer queue. It is lazily created when an observer
1503 // is added to avoid overhead when not needed. 1511 // is added to avoid overhead when not needed.
1504 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1512 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1505 1513
1506 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1514 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1507 }; 1515 };
1508 1516
1509 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1517 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698