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

Unified Diff: ui/message_center/views/message_view.cc

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
« no previous file with comments | « ui/base/ui_base_types.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view.cc
diff --git a/ui/message_center/views/message_view.cc b/ui/message_center/views/message_view.cc
index 804846287c4ed1dd8c0716e7c43ac4ac11d1e794..7767beb5aaf9e4d2a2562abe03ef97b89f61ba6f 100644
--- a/ui/message_center/views/message_view.cc
+++ b/ui/message_center/views/message_view.cc
@@ -301,7 +301,8 @@ class MessageViewContextMenuController : public views::ContextMenuController {
protected:
// Overridden from views::ContextMenuController:
virtual void ShowContextMenuForView(views::View* source,
- const gfx::Point& point) OVERRIDE;
+ const gfx::Point& point,
+ ui::MenuSourceType source_type) OVERRIDE;
message_center::MessageCenter* message_center_;
std::string notification_id_;
@@ -323,7 +324,8 @@ MessageViewContextMenuController::~MessageViewContextMenuController() {
void MessageViewContextMenuController::ShowContextMenuForView(
views::View* source,
- const gfx::Point& point) {
+ const gfx::Point& point,
+ ui::MenuSourceType source_type) {
MenuModel menu_model(message_center_, notification_id_,
display_source_, extension_id_);
if (menu_model.GetItemCount() == 0)
@@ -336,6 +338,7 @@ void MessageViewContextMenuController::ShowContextMenuForView(
NULL,
gfx::Rect(point, gfx::Size()),
views::MenuItemView::TOPRIGHT,
+ source_type,
views::MenuRunner::HAS_MNEMONICS));
}
« no previous file with comments | « ui/base/ui_base_types.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698