| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/aura/window_tree_host_ozone.h" | 5 #include "ui/aura/window_tree_host_ozone.h" |
| 6 | 6 |
| 7 #include "ui/aura/window_event_dispatcher.h" | 7 #include "ui/aura/window_event_dispatcher.h" |
| 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
| 9 #include "ui/events/ozone/event_factory_ozone.h" | 9 #include "ui/events/ozone/event_factory_ozone.h" |
| 10 #include "ui/gfx/ozone/surface_factory_ozone.h" | 10 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { | 106 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { |
| 107 ui::CursorFactoryOzone::GetInstance()->MoveCursorTo(GetAcceleratedWidget(), | 107 ui::CursorFactoryOzone::GetInstance()->MoveCursorTo(GetAcceleratedWidget(), |
| 108 location); | 108 location); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void WindowTreeHostOzone::OnCursorVisibilityChangedNative(bool show) { | 111 void WindowTreeHostOzone::OnCursorVisibilityChangedNative(bool show) { |
| 112 NOTIMPLEMENTED(); | 112 NOTIMPLEMENTED(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 ui::EventProcessor* WindowTreeHostOzone::GetEventProcessor() { | 115 ui::EventProcessor* WindowTreeHostOzone::GetEventProcessor() { |
| 116 return delegate_->GetEventProcessor(); | 116 return dispatcher(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 // static | 119 // static |
| 120 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { | 120 WindowTreeHost* WindowTreeHost::Create(const gfx::Rect& bounds) { |
| 121 return new WindowTreeHostOzone(bounds); | 121 return new WindowTreeHostOzone(bounds); |
| 122 } | 122 } |
| 123 | 123 |
| 124 // static | 124 // static |
| 125 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 125 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
| 126 NOTIMPLEMENTED(); | 126 NOTIMPLEMENTED(); |
| 127 return gfx::Size(); | 127 return gfx::Size(); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace aura | 130 } // namespace aura |
| OLD | NEW |