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

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

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/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index e1b03bf712757295903be7e180e79d96b45327cd..931db77b043f82593ec3895b6f71572f1d8e6553 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -676,6 +676,11 @@ gfx::Rect DesktopNativeWidgetAura::GetRestoredBounds() const {
desktop_window_tree_host_->GetRestoredBounds() : gfx::Rect();
}
+std::string DesktopNativeWidgetAura::GetWorkspace() const {
+ return content_window_ ?
+ desktop_window_tree_host_->GetWorkspace() : std::string();
+}
+
void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) {
if (!content_window_)
return;
@@ -1157,6 +1162,11 @@ void DesktopNativeWidgetAura::OnHostResized(const aura::WindowTreeHost* host) {
native_widget_delegate_->OnNativeWidgetSizeChanged(new_bounds.size());
}
+void DesktopNativeWidgetAura::OnHostWorkspaceChanged(
+ const aura::WindowTreeHost* host) {
+ native_widget_delegate_->OnNativeWidgetWorkspaceChanged();
+}
+
void DesktopNativeWidgetAura::OnHostMoved(const aura::WindowTreeHost* host,
const gfx::Point& new_origin) {
TRACE_EVENT1("views", "DesktopNativeWidgetAura::OnHostMoved",

Powered by Google App Engine
This is Rietveld 408576698