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

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

Issue 1783010: GTK: more signal handler foolproofing. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 7 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_THEME_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
6 #define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ 6 #define CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // their colors). 185 // their colors).
186 GtkWidget* fake_window_; 186 GtkWidget* fake_window_;
187 GtkWidget* fake_frame_; 187 GtkWidget* fake_frame_;
188 OwnedWidgetGtk fake_label_; 188 OwnedWidgetGtk fake_label_;
189 OwnedWidgetGtk fake_entry_; 189 OwnedWidgetGtk fake_entry_;
190 190
191 // A list of all GtkChromeButton instances. We hold on to these to notify 191 // A list of all GtkChromeButton instances. We hold on to these to notify
192 // them of theme changes. 192 // them of theme changes.
193 std::vector<GtkWidget*> chrome_buttons_; 193 std::vector<GtkWidget*> chrome_buttons_;
194 194
195 // Tracks all the signals we have connected to on various widgets.
196 GtkSignalRegistrar signals_;
197
195 // Tints and colors calculated by LoadGtkValues() that are given to the 198 // Tints and colors calculated by LoadGtkValues() that are given to the
196 // caller while |use_gtk_| is true. 199 // caller while |use_gtk_| is true.
197 ColorMap colors_; 200 ColorMap colors_;
198 TintMap tints_; 201 TintMap tints_;
199 202
200 // Colors that we pass to WebKit. These are generated each time the theme 203 // Colors that we pass to WebKit. These are generated each time the theme
201 // changes. 204 // changes.
202 SkColor focus_ring_color_; 205 SkColor focus_ring_color_;
203 SkColor thumb_active_color_; 206 SkColor thumb_active_color_;
204 SkColor thumb_inactive_color_; 207 SkColor thumb_inactive_color_;
(...skipping 18 matching lines...) Expand all
223 226
224 // The default folder icon and default bookmark icon for the GTK theme. 227 // The default folder icon and default bookmark icon for the GTK theme.
225 // These are static because the system can only have one theme at a time. 228 // These are static because the system can only have one theme at a time.
226 // They are cached when they are requested the first time, and cleared when 229 // They are cached when they are requested the first time, and cleared when
227 // the system theme changes. 230 // the system theme changes.
228 static GdkPixbuf* default_folder_icon_; 231 static GdkPixbuf* default_folder_icon_;
229 static GdkPixbuf* default_bookmark_icon_; 232 static GdkPixbuf* default_bookmark_icon_;
230 }; 233 };
231 234
232 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ 235 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/fullscreen_exit_bubble_gtk.cc ('k') | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698