| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_x11.h" | 5 #include "ui/aura/window_tree_host_x11.h" |
| 6 | 6 |
| 7 #include <strings.h> | 7 #include <strings.h> |
| 8 #include <X11/cursorfont.h> | 8 #include <X11/cursorfont.h> |
| 9 #include <X11/extensions/XInput2.h> | 9 #include <X11/extensions/XInput2.h> |
| 10 #include <X11/extensions/Xrandr.h> | 10 #include <X11/extensions/Xrandr.h> |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 // ChromeOS because ChromeOS manages all of the X windows. When running | 544 // ChromeOS because ChromeOS manages all of the X windows. When running |
| 545 // ChromeOS on the desktop for the sake of debugging: | 545 // ChromeOS on the desktop for the sake of debugging: |
| 546 // - Implicit pointer grab as a result of pressing a mouse button | 546 // - Implicit pointer grab as a result of pressing a mouse button |
| 547 // - Releasing capture as a result of losing activation (FocusOut) | 547 // - Releasing capture as a result of losing activation (FocusOut) |
| 548 // is sufficient. | 548 // is sufficient. |
| 549 } | 549 } |
| 550 | 550 |
| 551 void WindowTreeHostX11::ReleaseCapture() { | 551 void WindowTreeHostX11::ReleaseCapture() { |
| 552 } | 552 } |
| 553 | 553 |
| 554 void WindowTreeHostX11::RemapWindow() { |
| 555 } |
| 556 |
| 554 void WindowTreeHostX11::SetCursorNative(gfx::NativeCursor cursor) { | 557 void WindowTreeHostX11::SetCursorNative(gfx::NativeCursor cursor) { |
| 555 if (cursor == current_cursor_) | 558 if (cursor == current_cursor_) |
| 556 return; | 559 return; |
| 557 current_cursor_ = cursor; | 560 current_cursor_ = cursor; |
| 558 SetCursorInternal(cursor); | 561 SetCursorInternal(cursor); |
| 559 } | 562 } |
| 560 | 563 |
| 561 void WindowTreeHostX11::MoveCursorToNative(const gfx::Point& location) { | 564 void WindowTreeHostX11::MoveCursorToNative(const gfx::Point& location) { |
| 562 XWarpPointer(xdisplay_, None, x_root_window_, 0, 0, 0, 0, | 565 XWarpPointer(xdisplay_, None, x_root_window_, 0, 0, 0, 0, |
| 563 bounds_.x() + location.x(), | 566 bounds_.x() + location.x(), |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 } | 671 } |
| 669 | 672 |
| 670 namespace test { | 673 namespace test { |
| 671 | 674 |
| 672 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { | 675 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { |
| 673 default_override_redirect = override_redirect; | 676 default_override_redirect = override_redirect; |
| 674 } | 677 } |
| 675 | 678 |
| 676 } // namespace test | 679 } // namespace test |
| 677 } // namespace aura | 680 } // namespace aura |
| OLD | NEW |