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

Side by Side Diff: chrome/browser/external_tab_container_win.cc

Issue 335023: Add the feature "Add as seach engine..." when right clicking on ... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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) 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
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
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 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698