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

Unified Diff: ui/views/widget/widget.h

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetSavedWindowWorkspace, put command line code into browser_frame.cc Created 4 years, 8 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
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;

Powered by Google App Engine
This is Rietveld 408576698