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

Unified Diff: ui/views/widget/widget.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/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 2d6e6aaff6e37d50f6448f4137f84ffbc6821483..bb9981166beacb17851958df6944a7c354136318 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -458,6 +458,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
}
bool is_secondary_widget() const { return is_secondary_widget_; }
+ void set_is_mouse_button_pressed(bool is_mouse_button_pressed) {
+ is_mouse_button_pressed_ = is_mouse_button_pressed;
+ }
+
// Returns whether the Widget is visible to the user.
virtual bool IsVisible() const;
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/widget.cc » ('j') | ui/views/widget/widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698