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

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

Issue 10790055: Convert more PyAuto proxy calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ensure the returned Python string is of type str, not unicode, before passing to GURL. Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | 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) 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 868
869 // Checks if a browser command is enabled on the given browser window. 869 // Checks if a browser command is enabled on the given browser window.
870 // Example: 870 // Example:
871 // input: { "accelerator": 1, 871 // input: { "accelerator": 1,
872 // "windex": 1 872 // "windex": 1
873 // } 873 // }
874 // output: { "enabled": true } 874 // output: { "enabled": true }
875 void IsMenuCommandEnabledJSON(DictionaryValue* args, 875 void IsMenuCommandEnabledJSON(DictionaryValue* args,
876 IPC::Message* reply_message); 876 IPC::Message* reply_message);
877 877
878 // Returns a dictionary of information about the given tab.
879 // Example:
880 // input: { "tab_index": 1,
881 // "windex": 1
882 // }
883 // output: { "title": "Hello World",
884 // "url": "http://foo.bar" }
885 void GetTabInfo(DictionaryValue* args,
886 IPC::Message* reply_message);
887
888 // Returns the tab count for the given browser window.
889 // Example:
890 // input: { "windex": 1 }
891 // output: { "tab_count": 5 }
892 void GetTabCountJSON(DictionaryValue* args,
893 IPC::Message* reply_message);
894
878 // Navigates to the given URL. Uses the JSON interface. 895 // Navigates to the given URL. Uses the JSON interface.
879 // The pair |windex| and |tab_index| or the single |auto_id| must be given 896 // The pair |windex| and |tab_index| or the single |auto_id| must be given
880 // to specify the tab. 897 // to specify the tab.
881 // Example: 898 // Example:
882 // input: { "windex": 1, 899 // input: { "windex": 1,
883 // "tab_index": 3, 900 // "tab_index": 3,
884 // "auto_id": { "type": 0, "id": "awoein" }, 901 // "auto_id": { "type": 0, "id": "awoein" },
885 // "url": "http://www.google.com", 902 // "url": "http://www.google.com",
886 // "navigation_count": 1 // number of navigations to wait for 903 // "navigation_count": 1 // number of navigations to wait for
887 // } 904 // }
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 // The pair |windex| and |tab_index| or the single |auto_id| must be given 1357 // The pair |windex| and |tab_index| or the single |auto_id| must be given
1341 // to specify the tab. 1358 // to specify the tab.
1342 // Example: 1359 // Example:
1343 // input: { "windex": 1, 1360 // input: { "windex": 1,
1344 // "tab_index": 1, 1361 // "tab_index": 1,
1345 // "auto_id": { "type": 0, "id": "awoein" } 1362 // "auto_id": { "type": 0, "id": "awoein" }
1346 // } 1363 // }
1347 // output: none 1364 // output: none
1348 void ActivateTabJSON(base::DictionaryValue* args, IPC::Message* message); 1365 void ActivateTabJSON(base::DictionaryValue* args, IPC::Message* message);
1349 1366
1367 // Brings the given brower's window to the front.
1368 // Example:
1369 // input: { "windex": 1 }
1370 // output: none
1371 void BringBrowserToFrontJSON(base::DictionaryValue* args,
1372 IPC::Message* message);
1373
1350 // Gets the version of ChromeDriver automation supported by this server. 1374 // Gets the version of ChromeDriver automation supported by this server.
1351 // Example: 1375 // Example:
1352 // input: none 1376 // input: none
1353 // output: { "version": 1 } 1377 // output: { "version": 1 }
1354 void GetChromeDriverAutomationVersion(base::DictionaryValue* args, 1378 void GetChromeDriverAutomationVersion(base::DictionaryValue* args,
1355 IPC::Message* message); 1379 IPC::Message* message);
1356 1380
1357 // Determines whether the extension page action is visible in the given tab. 1381 // Determines whether the extension page action is visible in the given tab.
1358 // Example: 1382 // Example:
1359 // input: { "auto_id": { "type": 0, "id": "awoein" }, 1383 // input: { "auto_id": { "type": 0, "id": "awoein" },
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1654 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1631 1655
1632 // List of commands which just finish synchronously and don't require 1656 // List of commands which just finish synchronously and don't require
1633 // setting up an observer. 1657 // setting up an observer.
1634 static const int kSynchronousCommands[]; 1658 static const int kSynchronousCommands[];
1635 1659
1636 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1660 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1637 }; 1661 };
1638 1662
1639 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1663 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698