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

Side by Side Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.h ('k') | chrome/browser/ui/views/frame/app_non_client_frame_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698