Index: ui/views/bubble/bubble_delegate.h |
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h |
index ab76fa59b81d67ae0273881c2475d73a364fd683..28e8917f898d72290c7bd5e230bbcf291a9f57cc 100644 |
--- a/ui/views/bubble/bubble_delegate.h |
+++ b/ui/views/bubble/bubble_delegate.h |
@@ -113,6 +113,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// after calling CreateBubble. |
void SetAlignment(BubbleBorder::BubbleAlignment alignment); |
+ // Offset the arrow location this many pixels from the corner. Does only work |
+ // with arrow locations which do not use CENTER. |
+ void SetArrowOffset(int offset); |
+ |
protected: |
// Get bubble bounds from the anchor rect and client view's preferred size. |
virtual gfx::Rect GetBubbleBounds(); |
@@ -169,6 +173,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// The arrow's location on the bubble. |
BubbleBorder::Arrow arrow_; |
+ // The offset of the arrow from the corner of the bubble. |
+ int arrow_offset_; |
+ |
// Bubble border shadow to use. |
BubbleBorder::Shadow shadow_; |