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

Side by Side Diff: ash/wm/toplevel_layout_manager.h

Issue 9600006: Aura: Remove overlapping window mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/workspace/workspace_event_filter_unittest.cc » ('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 #ifndef ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_
6 #define ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_ 6 #define ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/wm/base_layout_manager.h" 10 #include "ash/wm/base_layout_manager.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace internal { 15 namespace internal {
16 16
17 class ShelfLayoutManager; 17 class ShelfLayoutManager;
18 18
19 // ToplevelLayoutManager is the LayoutManager installed on a container that 19 // ToplevelLayoutManager is the LayoutManager installed on a container that
20 // hosts what the shell considers to be top-level windows. 20 // hosts what the shell considers to be top-level windows.
21 // 21 //
22 // ToplevelLayoutManager is used if the WorkspaceManager is not enabled and 22 // ToplevelLayoutManager is used if the WorkspaceManager is not enabled and
23 // compact window mode is not enabled. It is intended to implement the simplest 23 // compact window mode is not enabled. It is intended to implement the simplest
24 // possible window management code. If you have a more complex window mode 24 // possible window management code. If you have a more complex window mode
25 // please implement a new LayoutManager for it. 25 // please implement a new LayoutManager for it.
26 //
27 // TODO(jamescook): If we're happy with managed window mode, this class and
28 // its tests can be deleted.
26 class ASH_EXPORT ToplevelLayoutManager : public BaseLayoutManager { 29 class ASH_EXPORT ToplevelLayoutManager : public BaseLayoutManager {
27 public: 30 public:
28 ToplevelLayoutManager(); 31 ToplevelLayoutManager();
29 virtual ~ToplevelLayoutManager(); 32 virtual ~ToplevelLayoutManager();
30 33
31 void set_shelf(ShelfLayoutManager* shelf) { shelf_ = shelf; } 34 void set_shelf(ShelfLayoutManager* shelf) { shelf_ = shelf; }
32 35
33 // LayoutManager overrides: 36 // LayoutManager overrides:
34 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 37 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
35 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 38 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
(...skipping 16 matching lines...) Expand all
52 // we're not using a shelf. 55 // we're not using a shelf.
53 ShelfLayoutManager* shelf_; 56 ShelfLayoutManager* shelf_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(ToplevelLayoutManager); 58 DISALLOW_COPY_AND_ASSIGN(ToplevelLayoutManager);
56 }; 59 };
57 60
58 } // namespace ash 61 } // namespace ash
59 } // namespace internal 62 } // namespace internal
60 63
61 #endif // ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_ 64 #endif // ASH_WM_TOPLEVEL_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/workspace/workspace_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698