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

Unified Diff: ui/base/models/simple_menu_model.cc

Issue 7492054: Don't send ViewMsg_ContextMenuClosed to the renderer process for submenus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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/models/simple_menu_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.cc
diff --git a/ui/base/models/simple_menu_model.cc b/ui/base/models/simple_menu_model.cc
index 57f6ec3e736ce04d06a0a35047a3d8e278916c0e..643485056ae82ca9c465b288e0627dee00b3fb25 100644
--- a/ui/base/models/simple_menu_model.cc
+++ b/ui/base/models/simple_menu_model.cc
@@ -46,10 +46,10 @@ bool SimpleMenuModel::Delegate::GetIconForCommandId(
void SimpleMenuModel::Delegate::CommandIdHighlighted(int command_id) {
}
-void SimpleMenuModel::Delegate::MenuWillShow() {
+void SimpleMenuModel::Delegate::MenuWillShow(SimpleMenuModel* /*source*/) {
}
-void SimpleMenuModel::Delegate::MenuClosed() {
+void SimpleMenuModel::Delegate::MenuClosed(SimpleMenuModel* /*source*/) {
}
////////////////////////////////////////////////////////////////////////////////
@@ -296,7 +296,7 @@ MenuModel* SimpleMenuModel::GetSubmenuModelAt(int index) const {
void SimpleMenuModel::MenuWillShow() {
if (delegate_)
- delegate_->MenuWillShow();
+ delegate_->MenuWillShow(this);
}
void SimpleMenuModel::MenuClosed() {
@@ -315,7 +315,7 @@ void SimpleMenuModel::SetMenuModelDelegate(
void SimpleMenuModel::OnMenuClosed() {
if (delegate_)
- delegate_->MenuClosed();
+ delegate_->MenuClosed(this);
}
int SimpleMenuModel::FlipIndex(int index) const {
« no previous file with comments | « ui/base/models/simple_menu_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698