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

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

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix round-down problems Created 7 years, 2 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.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller.h b/chrome/browser/ui/autofill/autofill_popup_controller.h
index 4b4f7c6d8f540ce1d031f13100dc8f35b77504df..908e76afc71168352ca669bff51e75ad54bb7f12 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller.h
@@ -63,14 +63,14 @@ class AutofillPopupController {
virtual bool IsWarning(size_t index) const = 0;
// Updates the bounds of the popup and initiates a redraw.
- virtual void SetPopupBounds(const gfx::Rect& bounds) = 0;
+ virtual void SetPopupBounds(const gfx::RectF& bounds) = 0;
sky 2013/10/03 14:19:23 Why do any of the changes in this file require flo
jianli 2013/10/03 18:42:17 On Mac, bounds are represented as floats underneat
// Returns the bounds of the item at |index| in the popup, relative to
// the top left of the popup.
- virtual gfx::Rect GetRowBounds(size_t index) = 0;
+ virtual gfx::RectF GetRowBounds(size_t index) = 0;
// The actual bounds of the popup.
- virtual const gfx::Rect& popup_bounds() const = 0;
+ virtual const gfx::RectF& popup_bounds() const = 0;
// The view that the form field element sits in.
virtual gfx::NativeView container_view() const = 0;

Powered by Google App Engine
This is Rietveld 408576698