Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: ui/platform_window/x11/x11_window.cc

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/ws/window_tree_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_unittest.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698