| OLD | NEW |
| 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/views/find_bar_view.h" | 5 #include "chrome/browser/ui/views/find_bar_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/string_util.h" | |
| 10 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/themes/theme_properties.h" | 13 #include "chrome/browser/themes/theme_properties.h" |
| 14 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 14 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 15 #include "chrome/browser/ui/find_bar/find_bar_state.h" | 15 #include "chrome/browser/ui/find_bar/find_bar_state.h" |
| 16 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" | 16 #include "chrome/browser/ui/find_bar/find_bar_state_factory.h" |
| 17 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 17 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 18 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 18 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| 19 #include "chrome/browser/ui/view_ids.h" | 19 #include "chrome/browser/ui/view_ids.h" |
| 20 #include "chrome/browser/ui/views/find_bar_host.h" | 20 #include "chrome/browser/ui/views/find_bar_host.h" |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 533 |
| 534 void FindBarView::OnThemeChanged() { | 534 void FindBarView::OnThemeChanged() { |
| 535 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 535 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 536 if (GetThemeProvider()) { | 536 if (GetThemeProvider()) { |
| 537 close_button_->SetBackground( | 537 close_button_->SetBackground( |
| 538 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT), | 538 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT), |
| 539 rb.GetImageSkiaNamed(IDR_CLOSE_1), | 539 rb.GetImageSkiaNamed(IDR_CLOSE_1), |
| 540 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK)); | 540 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK)); |
| 541 } | 541 } |
| 542 } | 542 } |
| OLD | NEW |