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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 } | 498 } |
499 | 499 |
500 void DesktopWindowTreeHostWin::ReleaseCapture() { | 500 void DesktopWindowTreeHostWin::ReleaseCapture() { |
501 message_handler_->ReleaseCapture(); | 501 message_handler_->ReleaseCapture(); |
502 } | 502 } |
503 | 503 |
504 void DesktopWindowTreeHostWin::PostNativeEvent( | 504 void DesktopWindowTreeHostWin::PostNativeEvent( |
505 const base::NativeEvent& native_event) { | 505 const base::NativeEvent& native_event) { |
506 } | 506 } |
507 | 507 |
508 void DesktopWindowTreeHostWin::OnDeviceScaleFactorChanged( | |
509 float device_scale_factor) { | |
510 } | |
511 | |
512 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) { | 508 void DesktopWindowTreeHostWin::SetCursorNative(gfx::NativeCursor cursor) { |
513 ui::CursorLoaderWin cursor_loader; | 509 ui::CursorLoaderWin cursor_loader; |
514 cursor_loader.SetPlatformCursor(&cursor); | 510 cursor_loader.SetPlatformCursor(&cursor); |
515 | 511 |
516 message_handler_->SetCursor(cursor.platform()); | 512 message_handler_->SetCursor(cursor.platform()); |
517 } | 513 } |
518 | 514 |
519 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { | 515 void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { |
520 if (is_cursor_visible_ == show) | 516 if (is_cursor_visible_ == show) |
521 return; | 517 return; |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 | 943 |
948 // static | 944 // static |
949 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 945 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
950 internal::NativeWidgetDelegate* native_widget_delegate, | 946 internal::NativeWidgetDelegate* native_widget_delegate, |
951 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 947 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
952 return new DesktopWindowTreeHostWin(native_widget_delegate, | 948 return new DesktopWindowTreeHostWin(native_widget_delegate, |
953 desktop_native_widget_aura); | 949 desktop_native_widget_aura); |
954 } | 950 } |
955 | 951 |
956 } // namespace views | 952 } // namespace views |
OLD | NEW |