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

Unified Diff: chrome/browser/views/bubble_border.h

Issue 194110: Convert the AutocompletePopupPositioner into a BubblePositioner in preparatio... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/views/bubble_border.h
===================================================================
--- chrome/browser/views/bubble_border.h (revision 26251)
+++ chrome/browser/views/bubble_border.h (working copy)
@@ -27,6 +27,12 @@
return 4;
}
+ // Gives the desired bounds (in screen coordinates) given the rect to position
+ // relative to and the size of the contained contents. The contents are
+ // centered underneath the supplied rect.
+ gfx::Rect GetBounds(const gfx::Rect& position_relative_to,
+ const gfx::Size& contents_size) const;
+
// Overridden from views::Border:
virtual void GetInsets(gfx::Insets* insets) const;

Powered by Google App Engine
This is Rietveld 408576698