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/views/find_bar_view.h" | 5 #include "chrome/browser/views/find_bar_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
13 #include "chrome/browser/browser_theme_provider.h" | 12 #include "chrome/browser/browser_theme_provider.h" |
14 #include "chrome/browser/find_bar_controller.h" | 13 #include "chrome/browser/find_bar_controller.h" |
15 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
16 #include "chrome/browser/views/find_bar_host.h" | 15 #include "chrome/browser/views/find_bar_host.h" |
17 #include "chrome/browser/view_ids.h" | 16 #include "chrome/browser/view_ids.h" |
| 17 #include "gfx/canvas.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
20 #include "third_party/skia/include/effects/SkGradientShader.h" | 20 #include "third_party/skia/include/effects/SkGradientShader.h" |
21 #include "views/background.h" | 21 #include "views/background.h" |
22 #include "views/controls/button/image_button.h" | 22 #include "views/controls/button/image_button.h" |
23 #include "views/controls/label.h" | 23 #include "views/controls/label.h" |
24 | 24 |
25 // The amount of whitespace to have before the find button. | 25 // The amount of whitespace to have before the find button. |
26 static const int kWhiteSpaceAfterMatchCountLabel = 1; | 26 static const int kWhiteSpaceAfterMatchCountLabel = 1; |
27 | 27 |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 | 491 |
492 void FindBarView::ThemeChanged() { | 492 void FindBarView::ThemeChanged() { |
493 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 493 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
494 if (GetThemeProvider()) { | 494 if (GetThemeProvider()) { |
495 close_button_->SetBackground( | 495 close_button_->SetBackground( |
496 GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT), | 496 GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT), |
497 rb.GetBitmapNamed(IDR_CLOSE_BAR), | 497 rb.GetBitmapNamed(IDR_CLOSE_BAR), |
498 rb.GetBitmapNamed(IDR_CLOSE_BAR_MASK)); | 498 rb.GetBitmapNamed(IDR_CLOSE_BAR_MASK)); |
499 } | 499 } |
500 } | 500 } |
OLD | NEW |