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

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

Issue 155588: GTK Themes: Tint throbbers like we tint all other buttons in the interface. (Closed)
Patch Set: Changes for tony Created 11 years, 5 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/gtk/tabs/dragged_tab_gtk.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 #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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/dragged_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698