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

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

Issue 375183002: Add app.window.alphaEnabled() and onAlphaEnabledChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: x11 Created 6 years, 5 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 | Annotate | Revision Log
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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 if (xwindow_) { 824 if (xwindow_) {
825 x11_capture_.reset(); 825 x11_capture_.reset();
826 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); 826 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur();
827 } 827 }
828 } 828 }
829 829
830 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { 830 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const {
831 return false; 831 return false;
832 } 832 }
833 833
834 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const {
835 return false;
836 }
837
834 //////////////////////////////////////////////////////////////////////////////// 838 ////////////////////////////////////////////////////////////////////////////////
835 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 839 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
836 840
837 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { 841 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() {
838 return this; 842 return this;
839 } 843 }
840 844
841 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { 845 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() {
842 return xwindow_; 846 return xwindow_;
843 } 847 }
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 if (linux_ui) { 1818 if (linux_ui) {
1815 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); 1819 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window);
1816 if (native_theme) 1820 if (native_theme)
1817 return native_theme; 1821 return native_theme;
1818 } 1822 }
1819 1823
1820 return ui::NativeTheme::instance(); 1824 return ui::NativeTheme::instance();
1821 } 1825 }
1822 1826
1823 } // namespace views 1827 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698