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/platform_window/x11/x11_window.h" | 5 #include "ui/platform_window/x11/x11_window.h" |
6 | 6 |
7 #include <X11/extensions/XInput2.h> | 7 #include <X11/extensions/XInput2.h> |
8 #include <X11/Xatom.h> | 8 #include <X11/Xatom.h> |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 #include <X11/Xutil.h> | 10 #include <X11/Xutil.h> |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 void X11Window::ReleaseCapture() {} | 238 void X11Window::ReleaseCapture() {} |
239 | 239 |
240 void X11Window::ToggleFullscreen() {} | 240 void X11Window::ToggleFullscreen() {} |
241 | 241 |
242 void X11Window::Maximize() {} | 242 void X11Window::Maximize() {} |
243 | 243 |
244 void X11Window::Minimize() {} | 244 void X11Window::Minimize() {} |
245 | 245 |
246 void X11Window::Restore() {} | 246 void X11Window::Restore() {} |
247 | 247 |
| 248 void X11Window::SetCursor(PlatformCursor cursor) {} |
| 249 |
| 250 void X11Window::MoveCursorTo(const gfx::Point& location) {} |
| 251 |
248 bool X11Window::CanDispatchEvent(const PlatformEvent& event) { | 252 bool X11Window::CanDispatchEvent(const PlatformEvent& event) { |
249 return FindXEventTarget(event) == xwindow_; | 253 return FindXEventTarget(event) == xwindow_; |
250 } | 254 } |
251 | 255 |
252 uint32_t X11Window::DispatchEvent(const PlatformEvent& event) { | 256 uint32_t X11Window::DispatchEvent(const PlatformEvent& event) { |
253 XEvent* xev = event; | 257 XEvent* xev = event; |
254 switch (xev->type) { | 258 switch (xev->type) { |
255 case EnterNotify: { | 259 case EnterNotify: { |
256 // EnterNotify creates ET_MOUSE_MOVED. Mark as synthesized as this is | 260 // EnterNotify creates ET_MOUSE_MOVED. Mark as synthesized as this is |
257 // not real mouse move event. | 261 // not real mouse move event. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 350 |
347 case GenericEvent: { | 351 case GenericEvent: { |
348 ProcessXInput2Event(xev); | 352 ProcessXInput2Event(xev); |
349 break; | 353 break; |
350 } | 354 } |
351 } | 355 } |
352 return POST_DISPATCH_STOP_PROPAGATION; | 356 return POST_DISPATCH_STOP_PROPAGATION; |
353 } | 357 } |
354 | 358 |
355 } // namespace ui | 359 } // namespace ui |
OLD | NEW |