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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.h

Issue 11817051: Elide text in the new Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 11 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/autofill/autofill_popup_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
index 321d56b43c4ce6b2155ee4cbf4363d474a245c24..6e9eebcb138da90ba3b4d0dc3a36b9b508134225 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.h
@@ -128,6 +128,15 @@ class AutofillPopupControllerImpl : public AutofillPopupController,
virtual void InvalidateRow(size_t row);
private:
+ // Calculate the width of the row, excluding all the text. This provides
+ // the size of the row that won't be reducible (since all the text can be
+ // elided if there isn't enough space).
+ int RowWidthWithoutText(int row);
+
+ // Calculates and sets the width of the popup based on the data to be shown,
+ // the screen size and position of the popup (virtual for testing).
+ virtual int CalculateAndSetPopupWidth();
Ilya Sherman 2013/01/11 23:05:35 IMO the code would be cleaner if this either retur
csharp 2013/01/14 20:32:33 Done.
+
AutofillPopupView* view_; // Weak reference.
AutofillPopupDelegate* delegate_; // Weak reference.
gfx::NativeView container_view_; // Weak reference.

Powered by Google App Engine
This is Rietveld 408576698