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

Unified Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 53c4f00e6cd6187e4129c99d8508ef48c0daa644..549e65cb9d16f5a68fa7c580c1c8a6464352e000 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -716,8 +716,11 @@ void Tab::ButtonPressed(views::Button* sender, const ui::Event& event) {
////////////////////////////////////////////////////////////////////////////////
// Tab, views::ContextMenuController overrides:
-void Tab::ShowContextMenuForView(views::View* source,
- const gfx::Point& point) {
+void Tab::ShowContextMenuForView(
+ views::View* source,
+ const gfx::Point& point,
+ ui::ContextMenuSourceType source_type) {
+ // TODO(varunjain): pass along source_type to controller.
if (controller() && !closing())
controller()->ShowContextMenuForTab(this, point);
}

Powered by Google App Engine
This is Rietveld 408576698