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

Unified Diff: chrome/browser/ui/views/download/download_shelf_context_menu_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_shelf_context_menu_view.h
diff --git a/chrome/browser/ui/views/download/download_shelf_context_menu_view.h b/chrome/browser/ui/views/download/download_shelf_context_menu_view.h
index 916dc0a643f508fcfbe66fb4528419dcda4317ee..aa411cd6c98007e695a69af07e97240a92ba4fbe 100644
--- a/chrome/browser/ui/views/download/download_shelf_context_menu_view.h
+++ b/chrome/browser/ui/views/download/download_shelf_context_menu_view.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/download/download_shelf_context_menu.h"
+#include "ui/base/ui_base_types.h"
namespace content {
class DownloadItem;
@@ -32,7 +33,9 @@ class DownloadShelfContextMenuView : public DownloadShelfContextMenu {
// |rect| is the bounding area for positioning the menu in screen coordinates.
// The menu will be positioned above or below but not overlapping |rect|.
- void Run(views::Widget* parent_widget, const gfx::Rect& rect);
+ void Run(views::Widget* parent_widget,
+ const gfx::Rect& rect,
+ ui::MenuSourceType source_type);
private:
scoped_ptr<views::MenuRunner> menu_runner_;

Powered by Google App Engine
This is Rietveld 408576698