Chromium Code Reviews| 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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 { | 808 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { |
| 809 return false; | 809 return true; |
|
jackhou1
2014/07/22 05:35:35
I don't think this works on Linux, (it might not b
| |
| 810 } | 810 } |
| 811 | 811 |
| 812 //////////////////////////////////////////////////////////////////////////////// | 812 //////////////////////////////////////////////////////////////////////////////// |
| 813 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: | 813 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: |
| 814 | 814 |
| 815 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { | 815 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { |
| 816 return this; | 816 return this; |
| 817 } | 817 } |
| 818 | 818 |
| 819 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { | 819 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1838 if (linux_ui) { | 1838 if (linux_ui) { |
| 1839 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1839 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 1840 if (native_theme) | 1840 if (native_theme) |
| 1841 return native_theme; | 1841 return native_theme; |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 return ui::NativeTheme::instance(); | 1844 return ui::NativeTheme::instance(); |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 } // namespace views | 1847 } // namespace views |
| OLD | NEW |