| 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_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class AutocompletePopupViewGtk : public AutocompletePopupView, | 28 class AutocompletePopupViewGtk : public AutocompletePopupView, |
| 29 public NotificationObserver { | 29 public NotificationObserver { |
| 30 public: | 30 public: |
| 31 AutocompletePopupViewGtk(AutocompleteEditView* edit_view, | 31 AutocompletePopupViewGtk(AutocompleteEditView* edit_view, |
| 32 AutocompleteEditModel* edit_model, | 32 AutocompleteEditModel* edit_model, |
| 33 Profile* profile, | 33 Profile* profile, |
| 34 GtkWidget* location_bar); | 34 GtkWidget* location_bar); |
| 35 ~AutocompletePopupViewGtk(); | 35 ~AutocompletePopupViewGtk(); |
| 36 | 36 |
| 37 // Overridden from AutocompletePopupView: | 37 // Overridden from AutocompletePopupView: |
| 38 virtual bool IsOpen() const { return opened_; } | 38 virtual bool IsOpen() const; |
| 39 virtual void InvalidateLine(size_t line); | 39 virtual void InvalidateLine(size_t line); |
| 40 virtual void UpdatePopupAppearance(); | 40 virtual void UpdatePopupAppearance(); |
| 41 virtual gfx::Rect GetTargetBounds(); | 41 virtual gfx::Rect GetTargetBounds(); |
| 42 virtual void PaintUpdatesNow(); | 42 virtual void PaintUpdatesNow(); |
| 43 virtual void OnDragCanceled(); | 43 virtual void OnDragCanceled(); |
| 44 virtual AutocompletePopupModel* GetModel(); | 44 virtual AutocompletePopupModel* GetModel(); |
| 45 | 45 |
| 46 // Overridden from NotificationObserver: | 46 // Overridden from NotificationObserver: |
| 47 virtual void Observe(NotificationType type, | 47 virtual void Observe(NotificationType type, |
| 48 const NotificationSource& source, | 48 const NotificationSource& source, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // erroneously ignore the next drag. | 143 // erroneously ignore the next drag. |
| 144 bool ignore_mouse_drag_; | 144 bool ignore_mouse_drag_; |
| 145 | 145 |
| 146 // Whether our popup is currently open / shown, or closed / hidden. | 146 // Whether our popup is currently open / shown, or closed / hidden. |
| 147 bool opened_; | 147 bool opened_; |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk); | 149 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ | 152 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ |
| OLD | NEW |