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

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

Issue 10388064: Add GetImageSkiaNamed to resource_bundle and theme_provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits Created 8 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Calls |observer|.Observe() for the browser theme with this provider as the 57 // Calls |observer|.Observe() for the browser theme with this provider as the
58 // source. 58 // source.
59 void InitThemesFor(content::NotificationObserver* observer); 59 void InitThemesFor(content::NotificationObserver* observer);
60 60
61 // Overridden from ThemeService: 61 // Overridden from ThemeService:
62 // 62 //
63 // Sets that we aren't using the system theme, then calls 63 // Sets that we aren't using the system theme, then calls
64 // ThemeService's implementation. 64 // ThemeService's implementation.
65 virtual void Init(Profile* profile) OVERRIDE; 65 virtual void Init(Profile* profile) OVERRIDE;
66 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE; 66 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE;
67 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE;
67 virtual const gfx::Image* GetImageNamed(int id) const OVERRIDE; 68 virtual const gfx::Image* GetImageNamed(int id) const OVERRIDE;
68 virtual SkColor GetColor(int id) const OVERRIDE; 69 virtual SkColor GetColor(int id) const OVERRIDE;
69 virtual bool HasCustomImage(int id) const OVERRIDE; 70 virtual bool HasCustomImage(int id) const OVERRIDE;
70 virtual void SetTheme(const Extension* extension) OVERRIDE; 71 virtual void SetTheme(const Extension* extension) OVERRIDE;
71 virtual void UseDefaultTheme() OVERRIDE; 72 virtual void UseDefaultTheme() OVERRIDE;
72 virtual void SetNativeTheme() OVERRIDE; 73 virtual void SetNativeTheme() OVERRIDE;
73 virtual bool UsingDefaultTheme() const OVERRIDE; 74 virtual bool UsingDefaultTheme() const OVERRIDE;
74 virtual bool UsingNativeTheme() const OVERRIDE; 75 virtual bool UsingNativeTheme() const OVERRIDE;
75 76
76 // Overridden from ThemeService, content::NotificationObserver: 77 // Overridden from ThemeService, content::NotificationObserver:
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 294
294 // The default folder icon and default bookmark icon for the GTK theme. 295 // The default folder icon and default bookmark icon for the GTK theme.
295 // These are static because the system can only have one theme at a time. 296 // These are static because the system can only have one theme at a time.
296 // They are cached when they are requested the first time, and cleared when 297 // They are cached when they are requested the first time, and cleared when
297 // the system theme changes. 298 // the system theme changes.
298 static gfx::Image* default_folder_icon_; 299 static gfx::Image* default_folder_icon_;
299 static gfx::Image* default_bookmark_icon_; 300 static gfx::Image* default_bookmark_icon_;
300 }; 301 };
301 302
302 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_ 303 #endif // CHROME_BROWSER_UI_GTK_GTK_THEME_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.mm ('k') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698