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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const string16& find_text); | 55 const string16& find_text); |
56 virtual void AudibleAlert(); | 56 virtual void AudibleAlert(); |
57 virtual bool IsFindBarVisible(); | 57 virtual bool IsFindBarVisible(); |
58 virtual void RestoreSavedFocus(); | 58 virtual void RestoreSavedFocus(); |
59 virtual FindBarTesting* GetFindBarTesting(); | 59 virtual FindBarTesting* GetFindBarTesting(); |
60 | 60 |
61 // Methods from FindBarTesting. | 61 // Methods from FindBarTesting. |
62 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 62 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
63 bool* fully_visible); | 63 bool* fully_visible); |
64 virtual string16 GetFindText(); | 64 virtual string16 GetFindText(); |
| 65 virtual string16 GetFindSelectedText(); |
65 virtual string16 GetMatchCountText(); | 66 virtual string16 GetMatchCountText(); |
66 | 67 |
67 // Overridden from NotificationObserver: | 68 // Overridden from NotificationObserver: |
68 virtual void Observe(NotificationType type, | 69 virtual void Observe(NotificationType type, |
69 const NotificationSource& source, | 70 const NotificationSource& source, |
70 const NotificationDetails& details); | 71 const NotificationDetails& details); |
71 | 72 |
72 private: | 73 private: |
73 void InitWidgets(); | 74 void InitWidgets(); |
74 | 75 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 // The selection rect we are currently showing. We cache it to avoid covering | 231 // The selection rect we are currently showing. We cache it to avoid covering |
231 // it up. | 232 // it up. |
232 gfx::Rect selection_rect_; | 233 gfx::Rect selection_rect_; |
233 | 234 |
234 NotificationRegistrar registrar_; | 235 NotificationRegistrar registrar_; |
235 | 236 |
236 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 237 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
237 }; | 238 }; |
238 | 239 |
239 #endif // CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ | 240 #endif // CHROME_BROWSER_GTK_FIND_BAR_GTK_H_ |
OLD | NEW |