OLD | NEW |
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_GTK_FIND_BAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ |
6 #define CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ | 6 #define CHROME_BROWSER_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 23 matching lines...) Expand all Loading... |
34 class FindBarGtk : public FindBar, | 34 class FindBarGtk : public FindBar, |
35 public FindBarTesting, | 35 public FindBarTesting, |
36 public NotificationObserver { | 36 public NotificationObserver { |
37 public: | 37 public: |
38 explicit FindBarGtk(Browser* browser); | 38 explicit FindBarGtk(Browser* browser); |
39 virtual ~FindBarGtk(); | 39 virtual ~FindBarGtk(); |
40 | 40 |
41 GtkWidget* widget() const { return slide_widget_->widget(); } | 41 GtkWidget* widget() const { return slide_widget_->widget(); } |
42 | 42 |
43 // Methods from FindBar. | 43 // Methods from FindBar. |
44 virtual FindBarController* GetFindBarController() const { | 44 virtual FindBarController* GetFindBarController() const; |
45 return find_bar_controller_; | 45 virtual void SetFindBarController(FindBarController* find_bar_controller); |
46 } | |
47 virtual void SetFindBarController(FindBarController* find_bar_controller) { | |
48 find_bar_controller_ = find_bar_controller; | |
49 } | |
50 virtual void Show(bool animate); | 46 virtual void Show(bool animate); |
51 virtual void Hide(bool animate); | 47 virtual void Hide(bool animate); |
52 virtual void SetFocusAndSelection(); | 48 virtual void SetFocusAndSelection(); |
53 virtual void ClearResults(const FindNotificationDetails& results); | 49 virtual void ClearResults(const FindNotificationDetails& results); |
54 virtual void StopAnimation(); | 50 virtual void StopAnimation(); |
55 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, | 51 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, |
56 bool no_redraw); | 52 bool no_redraw); |
57 virtual void SetFindText(const string16& find_text); | 53 virtual void SetFindText(const string16& find_text); |
58 virtual void UpdateUIForFindResult(const FindNotificationDetails& result, | 54 virtual void UpdateUIForFindResult(const FindNotificationDetails& result, |
59 const string16& find_text); | 55 const string16& find_text); |
(...skipping 173 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 | 229 // The selection rect we are currently showing. We cache it to avoid covering |
234 // it up. | 230 // it up. |
235 gfx::Rect selection_rect_; | 231 gfx::Rect selection_rect_; |
236 | 232 |
237 NotificationRegistrar registrar_; | 233 NotificationRegistrar registrar_; |
238 | 234 |
239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 235 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
240 }; | 236 }; |
241 | 237 |
242 #endif // CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ | 238 #endif // CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ |
OLD | NEW |