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 22 matching lines...) Expand all Loading... |
33 #include "ui/gfx/display.h" | 33 #include "ui/gfx/display.h" |
34 #include "ui/gfx/geometry/insets.h" | 34 #include "ui/gfx/geometry/insets.h" |
35 #include "ui/gfx/geometry/size_conversions.h" | 35 #include "ui/gfx/geometry/size_conversions.h" |
36 #include "ui/gfx/image/image_skia.h" | 36 #include "ui/gfx/image/image_skia.h" |
37 #include "ui/gfx/image/image_skia_rep.h" | 37 #include "ui/gfx/image/image_skia_rep.h" |
38 #include "ui/gfx/path.h" | 38 #include "ui/gfx/path.h" |
39 #include "ui/gfx/path_x11.h" | 39 #include "ui/gfx/path_x11.h" |
40 #include "ui/gfx/screen.h" | 40 #include "ui/gfx/screen.h" |
41 #include "ui/native_theme/native_theme.h" | 41 #include "ui/native_theme/native_theme.h" |
42 #include "ui/views/corewm/tooltip_aura.h" | 42 #include "ui/views/corewm/tooltip_aura.h" |
43 #include "ui/views/ime/input_method.h" | |
44 #include "ui/views/linux_ui/linux_ui.h" | 43 #include "ui/views/linux_ui/linux_ui.h" |
45 #include "ui/views/views_delegate.h" | 44 #include "ui/views/views_delegate.h" |
46 #include "ui/views/views_switches.h" | 45 #include "ui/views/views_switches.h" |
47 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" | 46 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" |
48 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" | 47 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" |
49 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 48 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
50 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" | 49 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" |
51 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" | 50 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
52 #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h" | 51 #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h" |
53 #include "ui/views/widget/desktop_aura/x11_pointer_grab.h" | 52 #include "ui/views/widget/desktop_aura/x11_pointer_grab.h" |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
891 XSetWMHints(xdisplay_, xwindow_, hints.get()); | 890 XSetWMHints(xdisplay_, xwindow_, hints.get()); |
892 | 891 |
893 urgency_hint_set_ = flash_frame; | 892 urgency_hint_set_ = flash_frame; |
894 } | 893 } |
895 | 894 |
896 void DesktopWindowTreeHostX11::OnRootViewLayout() { | 895 void DesktopWindowTreeHostX11::OnRootViewLayout() { |
897 UpdateMinAndMaxSize(); | 896 UpdateMinAndMaxSize(); |
898 } | 897 } |
899 | 898 |
900 void DesktopWindowTreeHostX11::OnNativeWidgetFocus() { | 899 void DesktopWindowTreeHostX11::OnNativeWidgetFocus() { |
901 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); | |
902 } | 900 } |
903 | 901 |
904 void DesktopWindowTreeHostX11::OnNativeWidgetBlur() { | 902 void DesktopWindowTreeHostX11::OnNativeWidgetBlur() { |
905 if (xwindow_) | |
906 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); | |
907 } | 903 } |
908 | 904 |
909 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { | 905 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { |
910 return false; | 906 return false; |
911 } | 907 } |
912 | 908 |
913 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { | 909 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { |
914 return false; | 910 return false; |
915 } | 911 } |
916 | 912 |
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 if (linux_ui) { | 2040 if (linux_ui) { |
2045 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 2041 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
2046 if (native_theme) | 2042 if (native_theme) |
2047 return native_theme; | 2043 return native_theme; |
2048 } | 2044 } |
2049 | 2045 |
2050 return ui::NativeTheme::instance(); | 2046 return ui::NativeTheme::instance(); |
2051 } | 2047 } |
2052 | 2048 |
2053 } // namespace views | 2049 } // namespace views |
OLD | NEW |