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

Unified Diff: views/controls/button/native_button_gtk.h

Issue 201079: Lands http://codereview.chromium.org/194014 for Oshima:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | views/controls/button/native_button_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/button/native_button_gtk.h
===================================================================
--- views/controls/button/native_button_gtk.h (revision 25662)
+++ views/controls/button/native_button_gtk.h (working copy)
@@ -33,15 +33,15 @@
virtual void CreateNativeControl();
virtual void NativeControlCreated(GtkWidget* widget);
+ // Invoked when the user clicks on the button.
+ virtual void OnClicked();
+
// Returns true if this button is actually a checkbox or radio button.
virtual bool IsCheckbox() const { return false; }
private:
static void CallClicked(GtkButton* widget, NativeButtonGtk* button);
- // Invoked when the user clicks on the button.
- void OnClicked();
-
// The NativeButton we are bound to.
NativeButton* native_button_;
@@ -59,10 +59,25 @@
explicit NativeCheckboxGtk(Checkbox* checkbox);
private:
+ static void CallClicked(GtkButton* widget, NativeCheckboxGtk* button);
+
virtual void CreateNativeControl();
+ // Invoked when the user clicks on the button.
+ virtual void OnClicked();
+
+ // Overidden from NativeButtonWrapper
+ virtual void UpdateChecked();
+
// Returns true if this button is actually a checkbox or radio button.
virtual bool IsCheckbox() const { return true; }
+
+ Checkbox* checkbox_;
+
+ // a flag to prevent OnClicked event when updating
+ // gtk control via API gtk_toggle_button_set_active.
+ bool deliver_click_event_;
+
DISALLOW_COPY_AND_ASSIGN(NativeCheckboxGtk);
};
« no previous file with comments | « no previous file | views/controls/button/native_button_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698