Index: chrome/browser/automation/testing_automation_provider.h |
=================================================================== |
--- chrome/browser/automation/testing_automation_provider.h (revision 137438) |
+++ chrome/browser/automation/testing_automation_provider.h (working copy) |
@@ -88,11 +88,8 @@ |
// IPC Message callbacks. |
void CloseBrowser(int handle, IPC::Message* reply_message); |
- void CloseBrowserAsync(int browser_handle); |
void ActivateTab(int handle, int at_index, int* status); |
void AppendTab(int handle, const GURL& url, IPC::Message* reply_message); |
- void AppendBackgroundTab(int handle, const GURL& url, |
- IPC::Message* reply_message); |
void GetMachPortCount(int* port_count); |
void GetActiveTabIndex(int handle, int* active_tab_index); |
void CloseTab(int tab_handle, bool wait_until_closed, |
@@ -103,16 +100,10 @@ |
const std::string& value, |
int handle, |
int* response_value); |
- void DeleteCookie(const GURL& url, const std::string& cookie_name, |
- int handle, bool* success); |
void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, |
int number_of_navigations, |
IPC::Message* reply_message); |
void NavigationAsync(int handle, const GURL& url, bool* status); |
- void NavigationAsyncWithDisposition(int handle, |
- const GURL& url, |
- WindowOpenDisposition disposition, |
- bool* status); |
void Reload(int handle, IPC::Message* reply_message); |
void GetRedirectsFrom(int tab_handle, |
const GURL& source_url, |
@@ -123,25 +114,15 @@ |
// or in incognito mode. |
void GetBrowserWindow(int index, int* handle); |
void FindTabbedBrowserWindow(int* handle); |
- void GetLastActiveBrowserWindow(int* handle); |
void GetActiveWindow(int* handle); |
void ExecuteBrowserCommandAsync(int handle, int command, bool* success); |
void ExecuteBrowserCommand(int handle, int command, |
IPC::Message* reply_message); |
- void GetBrowserLocale(string16* locale); |
- void IsWindowActive(int handle, bool* success, bool* is_active); |
- void ActivateWindow(int handle); |
- void IsWindowMaximized(int handle, bool* is_maximized, bool* success); |
void TerminateSession(int handle, bool* success); |
void WindowGetViewBounds(int handle, int view_id, bool screen_coordinates, |
bool* success, gfx::Rect* bounds); |
- void GetWindowBounds(int handle, gfx::Rect* bounds, bool* result); |
void SetWindowBounds(int handle, const gfx::Rect& bounds, bool* result); |
void SetWindowVisible(int handle, bool visible, bool* result); |
- void WindowSimulateClick(const IPC::Message& message, |
- int handle, |
- const gfx::Point& click, |
- int flags); |
void WindowSimulateMouseMove(const IPC::Message& message, |
int handle, |
const gfx::Point& location); |
@@ -151,28 +132,16 @@ |
int flags); |
void GetTabCount(int handle, int* tab_count); |
void GetType(int handle, int* type_as_int); |
- void IsBrowserInApplicationMode(int handle, |
- bool* is_application, |
- bool* success); |
void GetTab(int win_handle, int tab_index, int* tab_handle); |
- void GetTabProcessID(int handle, int* process_id); |
void GetTabTitle(int handle, int* title_string_size, std::wstring* title); |
void GetTabIndex(int handle, int* tabstrip_index); |
void GetTabURL(int handle, bool* success, GURL* url); |
void GetShelfVisibility(int handle, bool* visible); |
- void IsFullscreen(int handle, bool* is_fullscreen); |
- void GetFullscreenBubbleVisibility(int handle, bool* is_visible); |
- |
void ExecuteJavascript(int handle, |
const std::wstring& frame_xpath, |
const std::wstring& script, |
IPC::Message* reply_message); |
- void HandleInspectElementRequest(int handle, |
- int x, |
- int y, |
- IPC::Message* reply_message); |
- |
void GetDownloadDirectory(int handle, FilePath* download_directory); |
// If |show| is true, call Show() on the new window after creating it. |
@@ -182,14 +151,7 @@ |
// Retrieves a Browser from a Window and vice-versa. |
void GetWindowForBrowser(int window_handle, bool* success, int* handle); |
- void GetBrowserForWindow(int window_handle, bool* success, |
- int* browser_handle); |
- void ShowInterstitialPage(int tab_handle, |
- const std::string& html_text, |
- IPC::Message* reply_message); |
- void HideInterstitialPage(int tab_handle, bool* success); |
- |
void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); |
// Gets the security state for the tab associated to the specified |handle|. |
@@ -222,13 +184,6 @@ |
int message_num, |
bool* menu_item_enabled); |
- // Save the current web page. |
- void SavePage(int tab_handle, |
- const FilePath& file_name, |
- const FilePath& dir_path, |
- int type, |
- bool* success); |
- |
// Responds to requests to open the FindInPage window. |
void HandleOpenFindInPageRequest(const IPC::Message& message, |
int handle); |
@@ -236,9 +191,6 @@ |
// Get the visibility state of the Find window. |
void GetFindWindowVisibility(int handle, bool* visible); |
- // Responds to requests to find the location of the Find window. |
- void HandleFindWindowLocationRequest(int handle, int* x, int* y); |
- |
// Get the visibility state of the Bookmark bar. |
void GetBookmarkBarVisibility( |
int handle, bool* visible, bool* animating, bool* detached); |
@@ -275,58 +227,9 @@ |
int64 id, |
bool* success); |
- // Retrieves the number of info-bars currently showing in |count|. |
- void GetInfoBarCount(int handle, size_t* count); |
- |
- // Causes a click on the "accept" button of the info-bar at |info_bar_index|. |
- // If |wait_for_navigation| is true, it sends the reply after a navigation has |
- // occurred. |
- void ClickInfoBarAccept(int handle, |
- size_t info_bar_index, |
- bool wait_for_navigation, |
- IPC::Message* reply_message); |
- |
- // Retrieves the last time a navigation occurred for the tab. |
- void GetLastNavigationTime(int handle, int64* last_navigation_time); |
- |
- // Waits for a new navigation in the tab if none has happened since |
- // |last_navigation_time|. |
- void WaitForNavigation(int handle, |
- int64 last_navigation_time, |
- IPC::Message* reply_message); |
- |
- // Sets the int value for preference with name |name|. |
- void SetIntPreference(int handle, |
- const std::string& name, |
- int value, |
- bool* success); |
- |
- // Sets the string value for preference with name |name|. |
- void SetStringPreference(int handle, |
- const std::string& name, |
- const std::string& value, |
- bool* success); |
- |
- // Gets the bool value for preference with name |name|. |
- void GetBooleanPreference(int handle, |
- const std::string& name, |
- bool* success, |
- bool* value); |
- |
- // Sets the bool value for preference with name |name|. |
- void SetBooleanPreference(int handle, |
- const std::string& name, |
- bool value, |
- bool* success); |
- |
- void GetShowingAppModalDialog(bool* showing_dialog, int* dialog_button); |
- void ClickAppModalDialogButton(int button, bool* success); |
- |
void WaitForBrowserWindowCountToBecome(int target_count, |
IPC::Message* reply_message); |
- void WaitForAppModalDialogToBeShown(IPC::Message* reply_message); |
- |
void GoBackBlockUntilNavigationsComplete(int handle, |
int number_of_navigations, |
IPC::Message* reply_message); |
@@ -335,13 +238,8 @@ |
int number_of_navigations, |
IPC::Message* reply_message); |
- void GetWindowTitle(int handle, string16* text); |
- |
void SetShelfVisibility(int handle, bool visible); |
- // Returns the number of blocked popups in the tab |handle|. |
- void GetBlockedPopupCount(int handle, int* count); |
- |
// Generic pattern for pyautolib |
// Uses the JSON interface for input/output. |
void SendJSONRequest(int handle, |
@@ -1555,26 +1453,11 @@ |
size_t target_count, |
IPC::Message* reply_message); |
- // Gets the current used encoding name of the page in the specified tab. |
- void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); |
- |
- void ShutdownSessionService(int handle, bool* result); |
- |
- void SetContentSetting(int handle, |
- const std::string& host, |
- ContentSettingsType content_type, |
- ContentSetting setting, |
- bool* success); |
- |
// Resets to the default theme. |
void ResetToDefaultTheme(); |
void WaitForProcessLauncherThreadToGoIdle(IPC::Message* reply_message); |
- // Gets the browser that contains the given tab. |
- void GetParentBrowserOfTab( |
- int tab_handle, int* browser_handle, bool* success); |
- |
void OnRemoveProvider(); // Called via PostTask |
// Execute Javascript in the context of a specific render view. |