| 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 ConvertPointToNativeScreen(&point); | 961 ConvertPointToNativeScreen(&point); |
| 962 xevent.xmotion.x_root = point.x(); | 962 xevent.xmotion.x_root = point.x(); |
| 963 xevent.xmotion.y_root = point.y(); | 963 xevent.xmotion.y_root = point.y(); |
| 964 } | 964 } |
| 965 default: | 965 default: |
| 966 break; | 966 break; |
| 967 } | 967 } |
| 968 XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); | 968 XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); |
| 969 } | 969 } |
| 970 | 970 |
| 971 void DesktopWindowTreeHostX11::OnDeviceScaleFactorChanged( | |
| 972 float device_scale_factor) { | |
| 973 } | |
| 974 | |
| 975 //////////////////////////////////////////////////////////////////////////////// | 971 //////////////////////////////////////////////////////////////////////////////// |
| 976 // DesktopWindowTreeHostX11, ui::EventSource implementation: | 972 // DesktopWindowTreeHostX11, ui::EventSource implementation: |
| 977 | 973 |
| 978 ui::EventProcessor* DesktopWindowTreeHostX11::GetEventProcessor() { | 974 ui::EventProcessor* DesktopWindowTreeHostX11::GetEventProcessor() { |
| 979 return dispatcher(); | 975 return dispatcher(); |
| 980 } | 976 } |
| 981 | 977 |
| 982 //////////////////////////////////////////////////////////////////////////////// | 978 //////////////////////////////////////////////////////////////////////////////// |
| 983 // DesktopWindowTreeHostX11, private: | 979 // DesktopWindowTreeHostX11, private: |
| 984 | 980 |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 if (linux_ui) { | 1808 if (linux_ui) { |
| 1813 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1809 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 1814 if (native_theme) | 1810 if (native_theme) |
| 1815 return native_theme; | 1811 return native_theme; |
| 1816 } | 1812 } |
| 1817 | 1813 |
| 1818 return ui::NativeTheme::instance(); | 1814 return ui::NativeTheme::instance(); |
| 1819 } | 1815 } |
| 1820 | 1816 |
| 1821 } // namespace views | 1817 } // namespace views |
| OLD | NEW |