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_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 } else { | 454 } else { |
455 match_count_text_->set_background( | 455 match_count_text_->set_background( |
456 views::Background::CreateSolidBackground(kBackgroundColorMatch)); | 456 views::Background::CreateSolidBackground(kBackgroundColorMatch)); |
457 match_count_text_->SetEnabledColor(kTextColorMatchCount); | 457 match_count_text_->SetEnabledColor(kTextColorMatchCount); |
458 } | 458 } |
459 match_count_text_->SetBackgroundColor( | 459 match_count_text_->SetBackgroundColor( |
460 match_count_text_->background()->get_color()); | 460 match_count_text_->background()->get_color()); |
461 } | 461 } |
462 | 462 |
463 bool FindBarView::FocusForwarderView::OnMousePressed( | 463 bool FindBarView::FocusForwarderView::OnMousePressed( |
464 const views::MouseEvent& event) { | 464 const ui::MouseEvent& event) { |
465 if (view_to_focus_on_mousedown_) { | 465 if (view_to_focus_on_mousedown_) { |
466 view_to_focus_on_mousedown_->ClearSelection(); | 466 view_to_focus_on_mousedown_->ClearSelection(); |
467 view_to_focus_on_mousedown_->RequestFocus(); | 467 view_to_focus_on_mousedown_->RequestFocus(); |
468 } | 468 } |
469 return true; | 469 return true; |
470 } | 470 } |
471 | 471 |
472 FindBarView::SearchTextfieldView::SearchTextfieldView() { | 472 FindBarView::SearchTextfieldView::SearchTextfieldView() { |
473 } | 473 } |
474 | 474 |
(...skipping 13 matching lines...) Expand all Loading... |
488 | 488 |
489 void FindBarView::OnThemeChanged() { | 489 void FindBarView::OnThemeChanged() { |
490 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); | 490 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); |
491 if (GetThemeProvider()) { | 491 if (GetThemeProvider()) { |
492 close_button_->SetBackground( | 492 close_button_->SetBackground( |
493 GetThemeProvider()->GetColor(ThemeService::COLOR_TAB_TEXT), | 493 GetThemeProvider()->GetColor(ThemeService::COLOR_TAB_TEXT), |
494 rb.GetImageSkiaNamed(IDR_CLOSE_BAR), | 494 rb.GetImageSkiaNamed(IDR_CLOSE_BAR), |
495 rb.GetImageSkiaNamed(IDR_CLOSE_BAR_MASK)); | 495 rb.GetImageSkiaNamed(IDR_CLOSE_BAR_MASK)); |
496 } | 496 } |
497 } | 497 } |
OLD | NEW |