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

Unified Diff: chrome/browser/ui/views/download/download_item_view.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 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.h
diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h
index 1c64923f3297492efda71f344380dd5459911db5..ac672a54bf1eef8eabf08bb74d3efbb3c76e8097 100644
--- a/chrome/browser/ui/views/download/download_item_view.h
+++ b/chrome/browser/ui/views/download/download_item_view.h
@@ -98,7 +98,8 @@ class DownloadItemView : public views::ButtonListener,
// Overridden from views::ContextMenuController.
virtual void ShowContextMenuForView(View* source,
- const gfx::Point& point) OVERRIDE;
+ const gfx::Point& point,
+ ui::MenuSourceType source_type) OVERRIDE;
// ButtonListener implementation.
virtual void ButtonPressed(views::Button* sender,
@@ -159,7 +160,8 @@ class DownloadItemView : public views::ButtonListener,
// Shows the context menu at the specified location. |point| is in the view's
// coordinate system.
- void ShowContextMenuImpl(const gfx::Point& point, bool is_mouse_gesture);
+ void ShowContextMenuImpl(const gfx::Point& point,
+ ui::MenuSourceType source_type);
// Common code for handling pointer events (i.e. mouse or gesture).
void HandlePressEvent(const ui::LocatedEvent& event, bool active_event);
« no previous file with comments | « chrome/browser/ui/views/content_setting_bubble_contents.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698