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

Unified Diff: chrome/views/controls/button/custom_button.h

Issue 17428: Issue 358: Can't open a new tab by middle-clicking home button... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/views/toolbar_view.cc ('k') | chrome/views/controls/button/custom_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/button/custom_button.h
===================================================================
--- chrome/views/controls/button/custom_button.h (revision 12354)
+++ chrome/views/controls/button/custom_button.h (working copy)
@@ -43,6 +43,14 @@
virtual bool IsEnabled() const;
virtual bool IsFocusable() const;
+ void set_triggerable_event_flags(int triggerable_event_flags) {
+ triggerable_event_flags_ = triggerable_event_flags;
+ }
+
+ int triggerable_event_flags() const {
+ return triggerable_event_flags_;
+ }
+
protected:
// Construct the Button with a Listener. See comment for Button's ctor.
explicit CustomButton(ButtonListener* listener);
@@ -86,6 +94,9 @@
// throbbing.
bool animate_on_state_change_;
+ // Mouse event flags which can trigger button actions.
+ int triggerable_event_flags_;
+
DISALLOW_COPY_AND_ASSIGN(CustomButton);
};
« no previous file with comments | « chrome/browser/views/toolbar_view.cc ('k') | chrome/views/controls/button/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698