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

Side by Side Diff: ash/wm/workspace/managed_workspace.cc

Issue 9764008: Makes the launcher auto-hide for maximized windows. This turned out to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add null checks and cleanup Created 8 years, 9 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
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/workspace/managed_workspace.h" 5 #include "ash/wm/workspace/managed_workspace.h"
6 6
7 #include "ash/wm/window_util.h" 7 #include "ash/wm/window_util.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace internal { 10 namespace internal {
11 11
12 ManagedWorkspace::ManagedWorkspace(WorkspaceManager* manager) 12 ManagedWorkspace::ManagedWorkspace(WorkspaceManager* manager)
13 : Workspace(manager, TYPE_MANAGED) { 13 : Workspace(manager, TYPE_MANAGED) {
14 } 14 }
15 15
16 ManagedWorkspace::~ManagedWorkspace() { 16 ManagedWorkspace::~ManagedWorkspace() {
17 } 17 }
18 18
19 bool ManagedWorkspace::CanAdd(aura::Window* window) const { 19 bool ManagedWorkspace::CanAdd(aura::Window* window) const {
20 return !wm::IsWindowFullscreen(window) && !wm::IsWindowMaximized(window); 20 return !wm::IsWindowFullscreen(window) && !wm::IsWindowMaximized(window);
21 } 21 }
22 22
23 void ManagedWorkspace::OnWindowAddedAfter(aura::Window* window, 23 void ManagedWorkspace::OnWindowAddedAfter(aura::Window* window,
24 aura::Window* after) { 24 aura::Window* after) {
25 } 25 }
26 26
27 void ManagedWorkspace::OnWindowRemoved(aura::Window* window) { 27 void ManagedWorkspace::OnWindowRemoved(aura::Window* window) {
28 } 28 }
29 29
30 void ManagedWorkspace::OnWorkspaceSizeChanged(const gfx::Rect& old_bounds) {
31 }
32
33 } // namespace internal 30 } // namespace internal
34 } // namespace ash 31 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698