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

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

Issue 3304015: Use PrefChangeRegistrar everywhere (Closed)
Patch Set: final version for commit Created 10 years, 2 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "app/gtk_integers.h" 12 #include "app/gtk_integers.h"
13 #include "app/gtk_signal.h" 13 #include "app/gtk_signal.h"
14 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
15 #include "chrome/browser/prefs/pref_change_registrar.h"
15 #include "chrome/browser/gtk/owned_widget_gtk.h" 16 #include "chrome/browser/gtk/owned_widget_gtk.h"
16 #include "chrome/browser/themes/browser_theme_provider.h" 17 #include "chrome/browser/themes/browser_theme_provider.h"
17 #include "chrome/common/notification_observer.h" 18 #include "chrome/common/notification_observer.h"
18 #include "gfx/color_utils.h" 19 #include "gfx/color_utils.h"
19 20
20 class CairoCachedSurface; 21 class CairoCachedSurface;
21 class GtkSignalRegistrar; 22 class GtkSignalRegistrar;
22 class Profile; 23 class Profile;
23 24
24 typedef struct _GdkDisplay GdkDisplay; 25 typedef struct _GdkDisplay GdkDisplay;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 GtkIconSet* fullscreen_icon_set_; 269 GtkIconSet* fullscreen_icon_set_;
269 270
270 // Image cache of lazily created images, created when requested by 271 // Image cache of lazily created images, created when requested by
271 // GetBitmapNamed(). 272 // GetBitmapNamed().
272 mutable ImageCache gtk_images_; 273 mutable ImageCache gtk_images_;
273 274
274 // Cairo surfaces for each GdkDisplay. 275 // Cairo surfaces for each GdkDisplay.
275 PerDisplaySurfaceMap per_display_surfaces_; 276 PerDisplaySurfaceMap per_display_surfaces_;
276 PerDisplaySurfaceMap per_display_unthemed_surfaces_; 277 PerDisplaySurfaceMap per_display_unthemed_surfaces_;
277 278
279 PrefChangeRegistrar registrar_;
280
278 // This is a dummy widget that only exists so we have something to pass to 281 // This is a dummy widget that only exists so we have something to pass to
279 // gtk_widget_render_icon(). 282 // gtk_widget_render_icon().
280 static GtkWidget* icon_widget_; 283 static GtkWidget* icon_widget_;
281 284
282 // The default folder icon and default bookmark icon for the GTK theme. 285 // The default folder icon and default bookmark icon for the GTK theme.
283 // These are static because the system can only have one theme at a time. 286 // These are static because the system can only have one theme at a time.
284 // They are cached when they are requested the first time, and cleared when 287 // They are cached when they are requested the first time, and cleared when
285 // the system theme changes. 288 // the system theme changes.
286 static GdkPixbuf* default_folder_icon_; 289 static GdkPixbuf* default_folder_icon_;
287 static GdkPixbuf* default_bookmark_icon_; 290 static GdkPixbuf* default_bookmark_icon_;
288 }; 291 };
289 292
290 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_ 293 #endif // CHROME_BROWSER_GTK_GTK_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_service_unittest.cc ('k') | chrome/browser/gtk/gtk_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698