Index: ui/views/widget/widget.h |
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h |
index 4f95200997b663da2ed5fab97f1bdbb50bc31f97..20b5b37124b28e0b867c5c3246389ab80be9f9c2 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 -1, which means the |
+ // current workspace. |
+ int 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 restored workspace for the window. |
+ int GetRestoredWorkspace() const; |
sky
2016/05/02 15:11:23
This is the workspace the window is on, right? How
Tom (Use chromium acct)
2016/05/02 20:32:38
yes & done
|
+ |
// 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(int workspace_id) override; |
void OnNativeWidgetWindowShowStateChanged() override; |
void OnNativeWidgetBeginUserBoundsChange() override; |
void OnNativeWidgetEndUserBoundsChange() override; |