OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |