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

Side by Side Diff: chrome/browser/gtk/gtk_chrome_button.h

Issue 150176: GTK: First draft of using native themes, partially based on evan's CL 118358. (Closed)
Patch Set: And the codereview tool is back. Created 11 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_
6 #define CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ 6 #define CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_
7 7
8 #include <gdk/gdk.h> 8 #include <gdk/gdk.h>
9 #include <gtk/gtkbutton.h> 9 #include <gtk/gtkbutton.h>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 GType gtk_chrome_button_get_type(); 39 GType gtk_chrome_button_get_type();
40 40
41 // Set the paint state to |state|. This overrides the widget's current state. 41 // Set the paint state to |state|. This overrides the widget's current state.
42 void gtk_chrome_button_set_paint_state(GtkChromeButton* button, 42 void gtk_chrome_button_set_paint_state(GtkChromeButton* button,
43 GtkStateType state); 43 GtkStateType state);
44 44
45 // Revert to using the widget's current state for painting. 45 // Revert to using the widget's current state for painting.
46 void gtk_chrome_button_unset_paint_state(GtkChromeButton* button); 46 void gtk_chrome_button_unset_paint_state(GtkChromeButton* button);
47 47
48 // Whether we should use custom theme images or let GTK take care of it.
49 void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button,
50 gboolean value);
51
48 G_END_DECLS 52 G_END_DECLS
49 53
50 #endif // CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ 54 #endif // CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698