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

Side by Side Diff: ash/wm/toplevel_layout_manager.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/toplevel_layout_manager.h" 5 #include "ash/wm/toplevel_layout_manager.h"
6 6
7 #include "ash/wm/shelf_layout_manager.h" 7 #include "ash/wm/shelf_layout_manager.h"
8 #include "ash/wm/window_util.h" 8 #include "ash/wm/window_util.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/base/ui_base_types.h" 11 #include "ui/base/ui_base_types.h"
12 #include "ui/gfx/screen.h" 12 #include "ui/gfx/screen.h"
13 13
14 namespace aura_shell { 14 namespace ash {
15 namespace internal { 15 namespace internal {
16 16
17 ToplevelLayoutManager::ToplevelLayoutManager() : shelf_(NULL) { 17 ToplevelLayoutManager::ToplevelLayoutManager() : shelf_(NULL) {
18 } 18 }
19 19
20 ToplevelLayoutManager::~ToplevelLayoutManager() { 20 ToplevelLayoutManager::~ToplevelLayoutManager() {
21 for (Windows::const_iterator i = windows_.begin(); i != windows_.end(); ++i) 21 for (Windows::const_iterator i = windows_.begin(); i != windows_.end(); ++i)
22 (*i)->RemoveObserver(this); 22 (*i)->RemoveObserver(this);
23 } 23 }
24 24
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 } 68 }
69 69
70 void ToplevelLayoutManager::UpdateShelfVisibility() { 70 void ToplevelLayoutManager::UpdateShelfVisibility() {
71 if (!shelf_) 71 if (!shelf_)
72 return; 72 return;
73 shelf_->SetVisible(!HasFullscreenWindow(windows_)); 73 shelf_->SetVisible(!HasFullscreenWindow(windows_));
74 } 74 }
75 75
76 } // namespace internal 76 } // namespace internal
77 } // namespace aura_shell 77 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698