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

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

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/find_bar_view.h" 5 #include "chrome/browser/views/find_bar_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
15 #include "chrome/browser/tab_contents/tab_contents.h" 15 #include "chrome/browser/tab_contents/tab_contents.h"
16 #include "chrome/browser/themes/browser_theme_provider.h" 16 #include "chrome/browser/themes/browser_theme_provider.h"
17 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 17 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
18 #include "chrome/browser/ui/find_bar/find_bar_state.h" 18 #include "chrome/browser/ui/find_bar/find_bar_state.h"
19 #include "chrome/browser/view_ids.h" 19 #include "chrome/browser/ui/view_ids.h"
20 #include "chrome/browser/views/find_bar_host.h" 20 #include "chrome/browser/ui/views/find_bar_host.h"
21 #include "chrome/browser/views/frame/browser_view.h" 21 #include "chrome/browser/ui/views/frame/browser_view.h"
22 #include "gfx/canvas.h" 22 #include "gfx/canvas.h"
23 #include "grit/generated_resources.h" 23 #include "grit/generated_resources.h"
24 #include "grit/theme_resources.h" 24 #include "grit/theme_resources.h"
25 #include "third_party/skia/include/effects/SkGradientShader.h" 25 #include "third_party/skia/include/effects/SkGradientShader.h"
26 #include "views/background.h" 26 #include "views/background.h"
27 #include "views/controls/button/image_button.h" 27 #include "views/controls/button/image_button.h"
28 #include "views/controls/label.h" 28 #include "views/controls/label.h"
29 #include "views/focus/focus_manager.h" 29 #include "views/focus/focus_manager.h"
30 #include "views/widget/widget.h" 30 #include "views/widget/widget.h"
31 31
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 void FindBarView::OnThemeChanged() { 548 void FindBarView::OnThemeChanged() {
549 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 549 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
550 if (GetThemeProvider()) { 550 if (GetThemeProvider()) {
551 close_button_->SetBackground( 551 close_button_->SetBackground(
552 GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT), 552 GetThemeProvider()->GetColor(BrowserThemeProvider::COLOR_TAB_TEXT),
553 rb.GetBitmapNamed(IDR_CLOSE_BAR), 553 rb.GetBitmapNamed(IDR_CLOSE_BAR),
554 rb.GetBitmapNamed(IDR_CLOSE_BAR_MASK)); 554 rb.GetBitmapNamed(IDR_CLOSE_BAR_MASK));
555 } 555 }
556 } 556 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_host_interactive_uitest.cc ('k') | chrome/browser/ui/views/first_run_search_engine_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698