Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2549)

Unified Diff: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h

Issue 10408070: Upgrade Seperator in New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h
diff --git a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h
index 4c13983750fe940ffde438c3765f972232505e25..fd2d21e634f4f471b533bc2ca6d105fbcb3879cf 100644
--- a/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h
+++ b/chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.h
@@ -62,15 +62,30 @@ class AutofillPopupViewGtk : public AutofillPopupView,
// Setup the pango layout to display the autofill results.
void SetupLayout(const gfx::Rect& window_rect, const GdkColor& text_color);
+ // Draw the separator as the given |separator_rect|.
+ void DrawSeparator(cairo_t* cairo_context, const gfx::Rect& separator_rect);
+
+ // Draw the given autofill entry in |entry_rect|.
+ void DrawAutofillEntry(cairo_t* cairo_context,
+ size_t index,
+ int actual_content_height,
+ const gfx::Rect& entry_rect);
+
// Set the bounds of the popup to show, including the placement of it.
void SetBounds();
// Get width of popup needed by values.
int GetPopupRequiredWidth();
+ // Get height of popup needed by values.
+ int GetPopupRequiredHeight();
+
// Convert a y-coordinate to the closest line.
int LineFromY(int y);
+ // Returns the rectangle containing the item at position |index| in the popup.
+ gfx::Rect GetRectForRow(size_t row, int width);
+
GtkWidget* parent_; // Weak reference.
GtkWidget* window_; // Strong reference.
PangoLayout* layout_; // Strong reference
« no previous file with comments | « chrome/browser/autofill/autofill_popup_view.cc ('k') | chrome/browser/ui/gtk/autofill/autofill_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698