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

Side by Side Diff: chrome/browser/ui/search/search_ui.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/search/search_ui.h" 5 #include "chrome/browser/ui/search/search_ui.h"
6 6
7 #include "chrome/browser/themes/theme_properties.h" 7 #include "chrome/browser/themes/theme_properties.h"
8 #include "chrome/browser/themes/theme_service.h" 8 #include "chrome/browser/themes/theme_service.h"
9 #include "grit/theme_resources.h"
10 9
11 namespace chrome { 10 namespace chrome {
12 11
13 SkColor GetDetachedBookmarkBarBackgroundColor(ThemeService* theme_service) { 12 SkColor GetDetachedBookmarkBarBackgroundColor(ThemeService* theme_service) {
14 if (!theme_service->UsingDefaultTheme()) 13 if (!theme_service->UsingDefaultTheme())
15 return theme_service->GetColor(ThemeProperties::COLOR_TOOLBAR); 14 return theme_service->GetColor(ThemeProperties::COLOR_TOOLBAR);
16 return SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1); 15 return SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1);
17 } 16 }
18 17
19 SkColor GetDetachedBookmarkBarSeparatorColor(ThemeService* theme_service) { 18 SkColor GetDetachedBookmarkBarSeparatorColor(ThemeService* theme_service) {
20 if (theme_service->UsingDefaultTheme()) { 19 if (theme_service->UsingDefaultTheme()) {
21 return ThemeProperties::GetDefaultColor( 20 return ThemeProperties::GetDefaultColor(
22 ThemeProperties::COLOR_TOOLBAR_SEPARATOR); 21 ThemeProperties::COLOR_TOOLBAR_SEPARATOR);
23 } 22 }
24 23
25 // Use 50% of bookmark text color as separator color. 24 // Use 50% of bookmark text color as separator color.
26 return SkColorSetA( 25 return SkColorSetA(
27 theme_service->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT), 128); 26 theme_service->GetColor(ThemeProperties::COLOR_BOOKMARK_TEXT), 128);
28 } 27 }
29 28
30 } // namespace chrome 29 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_extended_interactive_uitest.cc ('k') | chrome/browser/ui/startup/startup_browser_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698