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

Side by Side Diff: chrome/browser/views/find_bar_view.h

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 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 #ifndef CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/browser/find_notification_details.h" 9 #include "chrome/browser/find_notification_details.h"
10 #include "chrome/browser/views/dropdown_bar_view.h" 10 #include "chrome/browser/views/dropdown_bar_view.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void ContentsChanged(views::Textfield* sender, 69 virtual void ContentsChanged(views::Textfield* sender,
70 const string16& new_contents); 70 const string16& new_contents);
71 virtual bool HandleKeystroke(views::Textfield* sender, 71 virtual bool HandleKeystroke(views::Textfield* sender,
72 const views::Textfield::Keystroke& key); 72 const views::Textfield::Keystroke& key);
73 73
74 private: 74 private:
75 // Update the appearance for the match count label. 75 // Update the appearance for the match count label.
76 void UpdateMatchCountAppearance(bool no_match); 76 void UpdateMatchCountAppearance(bool no_match);
77 77
78 // Overridden from views::View. 78 // Overridden from views::View.
79 virtual void ThemeChanged(); 79 virtual void OnThemeChanged();
80 80
81 // We use a hidden view to grab mouse clicks and bring focus to the find 81 // We use a hidden view to grab mouse clicks and bring focus to the find
82 // text box. This is because although the find text box may look like it 82 // text box. This is because although the find text box may look like it
83 // extends all the way to the find button, it only goes as far as to the 83 // extends all the way to the find button, it only goes as far as to the
84 // match_count label. The user, however, expects being able to click anywhere 84 // match_count label. The user, however, expects being able to click anywhere
85 // inside what looks like the find text box (including on or around the 85 // inside what looks like the find text box (including on or around the
86 // match_count label) and have focus brought to the find box. 86 // match_count label) and have focus brought to the find box.
87 class FocusForwarderView : public views::View { 87 class FocusForwarderView : public views::View {
88 public: 88 public:
89 explicit FocusForwarderView( 89 explicit FocusForwarderView(
(...skipping 26 matching lines...) Expand all
116 views::Label* match_count_text_; 116 views::Label* match_count_text_;
117 FocusForwarderView* focus_forwarder_view_; 117 FocusForwarderView* focus_forwarder_view_;
118 views::ImageButton* find_previous_button_; 118 views::ImageButton* find_previous_button_;
119 views::ImageButton* find_next_button_; 119 views::ImageButton* find_next_button_;
120 views::ImageButton* close_button_; 120 views::ImageButton* close_button_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(FindBarView); 122 DISALLOW_COPY_AND_ASSIGN(FindBarView);
123 }; 123 };
124 124
125 #endif // CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_ 125 #endif // CHROME_BROWSER_VIEWS_FIND_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/extensions/extension_shelf.cc ('k') | chrome/browser/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698