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::RemapAsNormalWindow() { |
| 555 NOTREACHED(); |
| 556 } |
| 557 |
554 void WindowTreeHostX11::SetCursorNative(gfx::NativeCursor cursor) { | 558 void WindowTreeHostX11::SetCursorNative(gfx::NativeCursor cursor) { |
555 if (cursor == current_cursor_) | 559 if (cursor == current_cursor_) |
556 return; | 560 return; |
557 current_cursor_ = cursor; | 561 current_cursor_ = cursor; |
558 SetCursorInternal(cursor); | 562 SetCursorInternal(cursor); |
559 } | 563 } |
560 | 564 |
561 void WindowTreeHostX11::MoveCursorToNative(const gfx::Point& location) { | 565 void WindowTreeHostX11::MoveCursorToNative(const gfx::Point& location) { |
562 XWarpPointer(xdisplay_, None, x_root_window_, 0, 0, 0, 0, | 566 XWarpPointer(xdisplay_, None, x_root_window_, 0, 0, 0, 0, |
563 bounds_.x() + location.x(), | 567 bounds_.x() + location.x(), |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 } | 672 } |
669 | 673 |
670 namespace test { | 674 namespace test { |
671 | 675 |
672 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { | 676 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { |
673 default_override_redirect = override_redirect; | 677 default_override_redirect = override_redirect; |
674 } | 678 } |
675 | 679 |
676 } // namespace test | 680 } // namespace test |
677 } // namespace aura | 681 } // namespace aura |
OLD | NEW |