Index: ui/views/bubble/bubble_delegate.h |
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h |
index 0e7da9ba627f7395f0118a24f5fd69c03539ac32..5d19b46225e0c8b0f9eb8d60ff1b7263ae042886 100644 |
--- a/ui/views/bubble/bubble_delegate.h |
+++ b/ui/views/bubble/bubble_delegate.h |
@@ -67,8 +67,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
use_focusless_ = use_focusless; |
} |
- // Get the arrow's anchor point in screen space. |
- virtual gfx::Point GetAnchorPoint(); |
+ // Get the arrow's anchor rect in screen space. |
+ virtual gfx::Rect GetAnchorRect(); |
// Get the arrow's location on the bubble. |
virtual BubbleBorder::ArrowLocation GetArrowLocation() const; |
@@ -87,6 +87,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// bubble to the setting before StartFade() was called. |
void ResetFade(); |
+ // Sets the bubble alignment relative to the anchor. |
+ void SetAlignment(BubbleBorder::BubbleAlignment alignment); |
+ |
// The default bubble background color. |
static const SkColor kBackgroundColor; |