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

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

Issue 1998653002: Make DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() relies on argb visual flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and use USE_X11 instead of OS_LINUX Created 4 years, 6 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
« no previous file with comments | « ui/views/test/widget_test_mac.mm ('k') | ui/views/widget/widget_unittest.cc » ('j') | 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/Xatom.h> 7 #include <X11/Xatom.h>
8 #include <X11/Xregion.h> 8 #include <X11/Xregion.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 #include <X11/extensions/XInput2.h> 10 #include <X11/extensions/XInput2.h>
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 void DesktopWindowTreeHostX11::SetVisibilityChangedAnimationsEnabled( 774 void DesktopWindowTreeHostX11::SetVisibilityChangedAnimationsEnabled(
775 bool value) { 775 bool value) {
776 // Much like the previous NativeWidgetGtk, we don't have anything to do here. 776 // Much like the previous NativeWidgetGtk, we don't have anything to do here.
777 } 777 }
778 778
779 bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const { 779 bool DesktopWindowTreeHostX11::ShouldUseNativeFrame() const {
780 return use_native_frame_; 780 return use_native_frame_;
781 } 781 }
782 782
783 bool DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() const { 783 bool DesktopWindowTreeHostX11::ShouldWindowContentsBeTransparent() const {
784 return false; 784 // Ensure consistency with SetWindowTransparency().
785 return use_argb_visual_;
sadrul 2016/06/13 15:13:17 DesktopWindowTreeHostWin::ShouldWindowContentsBeTr
Julien Isorce Samsung 2016/06/13 15:53:20 I think it should not rely on ShouldUseNativeFrame
785 } 786 }
786 787
787 void DesktopWindowTreeHostX11::FrameTypeChanged() { 788 void DesktopWindowTreeHostX11::FrameTypeChanged() {
788 Widget::FrameType new_type = 789 Widget::FrameType new_type =
789 native_widget_delegate_->AsWidget()->frame_type(); 790 native_widget_delegate_->AsWidget()->frame_type();
790 if (new_type == Widget::FRAME_TYPE_DEFAULT) { 791 if (new_type == Widget::FRAME_TYPE_DEFAULT) {
791 // The default is determined by Widget::InitParams::remove_standard_frame 792 // The default is determined by Widget::InitParams::remove_standard_frame
792 // and does not change. 793 // and does not change.
793 return; 794 return;
794 } 795 }
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 if (linux_ui) { 2054 if (linux_ui) {
2054 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); 2055 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window);
2055 if (native_theme) 2056 if (native_theme)
2056 return native_theme; 2057 return native_theme;
2057 } 2058 }
2058 2059
2059 return ui::NativeThemeAura::instance(); 2060 return ui::NativeThemeAura::instance();
2060 } 2061 }
2061 2062
2062 } // namespace views 2063 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/widget_test_mac.mm ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698