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

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

Issue 8586044: GTK: Make the gtk port compile with GTK_DISABLE_SINGLE_INCLUDES. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove views/. Not our problem for gtk3 porting. Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/gtk/chrome_gtk_frame.h ('k') | chrome/browser/ui/gtk/gtk_custom_menu.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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_UI_GTK_GTK_CHROME_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_CHROME_BUTTON_H_
6 #define CHROME_BROWSER_UI_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 <gtk/gtk.h>
10 #include <gtk/gtkbutton.h>
11 10
12 G_BEGIN_DECLS 11 G_BEGIN_DECLS
13 12
14 #define GTK_TYPE_CHROME_BUTTON (gtk_chrome_button_get_type ()) 13 #define GTK_TYPE_CHROME_BUTTON (gtk_chrome_button_get_type ())
15 #define GTK_CHROME_BUTTON(obj) \ 14 #define GTK_CHROME_BUTTON(obj) \
16 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CHROME_BUTTON, GtkChromeButton)) 15 (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CHROME_BUTTON, GtkChromeButton))
17 #define GTK_CHROME_BUTTON_CLASS(klass) \ 16 #define GTK_CHROME_BUTTON_CLASS(klass) \
18 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_CHROME_BUTTON, \ 17 (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_CHROME_BUTTON, \
19 GtkChromeButtonClass)) 18 GtkChromeButtonClass))
20 #define GTK_IS_CHROME_BUTTON(obj) \ 19 #define GTK_IS_CHROME_BUTTON(obj) \
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 51
53 // Sets the partial hover state of the button. The acceptable range is 0.0 to 52 // 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 53 // 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. 54 // hovering. This can be overridden by gtk_chrome_button_set_paint_state.
56 void gtk_chrome_button_set_hover_state(GtkChromeButton* button, 55 void gtk_chrome_button_set_hover_state(GtkChromeButton* button,
57 gdouble state); 56 gdouble state);
58 57
59 G_END_DECLS 58 G_END_DECLS
60 59
61 #endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_BUTTON_H_ 60 #endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/chrome_gtk_frame.h ('k') | chrome/browser/ui/gtk/gtk_custom_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698