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

Unified Diff: ui/views/view.h

Issue 12529012: Context menu on views must show on mouse down for non-WIN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index e353448bff4dea61b8e44038a4039f3982b47972..4a67a469564955ed10243557168feaea8e50ecc1 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -790,6 +790,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// as it is always equal to the current View.
virtual void ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture);
+ // On some platforms, we show context menu on mouse press instead of release.
+ // This method returns true for those platforms.
+ static bool ShouldShowContextMenuOnMousePress();
+
// Drag and drop -------------------------------------------------------------
DragController* drag_controller() { return drag_controller_; }

Powered by Google App Engine
This is Rietveld 408576698