Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: views/bubble/bubble_delegate.h

Issue 8368006: Support Windows native textfield, combobox, etc. in new bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/bubble/bubble_delegate.cc » ('j') | views/bubble/bubble_delegate.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | views/bubble/bubble_delegate.cc » ('j') | views/bubble/bubble_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698