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

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

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/always_on_top_controller.h" 5 #include "ash/wm/always_on_top_controller.h"
6 6
7 #include "ui/aura/client/aura_constants.h" 7 #include "ui/aura/client/aura_constants.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 9
10 namespace aura_shell { 10 namespace ash {
11 namespace internal { 11 namespace internal {
12 12
13 AlwaysOnTopController::AlwaysOnTopController() 13 AlwaysOnTopController::AlwaysOnTopController()
14 : default_container_(NULL), 14 : default_container_(NULL),
15 always_on_top_container_(NULL) { 15 always_on_top_container_(NULL) {
16 } 16 }
17 17
18 AlwaysOnTopController::~AlwaysOnTopController() { 18 AlwaysOnTopController::~AlwaysOnTopController() {
19 if (default_container_) 19 if (default_container_)
20 default_container_->RemoveObserver(this); 20 default_container_->RemoveObserver(this);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) { 71 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) {
72 if (window == default_container_) 72 if (window == default_container_)
73 default_container_ = NULL; 73 default_container_ = NULL;
74 if (window == always_on_top_container_) 74 if (window == always_on_top_container_)
75 always_on_top_container_ = NULL; 75 always_on_top_container_ = NULL;
76 } 76 }
77 77
78 } // namespace internal 78 } // namespace internal
79 } // namespace aura_shell 79 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698