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

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

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: cleanup Created 3 years, 10 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 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 } 1181 }
1182 1182
1183 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const { 1183 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const {
1184 return true; 1184 return true;
1185 } 1185 }
1186 1186
1187 bool DesktopWindowTreeHostX11::ShouldUseDesktopNativeCursorManager() const { 1187 bool DesktopWindowTreeHostX11::ShouldUseDesktopNativeCursorManager() const {
1188 return true; 1188 return true;
1189 } 1189 }
1190 1190
1191 bool DesktopWindowTreeHostX11::ShouldCreateVisibiltyController() const {
1192 return false;
msw 2017/02/15 01:37:29 ditto q: was it already cros-only (not used on lin
sky 2017/02/15 03:58:25 Same comment, should be true.
1193 }
1194
1191 //////////////////////////////////////////////////////////////////////////////// 1195 ////////////////////////////////////////////////////////////////////////////////
1192 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 1196 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
1193 1197
1194 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const { 1198 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const {
1195 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay(); 1199 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay();
1196 if (IsVisible()) { 1200 if (IsVisible()) {
1197 aura::Window* win = const_cast<aura::Window*>(window()); 1201 aura::Window* win = const_cast<aura::Window*>(window());
1198 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win); 1202 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win);
1199 } 1203 }
1200 1204
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
2363 2367
2364 // static 2368 // static
2365 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 2369 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
2366 internal::NativeWidgetDelegate* native_widget_delegate, 2370 internal::NativeWidgetDelegate* native_widget_delegate,
2367 DesktopNativeWidgetAura* desktop_native_widget_aura) { 2371 DesktopNativeWidgetAura* desktop_native_widget_aura) {
2368 return new DesktopWindowTreeHostX11(native_widget_delegate, 2372 return new DesktopWindowTreeHostX11(native_widget_delegate,
2369 desktop_native_widget_aura); 2373 desktop_native_widget_aura);
2370 } 2374 }
2371 2375
2372 } // namespace views 2376 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698