| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 } | 481 } |
| 482 | 482 |
| 483 void DesktopWindowTreeHostWin::SizeConstraintsChanged() { | 483 void DesktopWindowTreeHostWin::SizeConstraintsChanged() { |
| 484 message_handler_->SizeConstraintsChanged(); | 484 message_handler_->SizeConstraintsChanged(); |
| 485 } | 485 } |
| 486 | 486 |
| 487 bool DesktopWindowTreeHostWin::ShouldUpdateWindowTransparency() const { | 487 bool DesktopWindowTreeHostWin::ShouldUpdateWindowTransparency() const { |
| 488 return true; | 488 return true; |
| 489 } | 489 } |
| 490 | 490 |
| 491 bool DesktopWindowTreeHostWin::ShouldUseDesktopNativeCursorManager() const { |
| 492 return true; |
| 493 } |
| 494 |
| 491 //////////////////////////////////////////////////////////////////////////////// | 495 //////////////////////////////////////////////////////////////////////////////// |
| 492 // DesktopWindowTreeHostWin, WindowTreeHost implementation: | 496 // DesktopWindowTreeHostWin, WindowTreeHost implementation: |
| 493 | 497 |
| 494 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { | 498 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { |
| 495 return this; | 499 return this; |
| 496 } | 500 } |
| 497 | 501 |
| 498 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { | 502 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { |
| 499 return message_handler_->hwnd(); | 503 return message_handler_->hwnd(); |
| 500 } | 504 } |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 | 1002 |
| 999 // static | 1003 // static |
| 1000 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1004 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 1001 internal::NativeWidgetDelegate* native_widget_delegate, | 1005 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1002 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1006 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 1003 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1007 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 1004 desktop_native_widget_aura); | 1008 desktop_native_widget_aura); |
| 1005 } | 1009 } |
| 1006 | 1010 |
| 1007 } // namespace views | 1011 } // namespace views |
| OLD | NEW |