Index: views/bubble/bubble_delegate.h |
diff --git a/views/bubble/bubble_delegate.h b/views/bubble/bubble_delegate.h |
index 2e1d78e5afc3be004e8b84512dc4dd4602df2f56..f60fcc059bfd033207dc547c8648b91859b69e9c 100644 |
--- a/views/bubble/bubble_delegate.h |
+++ b/views/bubble/bubble_delegate.h |
@@ -76,6 +76,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
// Get bubble bounds from the anchor point and client view's preferred size. |
gfx::Rect GetBubbleBounds(); |
+ // The widget hosting the border for this bubble. |
+ Widget* border_widget_; |
+ |
// Fade animation for bubble. |
scoped_ptr<ui::SlideAnimation> fade_animation_; |
@@ -92,6 +95,21 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView, |
SkColor color_; |
}; |
+// A separate delegate for the bubble's border widget. |
+class VIEWS_EXPORT BubbleBorderDelegateView : public WidgetDelegateView { |
+ public: |
+ explicit BubbleBorderDelegateView(BubbleDelegateView* bubble); |
+ virtual ~BubbleBorderDelegateView(); |
+ |
+ // WidgetDelegateView overrides: |
+ virtual View* GetContentsView() OVERRIDE; |
+ virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; |
+ virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
+ |
+ private: |
+ BubbleDelegateView* bubble_; |
+}; |
Ben Goodger (Google)
2011/10/25 15:29:36
DISALLOW_COPY_..
msw
2011/10/27 02:01:45
Done.
|
+ |
} // namespace views |
#endif // VIEWS_BUBBLE_BUBBLE_DELEGATE_H_ |