OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_FIND_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual void RequestFocus(); | 119 virtual void RequestFocus(); |
120 | 120 |
121 private: | 121 private: |
122 DISALLOW_COPY_AND_ASSIGN(SearchTextfieldView); | 122 DISALLOW_COPY_AND_ASSIGN(SearchTextfieldView); |
123 }; | 123 }; |
124 | 124 |
125 // Returns the OS-specific view for the find bar that acts as an intermediary | 125 // Returns the OS-specific view for the find bar that acts as an intermediary |
126 // between us and the TabContentsView. | 126 // between us and the TabContentsView. |
127 FindBarHost* find_bar_host() const; | 127 FindBarHost* find_bar_host() const; |
128 | 128 |
129 #if defined(OS_LINUX) | |
130 // In GTK we get changed signals if we programmatically set the text. If we | |
131 // don't ignore them we run into problems. For example, switching tabs back | |
132 // to one with the find bar visible will cause a search to the next found | |
133 // text. Also if the find bar had been visible and then hidden and the user | |
134 // switches back, found text will be highlighted again. | |
135 bool ignore_contents_changed_; | |
136 #endif | |
137 | |
138 // The controls in the window. | 129 // The controls in the window. |
139 SearchTextfieldView* find_text_; | 130 SearchTextfieldView* find_text_; |
140 views::Label* match_count_text_; | 131 views::Label* match_count_text_; |
141 FocusForwarderView* focus_forwarder_view_; | 132 FocusForwarderView* focus_forwarder_view_; |
142 views::ImageButton* find_previous_button_; | 133 views::ImageButton* find_previous_button_; |
143 views::ImageButton* find_next_button_; | 134 views::ImageButton* find_next_button_; |
144 views::ImageButton* close_button_; | 135 views::ImageButton* close_button_; |
145 | 136 |
146 DISALLOW_COPY_AND_ASSIGN(FindBarView); | 137 DISALLOW_COPY_AND_ASSIGN(FindBarView); |
147 }; | 138 }; |
148 | 139 |
149 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ | 140 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_VIEW_H_ |
OLD | NEW |