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

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

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 10 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
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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.h ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698