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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 void X11Window::ReleaseCapture() {} | 250 void X11Window::ReleaseCapture() {} |
251 | 251 |
252 void X11Window::ToggleFullscreen() {} | 252 void X11Window::ToggleFullscreen() {} |
253 | 253 |
254 void X11Window::Maximize() {} | 254 void X11Window::Maximize() {} |
255 | 255 |
256 void X11Window::Minimize() {} | 256 void X11Window::Minimize() {} |
257 | 257 |
258 void X11Window::Restore() {} | 258 void X11Window::Restore() {} |
259 | 259 |
260 void X11Window::SetCursor(PlatformCursor cursor) {} | 260 void X11Window::SetCursor(PlatformCursor cursor) { |
| 261 XDefineCursor(xdisplay_, xwindow_, cursor); |
| 262 } |
261 | 263 |
262 void X11Window::MoveCursorTo(const gfx::Point& location) {} | 264 void X11Window::MoveCursorTo(const gfx::Point& location) {} |
263 | 265 |
264 void X11Window::ConfineCursorToBounds(const gfx::Rect& bounds) { | 266 void X11Window::ConfineCursorToBounds(const gfx::Rect& bounds) { |
265 } | 267 } |
266 | 268 |
267 PlatformImeController* X11Window::GetPlatformImeController() { | 269 PlatformImeController* X11Window::GetPlatformImeController() { |
268 return nullptr; | 270 return nullptr; |
269 } | 271 } |
270 | 272 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 } | 378 } |
377 | 379 |
378 namespace test { | 380 namespace test { |
379 | 381 |
380 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { | 382 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { |
381 g_override_redirect = override_redirect; | 383 g_override_redirect = override_redirect; |
382 } | 384 } |
383 | 385 |
384 } // namespace test | 386 } // namespace test |
385 } // namespace ui | 387 } // namespace ui |
OLD | NEW |