Index: views/widget/widget.h |
=================================================================== |
--- views/widget/widget.h (revision 22173) |
+++ views/widget/widget.h (working copy) |
@@ -43,6 +43,25 @@ |
public: |
virtual ~Widget() { } |
+ // Creates a transparent popup widget specific to the current platform useful |
+ // for transient status notifications. |
+ static Widget* CreateTransparentPopupWidget(bool delete_on_destroy); |
+ |
+ // Initialize the Widget with a parent and an initial desired size. |
+ // |contents_view| is the view that will be the single child of RootView |
+ // within this Widget. As contents_view is inserted into RootView's tree, |
+ // RootView assumes ownership of this view and cleaning it up. If you remove |
+ // this view, you are responsible for its destruction. If this value is NULL, |
+ // the caller is responsible for populating the RootView, and sizing its |
+ // contents as the window is sized. |
+ virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds) = 0; |
+ |
+ // Sets the specified view as the contents of this Widget. There can only |
+ // be one contnets view child of this Widget's RootView. This view is sized to |
+ // fit the entire size of the RootView. The RootView takes ownership of this |
+ // View, unless it is set as not being parent-owned. |
+ virtual void SetContentsView(View* view) = 0; |
+ |
// Returns the bounds of this Widget in the screen coordinate system. |
// If the receiving Widget is a frame which is larger than its client area, |
// this method returns the client area if including_frame is false and the |