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_controller.h" | 5 #include "ash/desktop_background/desktop_background_controller.h" |
6 | 6 |
7 #include "ash/desktop_background/desktop_background_view.h" | 7 #include "ash/desktop_background/desktop_background_view.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_factory.h" | 9 #include "ash/shell_factory.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
11 #include "ash/wm/root_window_layout_manager.h" | 11 #include "ash/wm/root_window_layout_manager.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "grit/ui_resources.h" | 13 #include "grit/ui_resources.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/gfx/compositor/layer.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/compositor/layer.h" |
16 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
17 #include "ui/base/resource/resource_bundle.h" | |
18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 | 21 |
22 DesktopBackgroundController::DesktopBackgroundController() : | 22 DesktopBackgroundController::DesktopBackgroundController() : |
23 desktop_background_mode_(BACKGROUND_IMAGE) { | 23 desktop_background_mode_(BACKGROUND_IMAGE) { |
24 } | 24 } |
25 | 25 |
26 DesktopBackgroundController::~DesktopBackgroundController() { | 26 DesktopBackgroundController::~DesktopBackgroundController() { |
27 } | 27 } |
(...skipping 22 matching lines...) Expand all Loading... |
50 ui::Layer* background_layer = new ui::Layer(ui::LAYER_SOLID_COLOR); | 50 ui::Layer* background_layer = new ui::Layer(ui::LAYER_SOLID_COLOR); |
51 background_layer->SetColor(SK_ColorBLACK); | 51 background_layer->SetColor(SK_ColorBLACK); |
52 shell->GetContainer(internal::kShellWindowId_DesktopBackgroundContainer)-> | 52 shell->GetContainer(internal::kShellWindowId_DesktopBackgroundContainer)-> |
53 layer()->Add(background_layer); | 53 layer()->Add(background_layer); |
54 shell->root_window_layout()->SetBackgroundLayer(background_layer); | 54 shell->root_window_layout()->SetBackgroundLayer(background_layer); |
55 shell->root_window_layout()->SetBackgroundWidget(NULL); | 55 shell->root_window_layout()->SetBackgroundWidget(NULL); |
56 desktop_background_mode_ = BACKGROUND_SOLID_COLOR; | 56 desktop_background_mode_ = BACKGROUND_SOLID_COLOR; |
57 } | 57 } |
58 | 58 |
59 } // namespace ash | 59 } // namespace ash |
OLD | NEW |