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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: Rejig so we can use kDesktopNativeWidgetAuraKey Created 3 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/views/widget/desktop_aura/desktop_window_tree_host_x11.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
6 6
7 #include <X11/extensions/shape.h> 7 #include <X11/extensions/shape.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/Xregion.h> 10 #include <X11/Xregion.h>
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 } 1175 }
1176 1176
1177 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const { 1177 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const {
1178 return true; 1178 return true;
1179 } 1179 }
1180 1180
1181 bool DesktopWindowTreeHostX11::ShouldUseDesktopNativeCursorManager() const { 1181 bool DesktopWindowTreeHostX11::ShouldUseDesktopNativeCursorManager() const {
1182 return true; 1182 return true;
1183 } 1183 }
1184 1184
1185 std::vector<DesktopWindowTreeHost*>
1186 DesktopWindowTreeHostX11::GetOwnedTopLevelHosts() const {
1187 return std::vector<DesktopWindowTreeHost*>(window_children_.begin(),
sky 2017/01/25 16:41:24 Do you need to recurse in all these implementation
tapted 2017/01/27 05:34:56 No - this approach means recursion is only necessa
1188 window_children_.end());
1189 }
1190
1185 //////////////////////////////////////////////////////////////////////////////// 1191 ////////////////////////////////////////////////////////////////////////////////
1186 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 1192 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
1187 1193
1188 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const { 1194 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const {
1189 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay(); 1195 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay();
1190 if (IsVisible()) { 1196 if (IsVisible()) {
1191 aura::Window* win = const_cast<aura::Window*>(window()); 1197 aura::Window* win = const_cast<aura::Window*>(window());
1192 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win); 1198 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win);
1193 } 1199 }
1194 1200
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2357 2363
2358 // static 2364 // static
2359 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 2365 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
2360 internal::NativeWidgetDelegate* native_widget_delegate, 2366 internal::NativeWidgetDelegate* native_widget_delegate,
2361 DesktopNativeWidgetAura* desktop_native_widget_aura) { 2367 DesktopNativeWidgetAura* desktop_native_widget_aura) {
2362 return new DesktopWindowTreeHostX11(native_widget_delegate, 2368 return new DesktopWindowTreeHostX11(native_widget_delegate,
2363 desktop_native_widget_aura); 2369 desktop_native_widget_aura);
2364 } 2370 }
2365 2371
2366 } // namespace views 2372 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698