| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |