| Index: chrome/browser/external_tab_container_win.cc
|
| ===================================================================
|
| --- chrome/browser/external_tab_container_win.cc (revision 69966)
|
| +++ chrome/browser/external_tab_container_win.cc (working copy)
|
| @@ -344,7 +344,7 @@
|
| case NEW_WINDOW:
|
| case SAVE_TO_DISK:
|
| if (automation_) {
|
| - automation_->Send(new AutomationMsg_OpenURL(0, tab_handle_,
|
| + automation_->Send(new AutomationMsg_OpenURL(tab_handle_,
|
| url, referrer,
|
| disposition));
|
| // TODO(ananta)
|
| @@ -374,10 +374,10 @@
|
| void ExternalTabContainer::NavigationStateChanged(const TabContents* source,
|
| unsigned changed_flags) {
|
| if (automation_) {
|
| - IPC::NavigationInfo nav_info;
|
| + NavigationInfo nav_info;
|
| if (InitNavigationInfo(&nav_info, NavigationType::NAV_IGNORE, 0))
|
| automation_->Send(new AutomationMsg_NavigationStateChanged(
|
| - 0, tab_handle_, changed_flags, nav_info));
|
| + tab_handle_, changed_flags, nav_info));
|
| }
|
| }
|
|
|
| @@ -432,14 +432,14 @@
|
| uintptr_t cookie = reinterpret_cast<uintptr_t>(new_container.get());
|
| pending_tabs_.Get()[cookie] = new_container;
|
| new_container->set_pending(true);
|
| - IPC::AttachExternalTabParams attach_params_;
|
| + AttachExternalTabParams attach_params_;
|
| attach_params_.cookie = static_cast<uint64>(cookie);
|
| attach_params_.dimensions = initial_pos;
|
| attach_params_.user_gesture = user_gesture;
|
| attach_params_.disposition = disposition;
|
| attach_params_.profile_name = WideToUTF8(
|
| tab_contents()->profile()->GetPath().DirName().BaseName().value());
|
| - automation_->Send(new AutomationMsg_AttachExternalTab(0,
|
| + automation_->Send(new AutomationMsg_AttachExternalTab(
|
| tab_handle_, attach_params_));
|
| } else {
|
| NOTREACHED();
|
| @@ -479,7 +479,7 @@
|
| automation_->Send(unload_reply_message_);
|
| unload_reply_message_ = NULL;
|
| } else {
|
| - automation_->Send(new AutomationMsg_CloseExternalTab(0, tab_handle_));
|
| + automation_->Send(new AutomationMsg_CloseExternalTab(tab_handle_));
|
| }
|
| }
|
|
|
| @@ -496,7 +496,7 @@
|
| if (automation_) {
|
| std::wstring url_string = CA2W(url.spec().c_str());
|
| automation_->Send(
|
| - new AutomationMsg_UpdateTargetUrl(0, tab_handle_, url_string));
|
| + new AutomationMsg_UpdateTargetUrl(tab_handle_, url_string));
|
| }
|
| }
|
|
|
| @@ -511,9 +511,8 @@
|
| const std::string& message, const std::string& origin,
|
| const std::string& target) {
|
| if (automation_) {
|
| - automation_->Send(
|
| - new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_,
|
| - message, origin, target));
|
| + automation_->Send(new AutomationMsg_ForwardMessageToExternalHost(
|
| + tab_handle_, message, origin, target));
|
| }
|
| }
|
|
|
| @@ -527,7 +526,7 @@
|
|
|
| bool ExternalTabContainer::TakeFocus(bool reverse) {
|
| if (automation_) {
|
| - automation_->Send(new AutomationMsg_TabbedOut(0, tab_handle_,
|
| + automation_->Send(new AutomationMsg_TabbedOut(tab_handle_,
|
| win_util::IsShiftPressed()));
|
| }
|
|
|
| @@ -622,7 +621,7 @@
|
| POINT screen_pt = { params.x, params.y };
|
| MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1);
|
|
|
| - IPC::MiniContextMenuParams ipc_params(
|
| + MiniContextMenuParams ipc_params(
|
| screen_pt.x,
|
| screen_pt.y,
|
| params.link_url,
|
| @@ -633,7 +632,7 @@
|
|
|
| bool rtl = base::i18n::IsRTL();
|
| automation_->Send(
|
| - new AutomationMsg_ForwardContextMenuToExternalHost(0, tab_handle_,
|
| + new AutomationMsg_ForwardContextMenuToExternalHost(tab_handle_,
|
| external_context_menu_->GetMenuHandle(),
|
| rtl ? TPM_RIGHTALIGN : TPM_LEFTALIGN, ipc_params));
|
|
|
| @@ -728,7 +727,7 @@
|
| if (load != NULL && PageTransition::IsMainFrame(load->origin())) {
|
| TRACE_EVENT_END("ExternalTabContainer::Navigate", 0,
|
| load->url().spec());
|
| - automation_->Send(new AutomationMsg_TabLoaded(0, tab_handle_,
|
| + automation_->Send(new AutomationMsg_TabLoaded(tab_handle_,
|
| load->url()));
|
| }
|
| break;
|
| @@ -745,18 +744,18 @@
|
| if (commit->http_status_code >= kHttpClientErrorStart &&
|
| commit->http_status_code <= kHttpServerErrorEnd) {
|
| automation_->Send(new AutomationMsg_NavigationFailed(
|
| - 0, tab_handle_, commit->http_status_code, commit->entry->url()));
|
| + tab_handle_, commit->http_status_code, commit->entry->url()));
|
|
|
| ignore_next_load_notification_ = true;
|
| } else {
|
| - IPC::NavigationInfo navigation_info;
|
| + NavigationInfo navigation_info;
|
| // When the previous entry index is invalid, it will be -1, which
|
| // will still make the computation come out right (navigating to the
|
| // 0th entry will be +1).
|
| if (InitNavigationInfo(&navigation_info, commit->type,
|
| commit->previous_entry_index -
|
| tab_contents_->controller().last_committed_entry_index()))
|
| - automation_->Send(new AutomationMsg_DidNavigate(0, tab_handle_,
|
| + automation_->Send(new AutomationMsg_DidNavigate(tab_handle_,
|
| navigation_info));
|
| }
|
| break;
|
| @@ -765,7 +764,7 @@
|
| const ProvisionalLoadDetails* load_details =
|
| Details<ProvisionalLoadDetails>(details).ptr();
|
| automation_->Send(new AutomationMsg_NavigationFailed(
|
| - 0, tab_handle_, load_details->error_code(), load_details->url()));
|
| + tab_handle_, load_details->error_code(), load_details->url()));
|
|
|
| ignore_next_load_notification_ = true;
|
| break;
|
| @@ -860,11 +859,11 @@
|
| msg.message = message;
|
| msg.wParam = wparam;
|
| msg.lParam = lparam;
|
| - automation_->Send(new AutomationMsg_HandleAccelerator(0, tab_handle_, msg));
|
| + automation_->Send(new AutomationMsg_HandleAccelerator(tab_handle_, msg));
|
| return true;
|
| }
|
|
|
| -bool ExternalTabContainer::InitNavigationInfo(IPC::NavigationInfo* nav_info,
|
| +bool ExternalTabContainer::InitNavigationInfo(NavigationInfo* nav_info,
|
| NavigationType::Type nav_type,
|
| int relative_offset) {
|
| DCHECK(nav_info);
|
| @@ -990,7 +989,7 @@
|
| bool ExternalTabContainer::OnGoToEntryOffset(int offset) {
|
| if (load_requests_via_automation_) {
|
| automation_->Send(new AutomationMsg_RequestGoToHistoryEntryOffset(
|
| - 0, tab_handle_, offset));
|
| + tab_handle_, offset));
|
| return false;
|
| }
|
|
|
|
|