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 "ash/desktop_background/desktop_background_view.h" | 5 #include "ash/desktop_background/desktop_background_view.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/desktop_background/desktop_background_controller.h" | 10 #include "ash/desktop_background/desktop_background_controller.h" |
11 #include "ash/desktop_background/desktop_background_widget_controller.h" | 11 #include "ash/desktop_background/desktop_background_widget_controller.h" |
12 #include "ash/desktop_background/user_wallpaper_delegate.h" | 12 #include "ash/desktop_background/user_wallpaper_delegate.h" |
13 #include "ash/root_window_controller.h" | 13 #include "ash/root_window_controller.h" |
14 #include "ash/session_state_delegate.h" | 14 #include "ash/session_state_delegate.h" |
15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
16 #include "ash/shell_window_ids.h" | 16 #include "ash/shell_window_ids.h" |
17 #include "ash/wm/property_util.h" | 17 #include "ash/wm/property_util.h" |
18 #include "ash/wm/window_animations.h" | 18 #include "ash/wm/window_animations.h" |
19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "ui/aura/root_window.h" | 21 #include "ui/aura/root_window.h" |
22 #include "ui/base/resource/resource_bundle.h" | 22 #include "ui/base/resource/resource_bundle.h" |
23 #include "ui/compositor/layer.h" | 23 #include "ui/compositor/layer.h" |
24 #include "ui/compositor/layer_animation_observer.h" | 24 #include "ui/compositor/layer_animation_observer.h" |
25 #include "ui/compositor/scoped_layer_animation_settings.h" | 25 #include "ui/compositor/scoped_layer_animation_settings.h" |
26 #include "ui/gfx/canvas.h" | 26 #include "ui/gfx/canvas.h" |
27 #include "ui/gfx/image/image.h" | 27 #include "ui/gfx/image/image.h" |
28 #include "ui/views/widget/widget.h" | 28 #include "ui/views/widget/widget.h" |
29 #include "ui/views/widget/widget_observer.h" | 29 #include "ui/views/widget/widget_observer.h" |
30 | 30 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 settings.AddObserver(new ShowWallpaperAnimationObserver( | 217 settings.AddObserver(new ShowWallpaperAnimationObserver( |
218 root_window, desktop_widget, | 218 root_window, desktop_widget, |
219 wallpaper_delegate->ShouldShowInitialAnimation())); | 219 wallpaper_delegate->ShouldShowInitialAnimation())); |
220 desktop_widget->Show(); | 220 desktop_widget->Show(); |
221 desktop_widget->GetNativeView()->SetName("DesktopBackgroundView"); | 221 desktop_widget->GetNativeView()->SetName("DesktopBackgroundView"); |
222 return desktop_widget; | 222 return desktop_widget; |
223 } | 223 } |
224 | 224 |
225 } // namespace internal | 225 } // namespace internal |
226 } // namespace ash | 226 } // namespace ash |
OLD | NEW |