| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <pango/pango.h> | 9 #include <pango/pango.h> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 AutofillPopupViewGtk(content::WebContents* web_contents, | 35 AutofillPopupViewGtk(content::WebContents* web_contents, |
| 36 AutofillExternalDelegate* external_delegate, | 36 AutofillExternalDelegate* external_delegate, |
| 37 GtkWidget* parent); | 37 GtkWidget* parent); |
| 38 virtual ~AutofillPopupViewGtk(); | 38 virtual ~AutofillPopupViewGtk(); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // AutofillPopupView implementations. | 41 // AutofillPopupView implementations. |
| 42 virtual void ShowInternal() OVERRIDE; | 42 virtual void ShowInternal() OVERRIDE; |
| 43 virtual void HideInternal() OVERRIDE; | 43 virtual void HideInternal() OVERRIDE; |
| 44 virtual void InvalidateRow(size_t row) OVERRIDE; | 44 virtual void InvalidateRow(size_t row) OVERRIDE; |
| 45 virtual void ResizePopup() OVERRIDE; |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleButtonRelease, | 48 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleButtonRelease, |
| 48 GdkEventButton*); | 49 GdkEventButton*); |
| 49 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleExpose, | 50 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleExpose, |
| 50 GdkEventExpose*); | 51 GdkEventExpose*); |
| 51 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleMotion, | 52 CHROMEGTK_CALLBACK_1(AutofillPopupViewGtk, gboolean, HandleMotion, |
| 52 GdkEventMotion*); | 53 GdkEventMotion*); |
| 53 | 54 |
| 54 // KeyboardListener implementation. | 55 // KeyboardListener implementation. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 71 // The height of each individual Autofill popup row. | 72 // The height of each individual Autofill popup row. |
| 72 int row_height_; | 73 int row_height_; |
| 73 | 74 |
| 74 // The size of the popup. | 75 // The size of the popup. |
| 75 gfx::Rect bounds_; | 76 gfx::Rect bounds_; |
| 76 | 77 |
| 77 content::RenderViewHost* render_view_host_; // Weak reference. | 78 content::RenderViewHost* render_view_host_; // Weak reference. |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 #endif // CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ | 81 #endif // CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ |
| OLD | NEW |