Index: ui/views/widget/widget.h |
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h |
index 4f95200997b663da2ed5fab97f1bdbb50bc31f97..307e0453d6a3d759dc407cb1e12daf55636397fb 100644 |
--- a/ui/views/widget/widget.h |
+++ b/ui/views/widget/widget.h |
@@ -249,6 +249,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
// |bounds| is in the parent's coordinate system. If the parent is not |
// specified, it's in screen's global coordinate system. |
gfx::Rect bounds; |
+ // The initial workspace of the Widget. Default is "", which means the |
+ // current workspace. |
+ std::string workspace; |
// When set, this value is used as the Widget's NativeWidget implementation. |
// The Widget will not construct a default one. Default is NULL. |
NativeWidget* native_widget; |
@@ -424,6 +427,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
// Retrieves the restored bounds for the window. |
gfx::Rect GetRestoredBounds() const; |
+ // Retrieves the current workspace for the window. |
+ std::string GetWorkspace() const; |
+ |
// Sizes and/or places the widget to the specified bounds, size or position. |
void SetBounds(const gfx::Rect& bounds); |
void SetSize(const gfx::Size& size); |
@@ -787,6 +793,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate, |
gfx::Size GetMaximumSize() const override; |
void OnNativeWidgetMove() override; |
void OnNativeWidgetSizeChanged(const gfx::Size& new_size) override; |
+ void OnNativeWidgetWorkspaceChanged() override; |
void OnNativeWidgetWindowShowStateChanged() override; |
void OnNativeWidgetBeginUserBoundsChange() override; |
void OnNativeWidgetEndUserBoundsChange() override; |