OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mus/native_widget_mus.h" | 5 #include "ui/views/mus/native_widget_mus.h" |
6 | 6 |
7 #include "base/thread_task_runner_handle.h" | 7 #include "base/thread_task_runner_handle.h" |
8 #include "components/mus/public/cpp/property_type_converters.h" | 8 #include "components/mus/public/cpp/property_type_converters.h" |
9 #include "components/mus/public/cpp/window.h" | 9 #include "components/mus/public/cpp/window.h" |
10 #include "components/mus/public/cpp/window_property.h" | 10 #include "components/mus/public/cpp/window_property.h" |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 int operation, | 588 int operation, |
589 ui::DragDropTypes::DragEventSource source) { | 589 ui::DragDropTypes::DragEventSource source) { |
590 // NOTIMPLEMENTED(); | 590 // NOTIMPLEMENTED(); |
591 } | 591 } |
592 | 592 |
593 void NativeWidgetMus::SchedulePaintInRect(const gfx::Rect& rect) { | 593 void NativeWidgetMus::SchedulePaintInRect(const gfx::Rect& rect) { |
594 content_->SchedulePaintInRect(rect); | 594 content_->SchedulePaintInRect(rect); |
595 } | 595 } |
596 | 596 |
597 void NativeWidgetMus::SetCursor(gfx::NativeCursor cursor) { | 597 void NativeWidgetMus::SetCursor(gfx::NativeCursor cursor) { |
598 // NOTIMPLEMENTED(); | 598 // TODO(erg): In aura, our incoming cursor is really two |
| 599 // parts. cursor.native_type() is an integer for standard cursors and is all |
| 600 // we support right now. If native_type() == kCursorCustom, than we should |
| 601 // also send an image, but as the cursor code is currently written, the image |
| 602 // is in a platform native format that's already uploaded to the window |
| 603 // server. |
| 604 window_tree_host_->platform_window()->SetCursorById( |
| 605 mus::mojom::Cursor(cursor.native_type())); |
599 } | 606 } |
600 | 607 |
601 bool NativeWidgetMus::IsMouseEventsEnabled() const { | 608 bool NativeWidgetMus::IsMouseEventsEnabled() const { |
602 // NOTIMPLEMENTED(); | 609 // NOTIMPLEMENTED(); |
603 return true; | 610 return true; |
604 } | 611 } |
605 | 612 |
606 void NativeWidgetMus::ClearNativeFocus() { | 613 void NativeWidgetMus::ClearNativeFocus() { |
607 // NOTIMPLEMENTED(); | 614 // NOTIMPLEMENTED(); |
608 } | 615 } |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 } else { | 788 } else { |
782 native_widget_delegate_->OnScrollEvent(event); | 789 native_widget_delegate_->OnScrollEvent(event); |
783 } | 790 } |
784 } | 791 } |
785 | 792 |
786 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { | 793 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { |
787 native_widget_delegate_->OnGestureEvent(event); | 794 native_widget_delegate_->OnGestureEvent(event); |
788 } | 795 } |
789 | 796 |
790 } // namespace views | 797 } // namespace views |
OLD | NEW |