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

Unified Diff: chrome/browser/ui/views/download/download_item_view.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/download/download_item_view.cc
diff --git a/chrome/browser/ui/views/download/download_item_view.cc b/chrome/browser/ui/views/download/download_item_view.cc
index 43ca68679e050b2253eff132cef0d0f77d8cb4f4..201c7df4a7fded69ef0ded4797aadbf4d9e85e4d 100644
--- a/chrome/browser/ui/views/download/download_item_view.cc
+++ b/chrome/browser/ui/views/download/download_item_view.cc
@@ -511,8 +511,10 @@ void DownloadItemView::OnGestureEvent(ui::GestureEvent* event) {
views::View::OnGestureEvent(event);
}
-void DownloadItemView::ShowContextMenuForView(View* source,
- const gfx::Point& point) {
+void DownloadItemView::ShowContextMenuForView(
+ View* source,
+ const gfx::Point& point,
+ ui::ContextMenuSourceType source_type) {
// |point| is in screen coordinates. So convert it to local coordinates first.
gfx::Point local_point = point;
ConvertPointFromScreen(this, &local_point);

Powered by Google App Engine
This is Rietveld 408576698