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

Side by Side Diff: chrome/browser/browser_theme_provider.h

Issue 272033: Misc. cleanup for theme provider code, including:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_BROWSER_THEME_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ 6 #define CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 294
295 // Tint |bitmap| with the tint specified by |hsl_id| 295 // Tint |bitmap| with the tint specified by |hsl_id|
296 SkBitmap TintBitmap(const SkBitmap& bitmap, int hsl_id); 296 SkBitmap TintBitmap(const SkBitmap& bitmap, int hsl_id);
297 297
298 // The following load data from specified dictionaries (either from 298 // The following load data from specified dictionaries (either from
299 // preferences or from an extension manifest) and update our theme 299 // preferences or from an extension manifest) and update our theme
300 // data appropriately. 300 // data appropriately.
301 // Allow any ResourceBundle image to be overridden. |images| should 301 // Allow any ResourceBundle image to be overridden. |images| should
302 // contain keys defined in ThemeResourceMap, and values as paths to 302 // contain keys defined in ThemeResourceMap, and values as paths to
303 // the images on-disk. 303 // the images on-disk.
304 void SetImageData(DictionaryValue* images, 304 void SetImageData(DictionaryValue* images, FilePath images_path);
305 FilePath images_path); 305
306 // Set our theme colors. The keys of |colors| are any of the kColor* 306 // Set our theme colors. The keys of |colors| are any of the kColor*
307 // constants, and the values are a three-item list containing 8-bit 307 // constants, and the values are a three-item list containing 8-bit
308 // RGB values. 308 // RGB values.
309 void SetColorData(DictionaryValue* colors); 309 void SetColorData(DictionaryValue* colors);
310 310
311 // Set tint data for our images and colors. The keys of |tints| are 311 // Set tint data for our images and colors. The keys of |tints| are
312 // any of the kTint* contstants, and the values are a three-item list 312 // any of the kTint* contstants, and the values are a three-item list
313 // containing real numbers in the range 0-1 (and -1 for 'null'). 313 // containing real numbers in the range 0-1 (and -1 for 'null').
314 void SetTintData(DictionaryValue* tints); 314 void SetTintData(DictionaryValue* tints);
315 315
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // If true, process all images; if false, just load from disk. 382 // If true, process all images; if false, just load from disk.
383 bool process_images_; 383 bool process_images_;
384 384
385 // Where we will store our generated images. 385 // Where we will store our generated images.
386 FilePath image_dir_; 386 FilePath image_dir_;
387 387
388 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider); 388 DISALLOW_COPY_AND_ASSIGN(BrowserThemeProvider);
389 }; 389 };
390 390
391 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_ 391 #endif // CHROME_BROWSER_BROWSER_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698