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

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

Issue 10948037: [gtk] fix theming of content settings bubble (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_THEME_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 6 #define CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // away. 88 // away.
89 GtkWidget* BuildChromeButton(); 89 GtkWidget* BuildChromeButton();
90 90
91 // Creates a GtkChromeLinkButton instance. We update its state as theme 91 // Creates a GtkChromeLinkButton instance. We update its state as theme
92 // changes, and listen for its destruction. 92 // changes, and listen for its destruction.
93 GtkWidget* BuildChromeLinkButton(const std::string& text); 93 GtkWidget* BuildChromeLinkButton(const std::string& text);
94 94
95 // Builds a GtkLabel that is |color| in chrome theme mode, and the normal 95 // Builds a GtkLabel that is |color| in chrome theme mode, and the normal
96 // text color in gtk-mode. Like the previous two calls, listens for the 96 // text color in gtk-mode. Like the previous two calls, listens for the
97 // object's destruction. 97 // object's destruction.
98 GtkWidget* BuildLabel(const std::string& text, GdkColor color); 98 GtkWidget* BuildLabel(const std::string& text, const GdkColor& color);
99 99
100 // Creates a theme-aware vertical separator widget. 100 // Creates a theme-aware vertical separator widget.
101 GtkWidget* CreateToolbarSeparator(); 101 GtkWidget* CreateToolbarSeparator();
102 102
103 // A wrapper around ui::ThemeProvider::GetColor, transforming the result to a 103 // A wrapper around ui::ThemeProvider::GetColor, transforming the result to a
104 // GdkColor. 104 // GdkColor.
105 GdkColor GetGdkColor(int id) const; 105 GdkColor GetGdkColor(int id) const;
106 106
107 // A weighted average between the text color and the background color of a 107 // A weighted average between the text color and the background color of a
108 // label. Used for borders between GTK stuff and the webcontent. 108 // label. Used for borders between GTK stuff and the webcontent.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 // The default folder icon and default bookmark icon for the GTK theme. 299 // The default folder icon and default bookmark icon for the GTK theme.
300 // These are static because the system can only have one theme at a time. 300 // These are static because the system can only have one theme at a time.
301 // They are cached when they are requested the first time, and cleared when 301 // They are cached when they are requested the first time, and cleared when
302 // the system theme changes. 302 // the system theme changes.
303 static base::LazyInstance<gfx::Image> default_folder_icon_; 303 static base::LazyInstance<gfx::Image> default_folder_icon_;
304 static base::LazyInstance<gfx::Image> default_bookmark_icon_; 304 static base::LazyInstance<gfx::Image> default_bookmark_icon_;
305 }; 305 };
306 306
307 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 307 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/content_setting_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698