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

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, 9 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 435d507ca1e8293e8975aeab3bdb6415dc35cda3..2912b9a6784f3a50013462be79714c9fcfa6b655 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -791,6 +791,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