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

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

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implemented GetRestoredWorkspace, fix some formatting 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
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index d2b27c9c18a675a16cae216ef469262f809ff120..21fa1f89bdb1f416e74f86e8bab847d9ead11c45 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -129,13 +129,13 @@ Widget::InitParams::InitParams(Type type)
use_system_default_icon(false),
show_state(ui::SHOW_STATE_DEFAULT),
parent(nullptr),
+ workspace(-1),
native_widget(nullptr),
desktop_window_tree_host(nullptr),
layer_type(ui::LAYER_TEXTURED),
context(nullptr),
force_show_in_taskbar(false),
- force_software_compositing(false) {
-}
+ force_software_compositing(false) {}
Widget::InitParams::InitParams(const InitParams& other) = default;
@@ -489,6 +489,10 @@ gfx::Rect Widget::GetRestoredBounds() const {
return native_widget_->GetRestoredBounds();
}
+int Widget::GetRestoredWorkspace() const {
+ return native_widget_->GetRestoredWorkspace();
+}
+
void Widget::SetBounds(const gfx::Rect& bounds) {
native_widget_->SetBounds(bounds);
}
@@ -1110,6 +1114,8 @@ void Widget::OnNativeWidgetSizeChanged(const gfx::Size& new_size) {
GetWindowBoundsInScreen()));
}
+void Widget::OnNativeWidgetWorkspaceChanged(int workspace_id) {}
+
void Widget::OnNativeWidgetWindowShowStateChanged() {
SaveWindowPlacementIfInitialized();
}
« ui/views/widget/widget.h ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698