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

Side by Side Diff: chrome/browser/themes/custom_theme_supplier.h

Issue 2290053002: Remove some unused theming code for GTK. (Closed)
Patch Set: remove GtkThemeIconSource Created 4 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
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service_aurax11.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_THEMES_CUSTOM_THEME_SUPPLIER_H_ 5 #ifndef CHROME_BROWSER_THEMES_CUSTOM_THEME_SUPPLIER_H_
6 #define CHROME_BROWSER_THEMES_CUSTOM_THEME_SUPPLIER_H_ 6 #define CHROME_BROWSER_THEMES_CUSTOM_THEME_SUPPLIER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // If the theme specifies data for the corresponding |id|, returns true and 50 // If the theme specifies data for the corresponding |id|, returns true and
51 // writes the corresponding value to the output parameter. These methods 51 // writes the corresponding value to the output parameter. These methods
52 // should not return the default data. These methods should only be called 52 // should not return the default data. These methods should only be called
53 // from the UI thread. 53 // from the UI thread.
54 virtual bool GetTint(int id, color_utils::HSL* hsl) const; 54 virtual bool GetTint(int id, color_utils::HSL* hsl) const;
55 virtual bool GetColor(int id, SkColor* color) const; 55 virtual bool GetColor(int id, SkColor* color) const;
56 virtual bool GetDisplayProperty(int id, int* result) const; 56 virtual bool GetDisplayProperty(int id, int* result) const;
57 57
58 // Returns the theme image for |id|. Returns an empty image if no image is 58 // Returns the theme image for |id|. Returns an empty image if no image is
59 // found for |id|. 59 // found for |id|.
60 // TODO(estade): Remove this function; it's not used in Material Design.
60 virtual gfx::Image GetImageNamed(int id); 61 virtual gfx::Image GetImageNamed(int id);
61 62
62 // Returns the raw PNG encoded data for IDR_THEME_NTP_*. This method only 63 // Returns the raw PNG encoded data for IDR_THEME_NTP_*. This method only
63 // works for the NTP attribution and background resources. 64 // works for the NTP attribution and background resources.
64 virtual base::RefCountedMemory* GetRawData( 65 virtual base::RefCountedMemory* GetRawData(
65 int id, ui::ScaleFactor scale_factor) const; 66 int id, ui::ScaleFactor scale_factor) const;
66 67
67 // Whether this theme provides an image for |id|. 68 // Whether this theme provides an image for |id|.
68 virtual bool HasCustomImage(int id) const; 69 virtual bool HasCustomImage(int id) const;
69 70
70 protected: 71 protected:
71 virtual ~CustomThemeSupplier(); 72 virtual ~CustomThemeSupplier();
72 73
73 private: 74 private:
74 friend struct content::BrowserThread::DeleteOnThread< 75 friend struct content::BrowserThread::DeleteOnThread<
75 content::BrowserThread::FILE>; 76 content::BrowserThread::FILE>;
76 friend class base::DeleteHelper<CustomThemeSupplier>; 77 friend class base::DeleteHelper<CustomThemeSupplier>;
77 78
78 ThemeType theme_type_; 79 ThemeType theme_type_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(CustomThemeSupplier); 81 DISALLOW_COPY_AND_ASSIGN(CustomThemeSupplier);
81 }; 82 };
82 83
83 #endif // CHROME_BROWSER_THEMES_CUSTOM_THEME_SUPPLIER_H_ 84 #endif // CHROME_BROWSER_THEMES_CUSTOM_THEME_SUPPLIER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698