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

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

Issue 149681: GTK Themes: Make the omnibox area look more native. (Closed)
Patch Set: Change names for Dean 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 | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/gtk/browser_toolbar_gtk.h » ('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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Default display properties. 118 // Default display properties.
119 static const int kDefaultDisplayPropertyNTPAlignment = 119 static const int kDefaultDisplayPropertyNTPAlignment =
120 BrowserThemeProvider::ALIGN_BOTTOM; 120 BrowserThemeProvider::ALIGN_BOTTOM;
121 121
122 // The image resources that will be tinted by the 'button' tint value. 122 // The image resources that will be tinted by the 'button' tint value.
123 static const int kToolbarButtonIDs[] = { 123 static const int kToolbarButtonIDs[] = {
124 IDR_BACK, IDR_BACK_D, IDR_BACK_H, IDR_BACK_P, 124 IDR_BACK, IDR_BACK_D, IDR_BACK_H, IDR_BACK_P,
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_NOBORDER, IDR_STAR_D, IDR_STAR_H, IDR_STAR_P,
129 IDR_STARRED, IDR_STARRED_H, IDR_STARRED_P, 129 IDR_STARRED, IDR_STARRED_NOBORDER, 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, IDR_THROBBER_WAITING, IDR_THROBBER_LIGHT 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_;
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 delete i->second; 790 delete i->second;
791 } 791 }
792 image_cache_.clear(); 792 image_cache_.clear();
793 } 793 }
794 794
795 #if defined(TOOLKIT_VIEWS) 795 #if defined(TOOLKIT_VIEWS)
796 void BrowserThemeProvider::FreePlatformCaches() { 796 void BrowserThemeProvider::FreePlatformCaches() {
797 // Views (Skia) has no platform image cache to clear. 797 // Views (Skia) has no platform image cache to clear.
798 } 798 }
799 #endif 799 #endif
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/gtk/browser_toolbar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698