Chromium Code Reviews| 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/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/gfx/png_decoder.h" | 9 #include "base/gfx/png_decoder.h" |
| 10 #include "base/gfx/png_encoder.h" | 10 #include "base/gfx/png_encoder.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 resource_names_[IDR_THEME_FRAME_INACTIVE] = "theme_frame_inactive"; | 249 resource_names_[IDR_THEME_FRAME_INACTIVE] = "theme_frame_inactive"; |
| 250 resource_names_[IDR_THEME_FRAME_OVERLAY] = "theme_frame_overlay"; | 250 resource_names_[IDR_THEME_FRAME_OVERLAY] = "theme_frame_overlay"; |
| 251 resource_names_[IDR_THEME_FRAME_OVERLAY_INACTIVE] = | 251 resource_names_[IDR_THEME_FRAME_OVERLAY_INACTIVE] = |
| 252 "theme_frame_overlay_inactive"; | 252 "theme_frame_overlay_inactive"; |
| 253 resource_names_[IDR_THEME_FRAME_INCOGNITO] = "theme_frame_incognito"; | 253 resource_names_[IDR_THEME_FRAME_INCOGNITO] = "theme_frame_incognito"; |
| 254 resource_names_[IDR_THEME_FRAME_INCOGNITO_INACTIVE] = | 254 resource_names_[IDR_THEME_FRAME_INCOGNITO_INACTIVE] = |
| 255 "theme_frame_incognito_inactive"; | 255 "theme_frame_incognito_inactive"; |
| 256 resource_names_[IDR_THEME_TAB_BACKGROUND] = "theme_tab_background"; | 256 resource_names_[IDR_THEME_TAB_BACKGROUND] = "theme_tab_background"; |
| 257 resource_names_[IDR_THEME_TAB_BACKGROUND_INCOGNITO] = | 257 resource_names_[IDR_THEME_TAB_BACKGROUND_INCOGNITO] = |
| 258 "theme_tab_background_incognito"; | 258 "theme_tab_background_incognito"; |
| 259 resource_names_[IDR_THEME_TOOLBAR] = "theme_toolbar"; | |
|
Glen Murphy
2009/09/10 04:45:36
Are these meant to be part of this CL?
Miranda Callahan
2009/09/10 15:28:43
Yes and no; when I moved the code in DOMUIThemeSou
| |
| 260 resource_names_[IDR_THEME_TAB_BACKGROUND_V] = "theme_tab_background_v"; | |
| 261 resource_names_[IDR_THEME_NTP_BACKGROUND] = "theme_ntp_background"; | |
| 262 resource_names_[IDR_THEME_BUTTON_BACKGROUND] = "theme_button_background"; | |
| 263 resource_names_[IDR_THEME_NTP_ATTRIBUTION] = "theme_ntp_attribution"; | |
| 264 resource_names_[IDR_THEME_WINDOW_CONTROL_BACKGROUND] = | |
| 265 "theme_window_control_background"; | |
| 259 } | 266 } |
| 260 } | 267 } |
| 261 | 268 |
| 262 BrowserThemeProvider::~BrowserThemeProvider() { | 269 BrowserThemeProvider::~BrowserThemeProvider() { |
| 263 ClearCaches(); | 270 ClearCaches(); |
| 264 } | 271 } |
| 265 | 272 |
| 266 void BrowserThemeProvider::Init(Profile* profile) { | 273 void BrowserThemeProvider::Init(Profile* profile) { |
| 267 DCHECK(CalledOnValidThread()); | 274 DCHECK(CalledOnValidThread()); |
| 268 profile_ = profile; | 275 profile_ = profile; |
| (...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1239 } | 1246 } |
| 1240 image_cache_.clear(); | 1247 image_cache_.clear(); |
| 1241 images_disk_cache_.clear(); | 1248 images_disk_cache_.clear(); |
| 1242 } | 1249 } |
| 1243 | 1250 |
| 1244 #if defined(TOOLKIT_VIEWS) | 1251 #if defined(TOOLKIT_VIEWS) |
| 1245 void BrowserThemeProvider::FreePlatformCaches() { | 1252 void BrowserThemeProvider::FreePlatformCaches() { |
| 1246 // Views (Skia) has no platform image cache to clear. | 1253 // Views (Skia) has no platform image cache to clear. |
| 1247 } | 1254 } |
| 1248 #endif | 1255 #endif |
| OLD | NEW |