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

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

Issue 10827271: Replace views::Event with ui::Event. (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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0); 345 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0);
346 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0); 346 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0);
347 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0); 347 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0);
348 return prefsize; 348 return prefsize;
349 } 349 }
350 350
351 //////////////////////////////////////////////////////////////////////////////// 351 ////////////////////////////////////////////////////////////////////////////////
352 // FindBarView, views::ButtonListener implementation: 352 // FindBarView, views::ButtonListener implementation:
353 353
354 void FindBarView::ButtonPressed( 354 void FindBarView::ButtonPressed(
355 views::Button* sender, const views::Event& event) { 355 views::Button* sender, const ui::Event& event) {
356 switch (sender->tag()) { 356 switch (sender->tag()) {
357 case FIND_PREVIOUS_TAG: 357 case FIND_PREVIOUS_TAG:
358 case FIND_NEXT_TAG: 358 case FIND_NEXT_TAG:
359 if (!find_text_->text().empty()) { 359 if (!find_text_->text().empty()) {
360 find_bar_host()->GetFindBarController()->tab_contents()-> 360 find_bar_host()->GetFindBarController()->tab_contents()->
361 find_tab_helper()->StartFinding(find_text_->text(), 361 find_tab_helper()->StartFinding(find_text_->text(),
362 sender->tag() == FIND_NEXT_TAG, 362 sender->tag() == FIND_NEXT_TAG,
363 false); // Not case sensitive. 363 false); // Not case sensitive.
364 } 364 }
365 if (event.IsMouseEvent()) { 365 if (event.IsMouseEvent()) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698