| 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_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Overridden from AutocompletePopupView: | 41 // Overridden from AutocompletePopupView: |
| 42 virtual bool IsOpen() const; | 42 virtual bool IsOpen() const; |
| 43 virtual void InvalidateLine(size_t line); | 43 virtual void InvalidateLine(size_t line); |
| 44 virtual void UpdatePopupAppearance(); | 44 virtual void UpdatePopupAppearance(); |
| 45 virtual gfx::Rect GetTargetBounds(); | 45 virtual gfx::Rect GetTargetBounds(); |
| 46 virtual void PaintUpdatesNow(); | 46 virtual void PaintUpdatesNow(); |
| 47 virtual void OnDragCanceled(); | 47 virtual void OnDragCanceled(); |
| 48 | 48 |
| 49 // Overridden from NotificationObserver: | 49 // Overridden from NotificationObserver: |
| 50 virtual void Observe(NotificationType type, | 50 virtual void Observe(int type, |
| 51 const NotificationSource& source, | 51 const NotificationSource& source, |
| 52 const NotificationDetails& details); | 52 const NotificationDetails& details); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // Be friendly for unit tests. | 55 // Be friendly for unit tests. |
| 56 friend class OmniboxPopupViewGtkTest; | 56 friend class OmniboxPopupViewGtkTest; |
| 57 | 57 |
| 58 static void SetupLayoutForMatch( | 58 static void SetupLayoutForMatch( |
| 59 PangoLayout* layout, | 59 PangoLayout* layout, |
| 60 const string16& text, | 60 const string16& text, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // erroneously ignore the next drag. | 133 // erroneously ignore the next drag. |
| 134 bool ignore_mouse_drag_; | 134 bool ignore_mouse_drag_; |
| 135 | 135 |
| 136 // Whether our popup is currently open / shown, or closed / hidden. | 136 // Whether our popup is currently open / shown, or closed / hidden. |
| 137 bool opened_; | 137 bool opened_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk); | 139 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ | 142 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ |
| OLD | NEW |