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/root_window_host_ozone.h" | 5 #include "ui/aura/root_window_host_ozone.h" |
6 | 6 |
7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
8 #include "ui/events/ozone/event_factory_ozone.h" | 8 #include "ui/events/ozone/event_factory_ozone.h" |
9 #include "ui/gfx/ozone/surface_factory_ozone.h" | 9 #include "ui/gfx/ozone/surface_factory_ozone.h" |
10 #include "ui/ozone/ozone_platform.h" | 10 #include "ui/ozone/ozone_platform.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const { | 71 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const { |
72 return bounds_.origin(); | 72 return bounds_.origin(); |
73 } | 73 } |
74 | 74 |
75 void WindowTreeHostOzone::SetCapture() { NOTIMPLEMENTED(); } | 75 void WindowTreeHostOzone::SetCapture() { NOTIMPLEMENTED(); } |
76 | 76 |
77 void WindowTreeHostOzone::ReleaseCapture() { NOTIMPLEMENTED(); } | 77 void WindowTreeHostOzone::ReleaseCapture() { NOTIMPLEMENTED(); } |
78 | 78 |
79 void WindowTreeHostOzone::SetCursor(gfx::NativeCursor cursor) { | 79 void WindowTreeHostOzone::SetCursor(gfx::NativeCursor cursor) { |
80 NOTIMPLEMENTED(); | 80 gfx::SurfaceFactoryOzone::GetInstance()->SetCursorImage(*cursor.platform()); |
81 } | 81 } |
82 | 82 |
83 bool WindowTreeHostOzone::QueryMouseLocation(gfx::Point* location_return) { | 83 bool WindowTreeHostOzone::QueryMouseLocation(gfx::Point* location_return) { |
84 NOTIMPLEMENTED(); | 84 NOTIMPLEMENTED(); |
85 return false; | 85 return false; |
86 } | 86 } |
87 | 87 |
88 bool WindowTreeHostOzone::ConfineCursorToRootWindow() { | 88 bool WindowTreeHostOzone::ConfineCursorToRootWindow() { |
89 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
93 void WindowTreeHostOzone::UnConfineCursor() { NOTIMPLEMENTED(); } | 93 void WindowTreeHostOzone::UnConfineCursor() { NOTIMPLEMENTED(); } |
94 | 94 |
95 void WindowTreeHostOzone::OnCursorVisibilityChanged(bool show) { | 95 void WindowTreeHostOzone::OnCursorVisibilityChanged(bool show) { |
96 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
97 } | 97 } |
98 | 98 |
99 void WindowTreeHostOzone::MoveCursorTo(const gfx::Point& location) { | 99 void WindowTreeHostOzone::MoveCursorTo(const gfx::Point& location) { |
100 NOTIMPLEMENTED(); | 100 gfx::SurfaceFactoryOzone::GetInstance()->MoveCursorTo(location); |
101 } | 101 } |
102 | 102 |
103 void WindowTreeHostOzone::PostNativeEvent( | 103 void WindowTreeHostOzone::PostNativeEvent( |
104 const base::NativeEvent& native_event) { | 104 const base::NativeEvent& native_event) { |
105 NOTIMPLEMENTED(); | 105 NOTIMPLEMENTED(); |
106 } | 106 } |
107 | 107 |
108 void WindowTreeHostOzone::OnDeviceScaleFactorChanged( | 108 void WindowTreeHostOzone::OnDeviceScaleFactorChanged( |
109 float device_scale_factor) { | 109 float device_scale_factor) { |
110 NOTIMPLEMENTED(); | 110 NOTIMPLEMENTED(); |
(...skipping 10 matching lines...) Expand all Loading... |
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 |