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/win/metro.h" | 7 #include "base/win/metro.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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 } | 544 } |
545 | 545 |
546 void DesktopWindowTreeHostWin::PostNativeEvent( | 546 void DesktopWindowTreeHostWin::PostNativeEvent( |
547 const base::NativeEvent& native_event) { | 547 const base::NativeEvent& native_event) { |
548 } | 548 } |
549 | 549 |
550 void DesktopWindowTreeHostWin::OnDeviceScaleFactorChanged( | 550 void DesktopWindowTreeHostWin::OnDeviceScaleFactorChanged( |
551 float device_scale_factor) { | 551 float device_scale_factor) { |
552 } | 552 } |
553 | 553 |
554 void DesktopWindowTreeHostWin::PrepareForShutdown() { | |
555 } | |
556 | |
557 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) { | 554 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) { |
558 ui::CursorLoaderWin cursor_loader; | 555 ui::CursorLoaderWin cursor_loader; |
559 cursor_loader.SetPlatformCursor(&cursor); | 556 cursor_loader.SetPlatformCursor(&cursor); |
560 | 557 |
561 message_handler_->SetCursor(cursor.platform()); | 558 message_handler_->SetCursor(cursor.platform()); |
562 } | 559 } |
563 | 560 |
564 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { | 561 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { |
565 if (is_cursor_visible_ == show) | 562 if (is_cursor_visible_ == show) |
566 return; | 563 return; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 998 |
1002 // static | 999 // static |
1003 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1000 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
1004 internal::NativeWidgetDelegate* native_widget_delegate, | 1001 internal::NativeWidgetDelegate* native_widget_delegate, |
1005 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1002 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
1006 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1003 return new DesktopWindowTreeHostWin(native_widget_delegate, |
1007 desktop_native_widget_aura); | 1004 desktop_native_widget_aura); |
1008 } | 1005 } |
1009 | 1006 |
1010 } // namespace views | 1007 } // namespace views |
OLD | NEW |