OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/external_tab_container_win.h" | 5 #include "chrome/browser/external_tab_container_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 POINT screen_pt = { params.x, params.y }; | 611 POINT screen_pt = { params.x, params.y }; |
612 MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1); | 612 MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1); |
613 | 613 |
614 MiniContextMenuParams ipc_params( | 614 MiniContextMenuParams ipc_params( |
615 screen_pt.x, | 615 screen_pt.x, |
616 screen_pt.y, | 616 screen_pt.y, |
617 params.link_url, | 617 params.link_url, |
618 params.unfiltered_link_url, | 618 params.unfiltered_link_url, |
619 params.src_url, | 619 params.src_url, |
620 params.page_url, | 620 params.page_url, |
| 621 params.keyword_url, |
621 params.frame_url); | 622 params.frame_url); |
622 | 623 |
623 bool rtl = base::i18n::IsRTL(); | 624 bool rtl = base::i18n::IsRTL(); |
624 automation_->Send( | 625 automation_->Send( |
625 new AutomationMsg_ForwardContextMenuToExternalHost(tab_handle_, | 626 new AutomationMsg_ForwardContextMenuToExternalHost(tab_handle_, |
626 external_context_menu_->GetMenuHandle(), | 627 external_context_menu_->GetMenuHandle(), |
627 rtl ? TPM_RIGHTALIGN : TPM_LEFTALIGN, ipc_params)); | 628 rtl ? TPM_RIGHTALIGN : TPM_LEFTALIGN, ipc_params)); |
628 | 629 |
629 return true; | 630 return true; |
630 } | 631 } |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 | 1135 |
1135 if (disposition == CURRENT_TAB) { | 1136 if (disposition == CURRENT_TAB) { |
1136 DCHECK(route_all_top_level_navigations_); | 1137 DCHECK(route_all_top_level_navigations_); |
1137 disposition = NEW_FOREGROUND_TAB; | 1138 disposition = NEW_FOREGROUND_TAB; |
1138 } | 1139 } |
1139 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1140 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
1140 transition); | 1141 transition); |
1141 // support only one navigation for a dummy tab before it is killed. | 1142 // support only one navigation for a dummy tab before it is killed. |
1142 ::DestroyWindow(GetNativeView()); | 1143 ::DestroyWindow(GetNativeView()); |
1143 } | 1144 } |
OLD | NEW |