Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: ash/desktop_background/desktop_background_controller.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/desktop_background/desktop_background_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/desktop_background/desktop_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698