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

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

Issue 2721009: Fix up the Windows omnibox after the recent endcap removal. This fixes most ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_theme_pack.h" 9 #include "chrome/browser/browser_theme_pack.h"
10 #include "chrome/browser/extensions/extensions_service.h" 10 #include "chrome/browser/extensions/extensions_service.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // If you change this list, you must increment the version number in 138 // If you change this list, you must increment the version number in
139 // browser_theme_pack.cc, and you should assign persistent IDs to the 139 // browser_theme_pack.cc, and you should assign persistent IDs to the
140 // data table at the start of said file or else tinted versions of 140 // data table at the start of said file or else tinted versions of
141 // these resources will not be created. 141 // these resources will not be created.
142 const int kToolbarButtonIDs[] = { 142 const int kToolbarButtonIDs[] = {
143 IDR_BACK, IDR_BACK_D, IDR_BACK_H, IDR_BACK_P, 143 IDR_BACK, IDR_BACK_D, IDR_BACK_H, IDR_BACK_P,
144 IDR_FORWARD, IDR_FORWARD_D, IDR_FORWARD_H, IDR_FORWARD_P, 144 IDR_FORWARD, IDR_FORWARD_D, IDR_FORWARD_H, IDR_FORWARD_P,
145 IDR_HOME, IDR_HOME_H, IDR_HOME_P, 145 IDR_HOME, IDR_HOME_H, IDR_HOME_P,
146 IDR_RELOAD, IDR_RELOAD_H, IDR_RELOAD_P, 146 IDR_RELOAD, IDR_RELOAD_H, IDR_RELOAD_P,
147 IDR_STOP, IDR_STOP_H, IDR_STOP_P, 147 IDR_STOP, IDR_STOP_H, IDR_STOP_P,
148 IDR_LOCATIONBG, 148 IDR_LOCATIONBG_C, IDR_LOCATIONBG_L, IDR_LOCATIONBG_R,
149 IDR_MENU_BOOKMARK, 149 IDR_MENU_BOOKMARK,
150 IDR_MENU_PAGE, IDR_MENU_PAGE_RTL, 150 IDR_MENU_PAGE, IDR_MENU_PAGE_RTL,
151 IDR_MENU_CHROME, IDR_MENU_CHROME_RTL, 151 IDR_MENU_CHROME, IDR_MENU_CHROME_RTL,
152 IDR_MENU_DROPARROW, 152 IDR_MENU_DROPARROW,
153 IDR_THROBBER, IDR_THROBBER_WAITING, IDR_THROBBER_LIGHT, 153 IDR_THROBBER, IDR_THROBBER_WAITING, IDR_THROBBER_LIGHT,
154 }; 154 };
155 155
156 // Writes the theme pack to disk on a separate thread. 156 // Writes the theme pack to disk on a separate thread.
157 class WritePackToDiskTask : public Task { 157 class WritePackToDiskTask : public Task {
158 public: 158 public:
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 void BrowserThemeProvider::OnInfobarDisplayed() { 597 void BrowserThemeProvider::OnInfobarDisplayed() {
598 number_of_infobars_++; 598 number_of_infobars_++;
599 } 599 }
600 600
601 void BrowserThemeProvider::OnInfobarDestroyed() { 601 void BrowserThemeProvider::OnInfobarDestroyed() {
602 number_of_infobars_--; 602 number_of_infobars_--;
603 603
604 if (number_of_infobars_ == 0) 604 if (number_of_infobars_ == 0)
605 RemoveUnusedThemes(); 605 RemoveUnusedThemes();
606 } 606 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698