| 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 | 7 |
| 8 #include <pango/pango.h> | 8 #include <pango/pango.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/autofill/autofill_popup_view.h" | 11 #include "chrome/browser/autofill/autofill_popup_view.h" |
| 12 #include "content/public/browser/keyboard_listener.h" | 12 #include "content/public/browser/keyboard_listener.h" |
| 13 #include "ui/base/glib/glib_integers.h" | 13 #include "ui/base/glib/glib_integers.h" |
| 14 #include "ui/base/gtk/gtk_signal.h" | 14 #include "ui/base/gtk/gtk_signal.h" |
| 15 #include "ui/gfx/font.h" | |
| 16 | 15 |
| 17 class GtkThemeService; | 16 class GtkThemeService; |
| 18 class Profile; | 17 class Profile; |
| 19 | 18 |
| 20 namespace content { | 19 namespace content { |
| 21 class RenderViewHost; | 20 class RenderViewHost; |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace gfx { | 23 namespace gfx { |
| 25 class Rect; | 24 class Rect; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 95 |
| 97 // Returns true if the given |x| and |y| coordinates refer to a point that | 96 // Returns true if the given |x| and |y| coordinates refer to a point that |
| 98 // hits the delete icon in the current selected line. | 97 // hits the delete icon in the current selected line. |
| 99 bool DeleteIconIsSelected(int x, int y); | 98 bool DeleteIconIsSelected(int x, int y); |
| 100 | 99 |
| 101 GtkWidget* parent_; // Weak reference. | 100 GtkWidget* parent_; // Weak reference. |
| 102 GtkWidget* window_; // Strong reference. | 101 GtkWidget* window_; // Strong reference. |
| 103 PangoLayout* layout_; // Strong reference | 102 PangoLayout* layout_; // Strong reference |
| 104 GtkThemeService* theme_service_; | 103 GtkThemeService* theme_service_; |
| 105 | 104 |
| 106 // The fonts for the popup text. | |
| 107 gfx::Font value_font_; | |
| 108 gfx::Font label_font_; | |
| 109 | |
| 110 // The size of the popup. | 105 // The size of the popup. |
| 111 gfx::Rect bounds_; | 106 gfx::Rect bounds_; |
| 112 | 107 |
| 113 content::RenderViewHost* render_view_host_; // Weak reference. | 108 content::RenderViewHost* render_view_host_; // Weak reference. |
| 114 | 109 |
| 115 // Used to indicate if the delete icon within a row is currently selected. | 110 // Used to indicate if the delete icon within a row is currently selected. |
| 116 bool delete_icon_selected_; | 111 bool delete_icon_selected_; |
| 117 | 112 |
| 118 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewGtk); | 113 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewGtk); |
| 119 }; | 114 }; |
| 120 | 115 |
| 121 #endif // CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ | 116 #endif // CHROME_BROWSER_UI_GTK_AUTOFILL_AUTOFILL_POPUP_VIEW_GTK_H_ |
| OLD | NEW |