| 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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_root_window_host_win.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.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/desktop/desktop_activation_client.h" | 10 #include "ui/aura/desktop/desktop_activation_client.h" |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 void DesktopRootWindowHostWin::SetCursor(gfx::NativeCursor cursor) { | 344 void DesktopRootWindowHostWin::SetCursor(gfx::NativeCursor cursor) { |
| 345 // Custom web cursors are handled directly. | 345 // Custom web cursors are handled directly. |
| 346 if (cursor == ui::kCursorCustom) | 346 if (cursor == ui::kCursorCustom) |
| 347 return; | 347 return; |
| 348 ui::CursorLoaderWin cursor_loader; | 348 ui::CursorLoaderWin cursor_loader; |
| 349 cursor_loader.SetPlatformCursor(&cursor); | 349 cursor_loader.SetPlatformCursor(&cursor); |
| 350 | 350 |
| 351 message_handler_->SetCursor(cursor.platform()); | 351 message_handler_->SetCursor(cursor.platform()); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void DesktopRootWindowHostWin::ShowCursor(bool show) { | |
| 355 } | |
| 356 | |
| 357 bool DesktopRootWindowHostWin::QueryMouseLocation(gfx::Point* location_return) { | 354 bool DesktopRootWindowHostWin::QueryMouseLocation(gfx::Point* location_return) { |
| 358 return false; | 355 return false; |
| 359 } | 356 } |
| 360 | 357 |
| 361 bool DesktopRootWindowHostWin::ConfineCursorToRootWindow() { | 358 bool DesktopRootWindowHostWin::ConfineCursorToRootWindow() { |
| 362 return false; | 359 return false; |
| 363 } | 360 } |
| 364 | 361 |
| 365 void DesktopRootWindowHostWin::UnConfineCursor() { | 362 void DesktopRootWindowHostWin::UnConfineCursor() { |
| 366 } | 363 } |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 704 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 708 internal::NativeWidgetDelegate* native_widget_delegate, | 705 internal::NativeWidgetDelegate* native_widget_delegate, |
| 709 DesktopNativeWidgetAura* desktop_native_widget_aura, | 706 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 710 const gfx::Rect& initial_bounds) { | 707 const gfx::Rect& initial_bounds) { |
| 711 return new DesktopRootWindowHostWin(native_widget_delegate, | 708 return new DesktopRootWindowHostWin(native_widget_delegate, |
| 712 desktop_native_widget_aura, | 709 desktop_native_widget_aura, |
| 713 initial_bounds); | 710 initial_bounds); |
| 714 } | 711 } |
| 715 | 712 |
| 716 } // namespace views | 713 } // namespace views |
| OLD | NEW |