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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 class TabContentsContainerGtk; | 29 class TabContentsContainerGtk; |
30 | 30 |
31 typedef struct _GtkFloatingContainer GtkFloatingContainer; | 31 typedef struct _GtkFloatingContainer GtkFloatingContainer; |
32 | 32 |
33 // Currently this class contains both a model and a view. We may want to | 33 // Currently this class contains both a model and a view. We may want to |
34 // eventually pull out the model specific bits and share with Windows. | 34 // eventually pull out the model specific bits and share with Windows. |
35 class FindBarGtk : public FindBar, | 35 class FindBarGtk : public FindBar, |
36 public FindBarTesting, | 36 public FindBarTesting, |
37 public NotificationObserver { | 37 public NotificationObserver { |
38 public: | 38 public: |
39 explicit FindBarGtk(Browser* browser); | 39 explicit FindBarGtk(BrowserWindowGtk* window); |
40 virtual ~FindBarGtk(); | 40 virtual ~FindBarGtk(); |
41 | 41 |
42 GtkWidget* widget() const { return slide_widget_->widget(); } | 42 GtkWidget* widget() const { return slide_widget_->widget(); } |
43 | 43 |
44 // Methods from FindBar. | 44 // Methods from FindBar. |
45 virtual FindBarController* GetFindBarController() const; | 45 virtual FindBarController* GetFindBarController() const; |
46 virtual void SetFindBarController(FindBarController* find_bar_controller); | 46 virtual void SetFindBarController(FindBarController* find_bar_controller); |
47 virtual void Show(bool animate); | 47 virtual void Show(bool animate); |
48 virtual void Hide(bool animate); | 48 virtual void Hide(bool animate); |
49 virtual void SetFocusAndSelection(); | 49 virtual void SetFocusAndSelection(); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 // The selection rect we are currently showing. We cache it to avoid covering | 233 // The selection rect we are currently showing. We cache it to avoid covering |
234 // it up. | 234 // it up. |
235 gfx::Rect selection_rect_; | 235 gfx::Rect selection_rect_; |
236 | 236 |
237 NotificationRegistrar registrar_; | 237 NotificationRegistrar registrar_; |
238 | 238 |
239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
240 }; | 240 }; |
241 | 241 |
242 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ | 242 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
OLD | NEW |