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_GTK_FIND_BAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/ui/find_bar/find_bar.h" | 13 #include "chrome/browser/ui/find_bar/find_bar.h" |
14 #include "chrome/browser/ui/gtk/focus_store_gtk.h" | |
15 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" | 14 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" |
16 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 #include "ui/base/gtk/focus_store_gtk.h" |
18 #include "ui/base/gtk/gtk_signal.h" | 18 #include "ui/base/gtk/gtk_signal.h" |
19 #include "ui/base/gtk/owned_widget_gtk.h" | 19 #include "ui/base/gtk/owned_widget_gtk.h" |
20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/point.h" |
21 | 21 |
22 class Browser; | 22 class Browser; |
23 class BrowserWindowGtk; | 23 class BrowserWindowGtk; |
24 class CustomDrawButton; | 24 class CustomDrawButton; |
25 class FindBarController; | 25 class FindBarController; |
26 class GtkThemeService; | 26 class GtkThemeService; |
27 class NineBox; | 27 class NineBox; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // The X to close the find bar. | 211 // The X to close the find bar. |
212 scoped_ptr<CustomDrawButton> close_button_; | 212 scoped_ptr<CustomDrawButton> close_button_; |
213 | 213 |
214 // The last matchcount number we reported to the user. | 214 // The last matchcount number we reported to the user. |
215 int last_reported_matchcount_; | 215 int last_reported_matchcount_; |
216 | 216 |
217 // Pointer back to the owning controller. | 217 // Pointer back to the owning controller. |
218 FindBarController* find_bar_controller_; | 218 FindBarController* find_bar_controller_; |
219 | 219 |
220 // Saves where the focus used to be whenever we get it. | 220 // Saves where the focus used to be whenever we get it. |
221 FocusStoreGtk focus_store_; | 221 ui::FocusStoreGtk focus_store_; |
222 | 222 |
223 // If true, the change signal for the text entry is ignored. | 223 // If true, the change signal for the text entry is ignored. |
224 bool ignore_changed_signal_; | 224 bool ignore_changed_signal_; |
225 | 225 |
226 // This is the width of widget(). We cache it so we can recognize whether | 226 // This is the width of widget(). We cache it so we can recognize whether |
227 // allocate signals have changed it, and if so take appropriate actions. | 227 // allocate signals have changed it, and if so take appropriate actions. |
228 int current_fixed_width_; | 228 int current_fixed_width_; |
229 | 229 |
230 scoped_ptr<NineBox> dialog_background_; | 230 scoped_ptr<NineBox> dialog_background_; |
231 | 231 |
232 // The selection rect we are currently showing. We cache it to avoid covering | 232 // The selection rect we are currently showing. We cache it to avoid covering |
233 // it up. | 233 // it up. |
234 gfx::Rect selection_rect_; | 234 gfx::Rect selection_rect_; |
235 | 235 |
236 content::NotificationRegistrar registrar_; | 236 content::NotificationRegistrar registrar_; |
237 | 237 |
238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
239 }; | 239 }; |
240 | 240 |
241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ | 241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
OLD | NEW |