| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual bool IsFindBarVisible(); | 58 virtual bool IsFindBarVisible(); |
| 59 virtual void RestoreSavedFocus(); | 59 virtual void RestoreSavedFocus(); |
| 60 virtual FindBarTesting* GetFindBarTesting(); | 60 virtual FindBarTesting* GetFindBarTesting(); |
| 61 | 61 |
| 62 // Methods from FindBarTesting. | 62 // Methods from FindBarTesting. |
| 63 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 63 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 64 bool* fully_visible); | 64 bool* fully_visible); |
| 65 virtual string16 GetFindText(); | 65 virtual string16 GetFindText(); |
| 66 virtual string16 GetFindSelectedText(); | 66 virtual string16 GetFindSelectedText(); |
| 67 virtual string16 GetMatchCountText(); | 67 virtual string16 GetMatchCountText(); |
| 68 virtual int GetWidth(); |
| 68 | 69 |
| 69 // Overridden from NotificationObserver: | 70 // Overridden from NotificationObserver: |
| 70 virtual void Observe(NotificationType type, | 71 virtual void Observe(NotificationType type, |
| 71 const NotificationSource& source, | 72 const NotificationSource& source, |
| 72 const NotificationDetails& details); | 73 const NotificationDetails& details); |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 void InitWidgets(); | 76 void InitWidgets(); |
| 76 | 77 |
| 77 // Store the currently focused widget if it is not in the find bar. | 78 // Store the currently focused widget if it is not in the find bar. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // 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 |
| 233 // it up. | 234 // it up. |
| 234 gfx::Rect selection_rect_; | 235 gfx::Rect selection_rect_; |
| 235 | 236 |
| 236 NotificationRegistrar registrar_; | 237 NotificationRegistrar registrar_; |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ | 242 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
| OLD | NEW |