OLD | NEW |
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 #include "chrome/browser/gtk/gtk_chrome_button.h" | 5 #include "chrome/browser/gtk/gtk_chrome_button.h" |
6 | 6 |
| 7 #include "app/gfx/gtk_util.h" |
7 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
8 #include "base/gfx/gtk_util.h" | |
9 #include "chrome/browser/gtk/nine_box.h" | 9 #include "chrome/browser/gtk/nine_box.h" |
10 | 10 |
11 #include "grit/app_resources.h" | 11 #include "grit/app_resources.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // The theme graphics for when the mouse is over the button. | 15 // The theme graphics for when the mouse is over the button. |
16 NineBox* g_nine_box_prelight; | 16 NineBox* g_nine_box_prelight; |
17 // The theme graphics for when the button is clicked. | 17 // The theme graphics for when the button is clicked. |
18 NineBox* g_nine_box_active; | 18 NineBox* g_nine_box_active; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 | 153 |
154 void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button, | 154 void gtk_chrome_button_set_use_gtk_rendering(GtkChromeButton* button, |
155 gboolean value) { | 155 gboolean value) { |
156 g_return_if_fail(GTK_IS_CHROME_BUTTON(button)); | 156 g_return_if_fail(GTK_IS_CHROME_BUTTON(button)); |
157 GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); | 157 GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(button); |
158 priv->use_gtk_rendering = value; | 158 priv->use_gtk_rendering = value; |
159 } | 159 } |
160 | 160 |
161 G_END_DECLS | 161 G_END_DECLS |
OLD | NEW |