| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_GTK_CHROME_BUTTON_H_ |
| 6 #define CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_GTK_GTK_CHROME_BUTTON_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #include <gtk/gtkbutton.h> | 10 #include <gtk/gtkbutton.h> |
| 11 | 11 |
| 12 G_BEGIN_DECLS | 12 G_BEGIN_DECLS |
| 13 | 13 |
| 14 #define GTK_TYPE_CHROME_BUTTON (gtk_chrome_button_get_type ()) | 14 #define GTK_TYPE_CHROME_BUTTON (gtk_chrome_button_get_type ()) |
| 15 #define GTK_CHROME_BUTTON(obj) \ | 15 #define GTK_CHROME_BUTTON(obj) \ |
| 16 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CHROME_BUTTON, GtkChromeButton)) | 16 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CHROME_BUTTON, GtkChromeButton)) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 gboolean value); | 51 gboolean value); |
| 52 | 52 |
| 53 // Sets the partial hover state of the button. The acceptable range is 0.0 to | 53 // Sets the partial hover state of the button. The acceptable range is 0.0 to |
| 54 // 1.0. If |state| is outside of that range, then revert the button to normal | 54 // 1.0. If |state| is outside of that range, then revert the button to normal |
| 55 // hovering. This can be overridden by gtk_chrome_button_set_paint_state. | 55 // hovering. This can be overridden by gtk_chrome_button_set_paint_state. |
| 56 void gtk_chrome_button_set_hover_state(GtkChromeButton* button, | 56 void gtk_chrome_button_set_hover_state(GtkChromeButton* button, |
| 57 gdouble state); | 57 gdouble state); |
| 58 | 58 |
| 59 G_END_DECLS | 59 G_END_DECLS |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_GTK_GTK_CHROME_BUTTON_H_ | 61 #endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_BUTTON_H_ |
| OLD | NEW |