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

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

Issue 187603007: Rename IDR_OMNIBOX_BORDER_AND_SHADOW_* to IDR_TEXTFIELD_*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename IDR_OMNIBOX_BORDER_AND_SHADOW_* to IDR_TEXTFIELD_*. Created 6 years, 9 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/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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 AddChildView(close_button_); 149 AddChildView(close_button_);
150 150
151 SetBackground(rb.GetImageSkiaNamed(IDR_FIND_DLG_LEFT_BACKGROUND), 151 SetBackground(rb.GetImageSkiaNamed(IDR_FIND_DLG_LEFT_BACKGROUND),
152 rb.GetImageSkiaNamed(IDR_FIND_DLG_RIGHT_BACKGROUND)); 152 rb.GetImageSkiaNamed(IDR_FIND_DLG_RIGHT_BACKGROUND));
153 153
154 SetBorderFromIds( 154 SetBorderFromIds(
155 IDR_FIND_DIALOG_LEFT, IDR_FIND_DIALOG_MIDDLE, IDR_FIND_DIALOG_RIGHT); 155 IDR_FIND_DIALOG_LEFT, IDR_FIND_DIALOG_MIDDLE, IDR_FIND_DIALOG_RIGHT);
156 156
157 preferred_height_ = rb.GetImageSkiaNamed(IDR_FIND_DIALOG_MIDDLE)->height(); 157 preferred_height_ = rb.GetImageSkiaNamed(IDR_FIND_DIALOG_MIDDLE)->height();
158 158
159 // Use the Omnibox border images for the textfield border. 159 static const int kImages[] = IMAGE_GRID(IDR_TEXTFIELD);
160 static const int kImages[] = IMAGE_GRID(IDR_OMNIBOX_BORDER_AND_SHADOW);
161 find_text_border_.reset(views::Painter::CreateImageGridPainter(kImages)); 160 find_text_border_.reset(views::Painter::CreateImageGridPainter(kImages));
162 161
163 EnableCanvasFlippingForRTLUI(true); 162 EnableCanvasFlippingForRTLUI(true);
164 } 163 }
165 164
166 FindBarView::~FindBarView() { 165 FindBarView::~FindBarView() {
167 } 166 }
168 167
169 void FindBarView::SetFindTextAndSelectedRange( 168 void FindBarView::SetFindTextAndSelectedRange(
170 const base::string16& find_text, 169 const base::string16& find_text,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 488
490 void FindBarView::OnThemeChanged() { 489 void FindBarView::OnThemeChanged() {
491 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 490 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
492 if (GetThemeProvider()) { 491 if (GetThemeProvider()) {
493 close_button_->SetBackground( 492 close_button_->SetBackground(
494 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT), 493 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TAB_TEXT),
495 rb.GetImageSkiaNamed(IDR_CLOSE_1), 494 rb.GetImageSkiaNamed(IDR_CLOSE_1),
496 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK)); 495 rb.GetImageSkiaNamed(IDR_CLOSE_1_MASK));
497 } 496 }
498 } 497 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698