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

Unified Diff: ash/launcher/launcher_button.cc

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build 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: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index 8c15a226d969d5f4a0f80874ec1f12374b98c52d..f275b0a0b33e4f023c29d1ca1596307d9601d268 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -327,14 +327,14 @@ gfx::Rect LauncherButton::GetIconBounds() const {
}
void LauncherButton::ShowContextMenu(const gfx::Point& p,
- bool is_mouse_gesture) {
+ ui::MenuSourceType source_type) {
if (!context_menu_controller())
return;
bool destroyed = false;
destroyed_flag_ = &destroyed;
- CustomButton::ShowContextMenu(p, is_mouse_gesture);
+ CustomButton::ShowContextMenu(p, source_type);
if (!destroyed) {
destroyed_flag_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698