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

Side by Side Diff: ash/wm/system_background_controller.cc

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/wm/system_background_controller.h ('k') | ash/wm/system_gesture_event_filter.h » ('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/wm/system_background_controller.h" 5 #include "ash/wm/system_background_controller.h"
6 6
7 #include "ui/aura/window.h" 7 #include "ui/aura/window.h"
8 #include "ui/compositor/layer.h" 8 #include "ui/compositor/layer.h"
9 #include "ui/compositor/layer_type.h" 9 #include "ui/compositor/layer_type.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace internal {
13 12
14 SystemBackgroundController::SystemBackgroundController( 13 SystemBackgroundController::SystemBackgroundController(
15 aura::Window* root_window, 14 aura::Window* root_window,
16 SkColor color) 15 SkColor color)
17 : root_window_(root_window), 16 : root_window_(root_window),
18 layer_(new ui::Layer(ui::LAYER_SOLID_COLOR)) { 17 layer_(new ui::Layer(ui::LAYER_SOLID_COLOR)) {
19 root_window_->AddObserver(this); 18 root_window_->AddObserver(this);
20 layer_->SetColor(color); 19 layer_->SetColor(color);
21 20
22 ui::Layer* root_layer = root_window_->layer(); 21 ui::Layer* root_layer = root_window_->layer();
(...skipping 11 matching lines...) Expand all
34 } 33 }
35 34
36 void SystemBackgroundController::OnWindowBoundsChanged( 35 void SystemBackgroundController::OnWindowBoundsChanged(
37 aura::Window* root, 36 aura::Window* root,
38 const gfx::Rect& old_bounds, 37 const gfx::Rect& old_bounds,
39 const gfx::Rect& new_bounds) { 38 const gfx::Rect& new_bounds) {
40 DCHECK_EQ(root_window_, root); 39 DCHECK_EQ(root_window_, root);
41 layer_->SetBounds(gfx::Rect(root_window_->layer()->bounds().size())); 40 layer_->SetBounds(gfx::Rect(root_window_->layer()->bounds().size()));
42 } 41 }
43 42
44 } // namespace internal
45 } // namespace ash 43 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/system_background_controller.h ('k') | ash/wm/system_gesture_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698