| 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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 } | 843 } |
| 844 | 844 |
| 845 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { | 845 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { |
| 846 return false; | 846 return false; |
| 847 } | 847 } |
| 848 | 848 |
| 849 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { | 849 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { |
| 850 return false; | 850 return false; |
| 851 } | 851 } |
| 852 | 852 |
| 853 void DesktopWindowTreeHostX11::SizeConstraintsChanged() { |
| 854 UpdateMinAndMaxSize(); |
| 855 } |
| 856 |
| 853 //////////////////////////////////////////////////////////////////////////////// | 857 //////////////////////////////////////////////////////////////////////////////// |
| 854 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: | 858 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: |
| 855 | 859 |
| 856 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { | 860 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { |
| 857 return this; | 861 return this; |
| 858 } | 862 } |
| 859 | 863 |
| 860 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { | 864 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { |
| 861 return xwindow_; | 865 return xwindow_; |
| 862 } | 866 } |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 if (linux_ui) { | 1938 if (linux_ui) { |
| 1935 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1939 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 1936 if (native_theme) | 1940 if (native_theme) |
| 1937 return native_theme; | 1941 return native_theme; |
| 1938 } | 1942 } |
| 1939 | 1943 |
| 1940 return ui::NativeTheme::instance(); | 1944 return ui::NativeTheme::instance(); |
| 1941 } | 1945 } |
| 1942 | 1946 |
| 1943 } // namespace views | 1947 } // namespace views |
| OLD | NEW |