| 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 #include "chrome/browser/browser_theme_provider.h" | 5 #include "chrome/browser/browser_theme_provider.h" |
| 6 | 6 |
| 7 #include "base/gfx/png_decoder.h" | 7 #include "base/gfx/png_decoder.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/browser_list.h" | 10 #include "chrome/browser/browser_list.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 IDR_FORWARD, IDR_FORWARD_D, IDR_FORWARD_H, IDR_FORWARD_P, | 125 IDR_FORWARD, IDR_FORWARD_D, IDR_FORWARD_H, IDR_FORWARD_P, |
| 126 IDR_RELOAD, IDR_RELOAD_H, IDR_RELOAD_P, | 126 IDR_RELOAD, IDR_RELOAD_H, IDR_RELOAD_P, |
| 127 IDR_HOME, IDR_HOME_H, IDR_HOME_P, | 127 IDR_HOME, IDR_HOME_H, IDR_HOME_P, |
| 128 IDR_STAR, IDR_STAR_D, IDR_STAR_H, IDR_STAR_P, | 128 IDR_STAR, IDR_STAR_D, IDR_STAR_H, IDR_STAR_P, |
| 129 IDR_STARRED, IDR_STARRED_H, IDR_STARRED_P, | 129 IDR_STARRED, IDR_STARRED_H, IDR_STARRED_P, |
| 130 IDR_GO, IDR_GO_H, IDR_GO_P, | 130 IDR_GO, IDR_GO_H, IDR_GO_P, |
| 131 IDR_STOP, IDR_STOP_H, IDR_STOP_P, | 131 IDR_STOP, IDR_STOP_H, IDR_STOP_P, |
| 132 IDR_MENU_PAGE, IDR_MENU_PAGE_RTL, | 132 IDR_MENU_PAGE, IDR_MENU_PAGE_RTL, |
| 133 IDR_MENU_CHROME, IDR_MENU_CHROME_RTL, | 133 IDR_MENU_CHROME, IDR_MENU_CHROME_RTL, |
| 134 IDR_MENU_DROPARROW, | 134 IDR_MENU_DROPARROW, |
| 135 IDR_THROBBER, | 135 IDR_THROBBER, IDR_THROBBER_WAITING, IDR_THROBBER_LIGHT |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 // A map for kToolbarButtonIDs. | 138 // A map for kToolbarButtonIDs. |
| 139 static std::map<const int, bool> button_images_; | 139 static std::map<const int, bool> button_images_; |
| 140 | 140 |
| 141 // A map of frame image IDs to the tints for those ids. | 141 // A map of frame image IDs to the tints for those ids. |
| 142 static std::map<const int, int> frame_tints_; | 142 static std::map<const int, int> frame_tints_; |
| 143 | 143 |
| 144 BrowserThemeProvider::BrowserThemeProvider() | 144 BrowserThemeProvider::BrowserThemeProvider() |
| 145 : rb_(ResourceBundle::GetSharedInstance()) { | 145 : rb_(ResourceBundle::GetSharedInstance()) { |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 delete i->second; | 791 delete i->second; |
| 792 } | 792 } |
| 793 image_cache_.clear(); | 793 image_cache_.clear(); |
| 794 } | 794 } |
| 795 | 795 |
| 796 #if defined(TOOLKIT_VIEWS) | 796 #if defined(TOOLKIT_VIEWS) |
| 797 void BrowserThemeProvider::FreePlatformCaches() { | 797 void BrowserThemeProvider::FreePlatformCaches() { |
| 798 // Views (Skia) has no platform image cache to clear. | 798 // Views (Skia) has no platform image cache to clear. |
| 799 } | 799 } |
| 800 #endif | 800 #endif |
| OLD | NEW |