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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 798 |
799 void DesktopWindowTreeHostX11::OnNativeWidgetBlur() { | 799 void DesktopWindowTreeHostX11::OnNativeWidgetBlur() { |
800 if (xwindow_) | 800 if (xwindow_) |
801 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); | 801 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); |
802 } | 802 } |
803 | 803 |
804 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { | 804 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { |
805 return false; | 805 return false; |
806 } | 806 } |
807 | 807 |
| 808 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { |
| 809 return false; |
| 810 } |
| 811 |
808 //////////////////////////////////////////////////////////////////////////////// | 812 //////////////////////////////////////////////////////////////////////////////// |
809 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: | 813 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: |
810 | 814 |
811 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { | 815 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { |
812 return this; | 816 return this; |
813 } | 817 } |
814 | 818 |
815 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { | 819 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { |
816 return xwindow_; | 820 return xwindow_; |
817 } | 821 } |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1834 if (linux_ui) { | 1838 if (linux_ui) { |
1835 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1839 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
1836 if (native_theme) | 1840 if (native_theme) |
1837 return native_theme; | 1841 return native_theme; |
1838 } | 1842 } |
1839 | 1843 |
1840 return ui::NativeTheme::instance(); | 1844 return ui::NativeTheme::instance(); |
1841 } | 1845 } |
1842 | 1846 |
1843 } // namespace views | 1847 } // namespace views |
OLD | NEW |