| Index: chrome/browser/automation/testing_automation_provider.cc
|
| ===================================================================
|
| --- chrome/browser/automation/testing_automation_provider.cc (revision 69966)
|
| +++ chrome/browser/automation/testing_automation_provider.cc (working copy)
|
| @@ -217,15 +217,12 @@
|
| IPC_MESSAGE_HANDLER(AutomationMsg_DeleteCookie, DeleteCookie)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_ShowCollectedCookiesDialog,
|
| ShowCollectedCookiesDialog)
|
| - IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_NavigateToURL, NavigateToURL)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(
|
| AutomationMsg_NavigateToURLBlockUntilNavigationsComplete,
|
| NavigateToURLBlockUntilNavigationsComplete)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_NavigationAsync, NavigationAsync)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_NavigationAsyncWithDisposition,
|
| NavigationAsyncWithDisposition)
|
| - IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_GoBack, GoBack)
|
| - IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_GoForward, GoForward)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_Reload, Reload)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_SetAuth, SetAuth)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_CancelAuth, CancelAuth)
|
| @@ -280,7 +277,6 @@
|
| AutocompleteEditGetMatches)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_WaitForAutocompleteEditFocus,
|
| WaitForAutocompleteEditFocus)
|
| - IPC_MESSAGE_HANDLER(AutomationMsg_ApplyAccelerator, ApplyAccelerator)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_DomOperation,
|
| ExecuteJavascript)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_ConstrainedWindowCount,
|
| @@ -297,8 +293,6 @@
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_InspectElement,
|
| HandleInspectElementRequest)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_DownloadDirectory, GetDownloadDirectory)
|
| - IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_OpenNewBrowserWindow,
|
| - OpenNewBrowserWindow)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_OpenNewBrowserWindowOfType,
|
| OpenNewBrowserWindowOfType)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_WindowForBrowser, GetWindowForBrowser)
|
| @@ -568,12 +562,6 @@
|
| }
|
| }
|
|
|
| -void TestingAutomationProvider::NavigateToURL(int handle,
|
| - const GURL& url,
|
| - IPC::Message* reply_message) {
|
| - NavigateToURLBlockUntilNavigationsComplete(handle, url, 1, reply_message);
|
| -}
|
| -
|
| void TestingAutomationProvider::NavigateToURLBlockUntilNavigationsComplete(
|
| int handle, const GURL& url, int number_of_navigations,
|
| IPC::Message* reply_message) {
|
| @@ -594,7 +582,7 @@
|
| }
|
| }
|
|
|
| - AutomationMsg_NavigateToURL::WriteReplyParams(
|
| + AutomationMsg_NavigateToURLBlockUntilNavigationsComplete::WriteReplyParams(
|
| reply_message, AUTOMATION_MSG_NAVIGATION_ERROR);
|
| Send(reply_message);
|
| }
|
| @@ -628,40 +616,6 @@
|
| }
|
| }
|
|
|
| -void TestingAutomationProvider::GoBack(int handle,
|
| - IPC::Message* reply_message) {
|
| - if (tab_tracker_->ContainsHandle(handle)) {
|
| - NavigationController* tab = tab_tracker_->GetResource(handle);
|
| - Browser* browser = FindAndActivateTab(tab);
|
| - if (browser && browser->command_updater()->IsCommandEnabled(IDC_BACK)) {
|
| - AddNavigationStatusListener(tab, reply_message, 1, false);
|
| - browser->GoBack(CURRENT_TAB);
|
| - return;
|
| - }
|
| - }
|
| -
|
| - AutomationMsg_GoBack::WriteReplyParams(
|
| - reply_message, AUTOMATION_MSG_NAVIGATION_ERROR);
|
| - Send(reply_message);
|
| -}
|
| -
|
| -void TestingAutomationProvider::GoForward(int handle,
|
| - IPC::Message* reply_message) {
|
| - if (tab_tracker_->ContainsHandle(handle)) {
|
| - NavigationController* tab = tab_tracker_->GetResource(handle);
|
| - Browser* browser = FindAndActivateTab(tab);
|
| - if (browser && browser->command_updater()->IsCommandEnabled(IDC_FORWARD)) {
|
| - AddNavigationStatusListener(tab, reply_message, 1, false);
|
| - browser->GoForward(CURRENT_TAB);
|
| - return;
|
| - }
|
| - }
|
| -
|
| - AutomationMsg_GoForward::WriteReplyParams(
|
| - reply_message, AUTOMATION_MSG_NAVIGATION_ERROR);
|
| - Send(reply_message);
|
| -}
|
| -
|
| void TestingAutomationProvider::Reload(int handle,
|
| IPC::Message* reply_message) {
|
| if (tab_tracker_->ContainsHandle(handle)) {
|
| @@ -1147,11 +1101,6 @@
|
| }
|
| }
|
|
|
| -void TestingAutomationProvider::ApplyAccelerator(int handle, int id) {
|
| - LOG(ERROR) << "ApplyAccelerator has been deprecated. "
|
| - << "Please use ExecuteBrowserCommandAsync instead.";
|
| -}
|
| -
|
| void TestingAutomationProvider::ExecuteJavascript(
|
| int handle,
|
| const std::wstring& frame_xpath,
|
| @@ -1217,12 +1166,6 @@
|
| }
|
| }
|
|
|
| -void TestingAutomationProvider::OpenNewBrowserWindow(
|
| - bool show, IPC::Message* reply_message) {
|
| - OpenNewBrowserWindowOfType(static_cast<int>(Browser::TYPE_NORMAL), show,
|
| - reply_message);
|
| -}
|
| -
|
| void TestingAutomationProvider::OpenNewBrowserWindowOfType(
|
| int type, bool show, IPC::Message* reply_message) {
|
| new BrowserOpenedNotificationObserver(this, reply_message);
|
|
|