OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ozone/platform/dri/dri_window.h" | 5 #include "ui/ozone/platform/dri/dri_window.h" |
6 | 6 |
7 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
8 #include "ui/events/platform/platform_event_source.h" | 8 #include "ui/events/platform/platform_event_source.h" |
9 #include "ui/ozone/platform/dri/dri_surface_factory.h" | 9 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
10 #include "ui/ozone/public/cursor_factory_ozone.h" | 10 #include "ui/ozone/public/cursor_factory_ozone.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void DriWindow::ReleaseCapture() {} | 46 void DriWindow::ReleaseCapture() {} |
47 | 47 |
48 void DriWindow::ToggleFullscreen() {} | 48 void DriWindow::ToggleFullscreen() {} |
49 | 49 |
50 void DriWindow::Maximize() {} | 50 void DriWindow::Maximize() {} |
51 | 51 |
52 void DriWindow::Minimize() {} | 52 void DriWindow::Minimize() {} |
53 | 53 |
54 void DriWindow::Restore() {} | 54 void DriWindow::Restore() {} |
55 | 55 |
| 56 void DriWindow::SetCursor(PlatformCursor cursor) {} |
| 57 |
| 58 void DriWindow::MoveCursorTo(const gfx::Point& location) {} |
| 59 |
56 bool DriWindow::CanDispatchEvent(const PlatformEvent& ne) { | 60 bool DriWindow::CanDispatchEvent(const PlatformEvent& ne) { |
57 DCHECK(ne); | 61 DCHECK(ne); |
58 Event* event = static_cast<Event*>(ne); | 62 Event* event = static_cast<Event*>(ne); |
59 if (event->IsMouseEvent() || event->IsScrollEvent()) | 63 if (event->IsMouseEvent() || event->IsScrollEvent()) |
60 return ui::CursorFactoryOzone::GetInstance()->GetCursorWindow() == widget_; | 64 return ui::CursorFactoryOzone::GetInstance()->GetCursorWindow() == widget_; |
61 | 65 |
62 return true; | 66 return true; |
63 } | 67 } |
64 | 68 |
65 uint32_t DriWindow::DispatchEvent(const PlatformEvent& ne) { | 69 uint32_t DriWindow::DispatchEvent(const PlatformEvent& ne) { |
66 Event* event = static_cast<Event*>(ne); | 70 Event* event = static_cast<Event*>(ne); |
67 delegate_->DispatchEvent(event); | 71 delegate_->DispatchEvent(event); |
68 return POST_DISPATCH_STOP_PROPAGATION; | 72 return POST_DISPATCH_STOP_PROPAGATION; |
69 } | 73 } |
70 | 74 |
71 } // namespace ui | 75 } // namespace ui |
OLD | NEW |