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

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

Issue 10692067: Convert PyAuto's NavigateToURL, GetActiveTabIndex, Refresh, RefreshActiveTab, and AppendTab to the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed GetActiveTabIndex from the SWIG interface file. 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
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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 // Example: 843 // Example:
844 // input: { "windex": 1, 844 // input: { "windex": 1,
845 // "tab_index": 3, 845 // "tab_index": 3,
846 // "auto_id": { "type": 0, "id": "awoein" }, 846 // "auto_id": { "type": 0, "id": "awoein" },
847 // "url": "http://www.google.com", 847 // "url": "http://www.google.com",
848 // "navigation_count": 1 // number of navigations to wait for 848 // "navigation_count": 1 // number of navigations to wait for
849 // } 849 // }
850 // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS } 850 // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
851 void NavigateToURL(base::DictionaryValue* args, IPC::Message* reply_message); 851 void NavigateToURL(base::DictionaryValue* args, IPC::Message* reply_message);
852 852
853 // Get the index of the currently active tab. Uses the JSON interface.
854 // The integer |windex| must be given to specify the browser window.
855 // Example:
856 // input: { "windex": 1 }
857 // output: { "tab_index": 3 }
858 void GetActiveTabIndexJSON(DictionaryValue* args,
859 IPC::Message* reply_message);
860
861 // Append a new tab. Uses the JSON interface.
862 // The integer |windex| must be given to specify the browser window. The tab
863 // is opened to |url| and blocks until the page loads.
864 // Example:
865 // input: { "windex": 1,
866 // "url": "http://google.com"
867 // }
868 // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
869 void AppendTabJSON(DictionaryValue* args, IPC::Message* reply_message);
870
853 // Waits until any pending navigation completes in the specified tab. 871 // Waits until any pending navigation completes in the specified tab.
854 // The pair |windex| and |tab_index| or the single |auto_id| must be given 872 // The pair |windex| and |tab_index| or the single |auto_id| must be given
855 // to specify the tab. 873 // to specify the tab.
856 // Example: 874 // Example:
857 // input: { "windex": 1, 875 // input: { "windex": 1,
858 // "tab_index": 1, 876 // "tab_index": 1,
859 // "auto_id": { "type": 0, "id": "awoein" }, 877 // "auto_id": { "type": 0, "id": "awoein" },
860 // } 878 // }
861 // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS } 879 // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
862 void WaitUntilNavigationCompletes( 880 void WaitUntilNavigationCompletes(
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 ImportSettingsData import_settings_data_; 1585 ImportSettingsData import_settings_data_;
1568 1586
1569 // The automation event observer queue. It is lazily created when an observer 1587 // The automation event observer queue. It is lazily created when an observer
1570 // is added to avoid overhead when not needed. 1588 // is added to avoid overhead when not needed.
1571 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1589 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1572 1590
1573 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1591 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1574 }; 1592 };
1575 1593
1576 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1594 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698