Index: views/bubble/bubble_delegate.h |
diff --git a/views/bubble/bubble_delegate.h b/views/bubble/bubble_delegate.h |
index 13da32f1dabaf718cc2a7a7ba6d77afe40521309..be02e44824c78f872f042c5e34de1f2338955e29 100644 |
--- a/views/bubble/bubble_delegate.h |
+++ b/views/bubble/bubble_delegate.h |
@@ -29,14 +29,13 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
public Widget::Observer { |
public: |
BubbleDelegateView(); |
- BubbleDelegateView(const gfx::Point& anchor_point, |
+ BubbleDelegateView(View* anchor_view, |
BubbleBorder::ArrowLocation arrow_location, |
const SkColor& color); |
virtual ~BubbleDelegateView(); |
// Create and initialize the bubble Widget(s) with proper bounds. |
- static Widget* CreateBubble(BubbleDelegateView* bubble_delegate, |
- Widget* parent_widget); |
+ static Widget* CreateBubble(BubbleDelegateView* bubble_delegate); |
// WidgetDelegate overrides: |
virtual View* GetInitiallyFocusedView() OVERRIDE; |
@@ -60,6 +59,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
allow_bubble_offscreen_ = allow_bubble_offscreen; |
} |
+ View* anchor_view() const { return anchor_view_; } |
+ |
bool use_focusless() const { return use_focusless_; } |
void set_use_focusless(bool use_focusless) { |
use_focusless_ = use_focusless; |
@@ -124,8 +125,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// re-positioning should be performed. |
bool allow_bubble_offscreen_; |
- // The screen point where this bubble's arrow is anchored. |
- gfx::Point anchor_point_; |
+ // The view hosting this bubble; the arrow is anchored to this view. |
+ View* anchor_view_; |
// The arrow's location on the bubble. |
BubbleBorder::ArrowLocation arrow_location_; |