| 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/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 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void DesktopWindowTreeHostX11::SizeConstraintsChanged() { | 1166 void DesktopWindowTreeHostX11::SizeConstraintsChanged() { |
| 1167 UpdateMinAndMaxSize(); | 1167 UpdateMinAndMaxSize(); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const { | 1170 bool DesktopWindowTreeHostX11::ShouldUpdateWindowTransparency() const { |
| 1171 return true; | 1171 return true; |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 bool DesktopWindowTreeHostX11::ShouldUseDesktopNativeCursorManager() const { |
| 1175 return true; |
| 1176 } |
| 1177 |
| 1174 //////////////////////////////////////////////////////////////////////////////// | 1178 //////////////////////////////////////////////////////////////////////////////// |
| 1175 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: | 1179 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: |
| 1176 | 1180 |
| 1177 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const { | 1181 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const { |
| 1178 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay(); | 1182 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay(); |
| 1179 if (IsVisible()) { | 1183 if (IsVisible()) { |
| 1180 aura::Window* win = const_cast<aura::Window*>(window()); | 1184 aura::Window* win = const_cast<aura::Window*>(window()); |
| 1181 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win); | 1185 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win); |
| 1182 } | 1186 } |
| 1183 | 1187 |
| (...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2350 if (linux_ui) { | 2354 if (linux_ui) { |
| 2351 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 2355 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 2352 if (native_theme) | 2356 if (native_theme) |
| 2353 return native_theme; | 2357 return native_theme; |
| 2354 } | 2358 } |
| 2355 | 2359 |
| 2356 return ui::NativeThemeAura::instance(); | 2360 return ui::NativeThemeAura::instance(); |
| 2357 } | 2361 } |
| 2358 | 2362 |
| 2359 } // namespace views | 2363 } // namespace views |
| OLD | NEW |