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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 InsetBottomRight(&pixel_bounds, window_enlargement_); 283 InsetBottomRight(&pixel_bounds, window_enlargement_);
284 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds); 284 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds);
285 } 285 }
286 286
287 gfx::Rect DesktopWindowTreeHostWin::GetRestoredBounds() const { 287 gfx::Rect DesktopWindowTreeHostWin::GetRestoredBounds() const {
288 gfx::Rect pixel_bounds = message_handler_->GetRestoredBounds(); 288 gfx::Rect pixel_bounds = message_handler_->GetRestoredBounds();
289 InsetBottomRight(&pixel_bounds, window_enlargement_); 289 InsetBottomRight(&pixel_bounds, window_enlargement_);
290 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds); 290 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds);
291 } 291 }
292 292
293 std::string DesktopWindowTreeHostWin::GetWorkspace() const {
294 return std::string();
295 }
296
293 gfx::Rect DesktopWindowTreeHostWin::GetWorkAreaBoundsInScreen() const { 297 gfx::Rect DesktopWindowTreeHostWin::GetWorkAreaBoundsInScreen() const {
294 MONITORINFO monitor_info; 298 MONITORINFO monitor_info;
295 monitor_info.cbSize = sizeof(monitor_info); 299 monitor_info.cbSize = sizeof(monitor_info);
296 GetMonitorInfo(MonitorFromWindow(message_handler_->hwnd(), 300 GetMonitorInfo(MonitorFromWindow(message_handler_->hwnd(),
297 MONITOR_DEFAULTTONEAREST), 301 MONITOR_DEFAULTTONEAREST),
298 &monitor_info); 302 &monitor_info);
299 gfx::Rect pixel_bounds = gfx::Rect(monitor_info.rcWork); 303 gfx::Rect pixel_bounds = gfx::Rect(monitor_info.rcWork);
300 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds); 304 return display::win::ScreenWin::ScreenToDIPRect(GetHWND(), pixel_bounds);
301 } 305 }
302 306
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 985
982 // static 986 // static
983 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 987 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
984 internal::NativeWidgetDelegate* native_widget_delegate, 988 internal::NativeWidgetDelegate* native_widget_delegate,
985 DesktopNativeWidgetAura* desktop_native_widget_aura) { 989 DesktopNativeWidgetAura* desktop_native_widget_aura) {
986 return new DesktopWindowTreeHostWin(native_widget_delegate, 990 return new DesktopWindowTreeHostWin(native_widget_delegate,
987 desktop_native_widget_aura); 991 desktop_native_widget_aura);
988 } 992 }
989 993
990 } // namespace views 994 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698