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

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

Issue 2535753009: Couple of changes for client area (Closed)
Patch Set: nuke todo Created 4 years 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 } 1160 }
1161 1161
1162 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { 1162 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const {
1163 return use_argb_visual_; 1163 return use_argb_visual_;
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 {
1171 return true;
1172 }
1173
1170 //////////////////////////////////////////////////////////////////////////////// 1174 ////////////////////////////////////////////////////////////////////////////////
1171 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 1175 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
1172 1176
1173 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const { 1177 gfx::Transform DesktopWindowTreeHostX11::GetRootTransform() const {
1174 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay(); 1178 display::Display display = display::Screen::GetScreen()->GetPrimaryDisplay();
1175 if (IsVisible()) { 1179 if (IsVisible()) {
1176 aura::Window* win = const_cast<aura::Window*>(window()); 1180 aura::Window* win = const_cast<aura::Window*>(window());
1177 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win); 1181 display = display::Screen::GetScreen()->GetDisplayNearestWindow(win);
1178 } 1182 }
1179 1183
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 if (linux_ui) { 2350 if (linux_ui) {
2347 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); 2351 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window);
2348 if (native_theme) 2352 if (native_theme)
2349 return native_theme; 2353 return native_theme;
2350 } 2354 }
2351 2355
2352 return ui::NativeThemeAura::instance(); 2356 return ui::NativeThemeAura::instance();
2353 } 2357 }
2354 2358
2355 } // namespace views 2359 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698