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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 } | 758 } |
759 } | 759 } |
760 | 760 |
761 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { | 761 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { |
762 return false; | 762 return false; |
763 } | 763 } |
764 | 764 |
765 //////////////////////////////////////////////////////////////////////////////// | 765 //////////////////////////////////////////////////////////////////////////////// |
766 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: | 766 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: |
767 | 767 |
| 768 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() { |
| 769 return this; |
| 770 } |
| 771 |
768 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { | 772 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { |
769 return xwindow_; | 773 return xwindow_; |
770 } | 774 } |
771 | 775 |
772 void DesktopWindowTreeHostX11::Show() { | 776 void DesktopWindowTreeHostX11::Show() { |
773 ShowWindowWithState(ui::SHOW_STATE_NORMAL); | 777 ShowWindowWithState(ui::SHOW_STATE_NORMAL); |
774 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true); | 778 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true); |
775 } | 779 } |
776 | 780 |
777 void DesktopWindowTreeHostX11::Hide() { | 781 void DesktopWindowTreeHostX11::Hide() { |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1634 if (linux_ui) { | 1638 if (linux_ui) { |
1635 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); | 1639 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); |
1636 if (native_theme) | 1640 if (native_theme) |
1637 return native_theme; | 1641 return native_theme; |
1638 } | 1642 } |
1639 | 1643 |
1640 return ui::NativeTheme::instance(); | 1644 return ui::NativeTheme::instance(); |
1641 } | 1645 } |
1642 | 1646 |
1643 } // namespace views | 1647 } // namespace views |
OLD | NEW |