Lines Matching defs:Widget

75 // Widget class
81 // Widget is a platform-independent type that communicates with a platform or
86 // Depending on the value of the InitParams' ownership field, the Widget
90 // The Widget instance is owned by its NativeWidget. When the NativeWidget
92 // the Widget from its destructor.
94 // The Widget instance owns its NativeWidget. This state implies someone
96 // the Widget it is responsible for destroying the NativeWidget (from its
99 class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
104 typedef std::set<Widget*> Widgets;
175 // Widget, it is destroyed when the corresponding NativeWidget is
178 // Used when the Widget is owned by someone other than the NativeWidget,
228 // Specifies the initial bounds of the Widget. Default is empty, which means
233 // When set, this value is used as the Widget's NativeWidget implementation.
234 // The Widget will not construct a default one. Default is NULL.
263 Widget();
264 virtual ~Widget();
273 static Widget* CreateWindow(WidgetDelegate* delegate);
274 static Widget* CreateWindowWithBounds(WidgetDelegate* delegate,
277 // Creates a decorated window Widget with the specified properties.
278 static Widget* CreateWindowWithParent(WidgetDelegate* delegate,
280 static Widget* CreateWindowWithParentAndBounds(WidgetDelegate* delegate,
284 // Creates a decorated window Widget in the same desktop context as |context|.
285 static Widget* CreateWindowWithContext(WidgetDelegate* delegate,
287 static Widget* CreateWindowWithContextAndBounds(WidgetDelegate* delegate,
295 // Converts a rectangle from one Widget's coordinate system to another's.
299 static bool ConvertRect(const Widget* source,
300 const Widget* target,
303 // Retrieves the Widget implementation associated with the given
305 // Widget.
306 static Widget* GetWidgetForNativeView(gfx::NativeView native_view);
307 static Widget* GetWidgetForNativeWindow(gfx::NativeWindow native_window);
314 static Widget* GetTopLevelWidgetForNativeView(gfx::NativeView native_view);
345 // Returns the gfx::NativeView associated with this Widget.
348 // Returns the gfx::NativeWindow associated with this Widget. This may return
384 Widget* GetTopLevelWidget();
385 const Widget* GetTopLevelWidget() const;
390 // Sets the specified view as the contents of this Widget. There can only
391 // be one contents view child of this Widget's RootView. This view is sized to
397 // Returns the bounds of the Widget in screen coordinates.
400 // Returns the bounds of the Widget's client area in screen coordinates.
413 // Like SetBounds(), but ensures the Widget is fully visible on screen,
435 void StackAboveWidget(Widget* widget);
451 // window handle associated with this Widget, so should not be called from
475 // Returns whether the Widget is the currently active window.
521 // Widget.
535 // Returns whether the Widget is visible to the user.
538 // Returns the ThemeProvider that provides theme resources for this Widget.
543 const_cast<const Widget*>(this)->GetNativeTheme());
615 // Clear native focus set to the Widget's NativeWidget.
643 const_cast<const Widget*>(this)->non_client_view());
651 const_cast<const Widget*>(this)->client_view());
721 // Returns the work area bounds of the screen the Widget belongs to.
780 virtual Widget* AsWidget() OVERRIDE;
781 virtual const Widget* AsWidget() const OVERRIDE;
796 // Creates the RootView to be used within this Widget. Subclasses may override
854 // Non-owned pointer to the Widget's delegate. If a NULL delegate is supplied
869 // The focus manager keeping track of focus for this Widget and any of its
882 // See class documentation for Widget above for a note about ownership.
953 DISALLOW_COPY_AND_ASSIGN(Widget);