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

Side by Side Diff: ui/aura/window_tree_host_x11.cc

Issue 1456963002: Make browser windows override_redirect when dragging tabs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make browser windows override_redirect when dragging tabs. Created 4 years, 11 months 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
OLDNEW
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
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() {
Daniel Erat 2016/01/19 20:36:22 NOTREACHED() here too?
stapelberg 2016/01/20 13:31:09 Done.
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698