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

Side by Side Diff: ash/wm/compact_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/compact_layout_manager.h" 5 #include "ash/wm/compact_layout_manager.h"
6 6
7 #include "ash/wm/window_util.h" 7 #include "ash/wm/window_util.h"
8 #include "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 #include "ui/gfx/screen.h" 11 #include "ui/gfx/screen.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 namespace aura_shell { 14 namespace ash {
15 namespace internal { 15 namespace internal {
16 16
17 CompactLayoutManager::CompactLayoutManager(views::Widget* status_area_widget) 17 CompactLayoutManager::CompactLayoutManager(views::Widget* status_area_widget)
18 : status_area_widget_(status_area_widget) { 18 : status_area_widget_(status_area_widget) {
19 } 19 }
20 20
21 CompactLayoutManager::~CompactLayoutManager() { 21 CompactLayoutManager::~CompactLayoutManager() {
22 for (Windows::const_iterator i = windows_.begin(); i != windows_.end(); ++i) 22 for (Windows::const_iterator i = windows_.begin(); i != windows_.end(); ++i)
23 (*i)->RemoveObserver(this); 23 (*i)->RemoveObserver(this);
24 } 24 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Full screen windows should hide the status area widget. 75 // Full screen windows should hide the status area widget.
76 bool fullscreen_window = HasFullscreenWindow(windows_); 76 bool fullscreen_window = HasFullscreenWindow(windows_);
77 bool widget_visible = status_area_widget_->IsVisible(); 77 bool widget_visible = status_area_widget_->IsVisible();
78 if (fullscreen_window && widget_visible) 78 if (fullscreen_window && widget_visible)
79 status_area_widget_->Hide(); 79 status_area_widget_->Hide();
80 else if (!fullscreen_window && !widget_visible) 80 else if (!fullscreen_window && !widget_visible)
81 status_area_widget_->Show(); 81 status_area_widget_->Show();
82 } 82 }
83 83
84 } // namespace internal 84 } // namespace internal
85 } // namespace aura_shell 85 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698