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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "ui/events/null_event_targeter.h" | 42 #include "ui/events/null_event_targeter.h" |
43 #include "ui/events/platform/platform_event_source.h" | 43 #include "ui/events/platform/platform_event_source.h" |
44 #include "ui/events/platform/x11/x11_event_source.h" | 44 #include "ui/events/platform/x11/x11_event_source.h" |
45 #include "ui/gfx/geometry/insets.h" | 45 #include "ui/gfx/geometry/insets.h" |
46 #include "ui/gfx/geometry/size_conversions.h" | 46 #include "ui/gfx/geometry/size_conversions.h" |
47 #include "ui/gfx/image/image_skia.h" | 47 #include "ui/gfx/image/image_skia.h" |
48 #include "ui/gfx/image/image_skia_rep.h" | 48 #include "ui/gfx/image/image_skia_rep.h" |
49 #include "ui/gfx/path.h" | 49 #include "ui/gfx/path.h" |
50 #include "ui/gfx/path_x11.h" | 50 #include "ui/gfx/path_x11.h" |
51 #include "ui/native_theme/native_theme.h" | 51 #include "ui/native_theme/native_theme.h" |
52 #include "ui/native_theme/native_theme_aura.h" | |
53 #include "ui/views/corewm/tooltip_aura.h" | 52 #include "ui/views/corewm/tooltip_aura.h" |
54 #include "ui/views/linux_ui/linux_ui.h" | 53 #include "ui/views/linux_ui/linux_ui.h" |
55 #include "ui/views/views_delegate.h" | 54 #include "ui/views/views_delegate.h" |
56 #include "ui/views/views_switches.h" | 55 #include "ui/views/views_switches.h" |
57 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" | 56 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" |
58 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" | 57 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" |
59 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 58 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
60 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" | 59 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" |
61 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" | 60 #include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
62 #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h" | 61 #include "ui/views/widget/desktop_aura/x11_desktop_window_move_client.h" |
(...skipping 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2338 | 2337 |
2339 // static | 2338 // static |
2340 ui::NativeTheme* DesktopWindowTreeHost::GetNativeTheme(aura::Window* window) { | 2339 ui::NativeTheme* DesktopWindowTreeHost::GetNativeTheme(aura::Window* window) { |
2341 const LinuxUI* linux_ui = LinuxUI::instance(); | 2340 const LinuxUI* linux_ui = LinuxUI::instance(); |
2342 if (linux_ui) { | 2341 if (linux_ui) { |
2343 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 2342 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
2344 if (native_theme) | 2343 if (native_theme) |
2345 return native_theme; | 2344 return native_theme; |
2346 } | 2345 } |
2347 | 2346 |
2348 return ui::NativeThemeAura::instance(); | 2347 return ui::NativeTheme::GetInstanceForNativeUi(); |
2349 } | 2348 } |
2350 | 2349 |
2351 } // namespace views | 2350 } // namespace views |
OLD | NEW |