| 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_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 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class SkBitmap; | 29 class SkBitmap; |
| 30 | 30 |
| 31 class AutocompletePopupViewGtk : public AutocompletePopupView, | 31 class AutocompletePopupViewGtk : public AutocompletePopupView, |
| 32 public NotificationObserver { | 32 public NotificationObserver { |
| 33 public: | 33 public: |
| 34 AutocompletePopupViewGtk(const gfx::Font& font, | 34 AutocompletePopupViewGtk(const gfx::Font& font, |
| 35 OmniboxView* omnibox_view, | 35 OmniboxView* omnibox_view, |
| 36 AutocompleteEditModel* edit_model, | 36 AutocompleteEditModel* edit_model, |
| 37 Profile* profile, | 37 Profile* profile, |
| 38 GtkWidget* location_bar); | 38 GtkWidget* location_bar); |
| 39 ~AutocompletePopupViewGtk(); | 39 virtual ~AutocompletePopupViewGtk(); |
| 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: |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // erroneously ignore the next drag. | 132 // erroneously ignore the next drag. |
| 133 bool ignore_mouse_drag_; | 133 bool ignore_mouse_drag_; |
| 134 | 134 |
| 135 // Whether our popup is currently open / shown, or closed / hidden. | 135 // Whether our popup is currently open / shown, or closed / hidden. |
| 136 bool opened_; | 136 bool opened_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk); | 138 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewGtk); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ | 141 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_GTK_H_ |
| OLD | NEW |