diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-12 18:57:03 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-12 18:57:03 +0000 |
commit | a2b35465c42e3bb3f85c22a869e0dce74b5d8a4c (patch) | |
tree | e800a3fd638bda7b597b8fd0b76af50d3d049ea5 /views/controls/image_view.h | |
parent | 5e49b2ce1dc358328ab732520b17414b44081712 (diff) | |
download | chromium_src-a2b35465c42e3bb3f85c22a869e0dce74b5d8a4c.zip chromium_src-a2b35465c42e3bb3f85c22a869e0dce74b5d8a4c.tar.gz chromium_src-a2b35465c42e3bb3f85c22a869e0dce74b5d8a4c.tar.bz2 |
Shift omnibox dropdown in and up on Windows, and square off the top, so it connects to the location bar. Also fix info bubble positioning against location bar icons to put the arrow "up against the icon edge" (fixes the arrow overlapping some page action icons).
Remove BubblePositioner, which is now no longer needed.
BUG=27570,40730
TEST=Omnibox dropdown should line up with editable area edges, icons and text should line up with icon and text in the omnibox. Info bubbles should still be positioned correctly
Review URL: http://codereview.chromium.org/1578021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44268 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/image_view.h')
-rw-r--r-- | views/controls/image_view.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/controls/image_view.h b/views/controls/image_view.h index 46cbb00..45eeecd 100644 --- a/views/controls/image_view.h +++ b/views/controls/image_view.h @@ -55,6 +55,9 @@ class ImageView : public View { // size. bool GetImageSize(gfx::Size* image_size); + // Returns the actual bounds of the visible image inside the view. + gfx::Rect GetImageBounds() const; + // Reset the image size to the current image dimensions. void ResetImageSize(); @@ -70,19 +73,16 @@ class ImageView : public View { void SetTooltipText(const std::wstring& tooltip); std::wstring GetTooltipText(); - // Return whether the image should be centered inside the view. // Overriden from View virtual gfx::Size GetPreferredSize(); virtual void Paint(gfx::Canvas* canvas); virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); - - // Overriden from View. virtual bool GetTooltipText(const gfx::Point& p, std::wstring* tooltip); private: // Compute the image origin given the desired size and the receiver alignment // properties. - void ComputeImageOrigin(int image_width, int image_height, int *x, int *y); + gfx::Point ComputeImageOrigin(const gfx::Size& image_size) const; // Whether the image size is set. bool image_size_set_; |