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

Unified Diff: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc

Issue 10917102: Context menus should appear above the touch point if invoked by long press. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
diff --git a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
index 437ee94b863d5c9d98477afc621c80deed2c78a0..3c3feb0ea3cf62d78336486b5fd43378f426a5e4 100644
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
@@ -123,7 +123,8 @@ void ChromeWebContentsViewDelegateViews::RestoreFocus() {
}
void ChromeWebContentsViewDelegateViews::ShowContextMenu(
- const content::ContextMenuParams& params) {
+ const content::ContextMenuParams& params,
+ const content::ContextMenuSourceType& type) {
context_menu_.reset(
RenderViewContextMenuViews::Create(web_contents_, params));
context_menu_->Init();
@@ -152,7 +153,7 @@ void ChromeWebContentsViewDelegateViews::ShowContextMenu(
// Enable recursive tasks on the message loop so we can get updates while
// the context menu is being displayed.
MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
- context_menu_->RunMenuAt(GetTopLevelWidget(), screen_point);
+ context_menu_->RunMenuAt(GetTopLevelWidget(), screen_point, type);
}
void ChromeWebContentsViewDelegateViews::SizeChanged(const gfx::Size& size) {

Powered by Google App Engine
This is Rietveld 408576698