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

Side by Side Diff: ash/host/ash_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 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 "ash/host/ash_window_tree_host_x11.h" 5 #include "ash/host/ash_window_tree_host_x11.h"
6 6
7 #include <X11/extensions/Xfixes.h> 7 #include <X11/extensions/Xfixes.h>
8 #include <X11/extensions/XInput2.h> 8 #include <X11/extensions/XInput2.h>
9 #include <X11/Xatom.h> 9 #include <X11/Xatom.h>
10 #include <X11/Xlib.h> 10 #include <X11/Xlib.h>
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 ConfineCursorToRootWindow(); 119 ConfineCursorToRootWindow();
120 } 120 }
121 } 121 }
122 122
123 gfx::Insets AshWindowTreeHostX11::GetHostInsets() const { 123 gfx::Insets AshWindowTreeHostX11::GetHostInsets() const {
124 return transformer_helper_.GetHostInsets(); 124 return transformer_helper_.GetHostInsets();
125 } 125 }
126 126
127 aura::WindowTreeHost* AshWindowTreeHostX11::AsWindowTreeHost() { return this; } 127 aura::WindowTreeHost* AshWindowTreeHostX11::AsWindowTreeHost() { return this; }
128 128
129 void AshWindowTreeHostX11::RemapAsNormalWindow() {}
Daniel Erat 2016/01/19 20:36:22 can this call NOTREACHED()? this should never be c
stapelberg 2016/01/20 13:31:09 Done.
130
129 void AshWindowTreeHostX11::PrepareForShutdown() { 131 void AshWindowTreeHostX11::PrepareForShutdown() {
130 // Block the root window from dispatching events because it is weird for a 132 // Block the root window from dispatching events because it is weird for a
131 // ScreenPositionClient not to be attached to the root window and for 133 // ScreenPositionClient not to be attached to the root window and for
132 // ui::EventHandlers to be unable to convert the event's location to screen 134 // ui::EventHandlers to be unable to convert the event's location to screen
133 // coordinates. 135 // coordinates.
134 window()->SetEventTargeter( 136 window()->SetEventTargeter(
135 scoped_ptr<ui::EventTargeter>(new ui::NullEventTargeter)); 137 scoped_ptr<ui::EventTargeter>(new ui::NullEventTargeter));
136 138
137 if (ui::PlatformEventSource::GetInstance()) { 139 if (ui::PlatformEventSource::GetInstance()) {
138 // Block X events which are not turned into ui::Events from getting 140 // Block X events which are not turned into ui::Events from getting
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 #endif 294 #endif
293 295
294 AshWindowTreeHost* AshWindowTreeHost::Create( 296 AshWindowTreeHost* AshWindowTreeHost::Create(
295 const AshWindowTreeHostInitParams& init_params) { 297 const AshWindowTreeHostInitParams& init_params) {
296 if (init_params.offscreen) 298 if (init_params.offscreen)
297 return new AshWindowTreeHostUnified(init_params.initial_bounds); 299 return new AshWindowTreeHostUnified(init_params.initial_bounds);
298 return new AshWindowTreeHostX11(init_params.initial_bounds); 300 return new AshWindowTreeHostX11(init_params.initial_bounds);
299 } 301 }
300 302
301 } // namespace ash 303 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698