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_root_window_host_linux.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_linux.h" |
6 | 6 |
7 #include <X11/extensions/XInput2.h> | 7 #include <X11/extensions/XInput2.h> |
8 #include <X11/Xatom.h> | 8 #include <X11/Xatom.h> |
9 #include <X11/Xutil.h> | 9 #include <X11/Xutil.h> |
10 | 10 |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
834 XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); | 834 XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); |
835 } | 835 } |
836 | 836 |
837 void DesktopRootWindowHostLinux::OnDeviceScaleFactorChanged( | 837 void DesktopRootWindowHostLinux::OnDeviceScaleFactorChanged( |
838 float device_scale_factor) { | 838 float device_scale_factor) { |
839 } | 839 } |
840 | 840 |
841 void DesktopRootWindowHostLinux::PrepareForShutdown() { | 841 void DesktopRootWindowHostLinux::PrepareForShutdown() { |
842 } | 842 } |
843 | 843 |
844 void DesktopRootWindowHostLinux::SetHostWindowProperty(const std::string& name, | |
845 int value) { | |
Daniel Erat
2013/01/30 21:04:27
nit: NOTIMPLEMENTED()
| |
846 } | |
847 | |
844 //////////////////////////////////////////////////////////////////////////////// | 848 //////////////////////////////////////////////////////////////////////////////// |
845 // DesktopRootWindowHostLinux, MessageLoop::Dispatcher implementation: | 849 // DesktopRootWindowHostLinux, MessageLoop::Dispatcher implementation: |
846 | 850 |
847 bool DesktopRootWindowHostLinux::Dispatch(const base::NativeEvent& event) { | 851 bool DesktopRootWindowHostLinux::Dispatch(const base::NativeEvent& event) { |
848 XEvent* xev = event; | 852 XEvent* xev = event; |
849 | 853 |
850 // May want to factor CheckXEventForConsistency(xev); into a common location | 854 // May want to factor CheckXEventForConsistency(xev); into a common location |
851 // since it is called here. | 855 // since it is called here. |
852 switch (xev->type) { | 856 switch (xev->type) { |
853 case Expose: | 857 case Expose: |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1078 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 1082 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
1079 internal::NativeWidgetDelegate* native_widget_delegate, | 1083 internal::NativeWidgetDelegate* native_widget_delegate, |
1080 DesktopNativeWidgetAura* desktop_native_widget_aura, | 1084 DesktopNativeWidgetAura* desktop_native_widget_aura, |
1081 const gfx::Rect& initial_bounds) { | 1085 const gfx::Rect& initial_bounds) { |
1082 return new DesktopRootWindowHostLinux(native_widget_delegate, | 1086 return new DesktopRootWindowHostLinux(native_widget_delegate, |
1083 desktop_native_widget_aura, | 1087 desktop_native_widget_aura, |
1084 initial_bounds); | 1088 initial_bounds); |
1085 } | 1089 } |
1086 | 1090 |
1087 } // namespace views | 1091 } // namespace views |
OLD | NEW |