| 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/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 const ui::MouseEvent& event) { | 488 const ui::MouseEvent& event) { |
| 489 if (view_to_focus_on_mousedown_) | 489 if (view_to_focus_on_mousedown_) |
| 490 view_to_focus_on_mousedown_->RequestFocus(); | 490 view_to_focus_on_mousedown_->RequestFocus(); |
| 491 return true; | 491 return true; |
| 492 } | 492 } |
| 493 | 493 |
| 494 FindBarHost* FindBarView::find_bar_host() const { | 494 FindBarHost* FindBarView::find_bar_host() const { |
| 495 return static_cast<FindBarHost*>(host()); | 495 return static_cast<FindBarHost*>(host()); |
| 496 } | 496 } |
| 497 | 497 |
| 498 const char* FindBarView::GetClassName() const { |
| 499 return "FindBarView"; |
| 500 } |
| 501 |
| 498 void FindBarView::OnThemeChanged() { | 502 void FindBarView::OnThemeChanged() { |
| 499 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 503 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
| 500 if (GetThemeProvider()) { | 504 if (GetThemeProvider()) { |
| 501 close_button_->SetBackground( | 505 close_button_->SetBackground( |
| 502 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT), | 506 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT), |
| 503 rb.GetImageSkiaNamed(IDR_CLOSE_1), | 507 rb.GetImageSkiaNamed(IDR_CLOSE_1), |
| 504 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK)); | 508 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK)); |
| 505 } | 509 } |
| 506 } | 510 } |
| OLD | NEW |