| Index: views/controls/image_view.h
|
| ===================================================================
|
| --- views/controls/image_view.h (revision 43969)
|
| +++ views/controls/image_view.h (working copy)
|
| @@ -55,6 +55,9 @@
|
| // 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 @@
|
| 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_;
|
|
|