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

Side by Side Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 11201002: Removes worskpace 1 code. Will rename next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove constants and add back kDisableLoginAnimations Created 8 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
7
8 #include "ash/wm/base_layout_manager.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/aura/layout_manager.h"
12 #include "ui/aura/window_observer.h"
13
14 namespace aura {
15 class RootWindow;
16 class Window;
17 }
18
19 namespace gfx {
20 class Rect;
21 }
22
23 namespace ash {
24 namespace internal {
25
26 class WorkspaceManager;
27
28 // LayoutManager for top level windows when WorkspaceManager is enabled.
29 class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
30 public:
31 WorkspaceLayoutManager(aura::RootWindow* root_window,
32 WorkspaceManager* workspace_manager);
33 virtual ~WorkspaceLayoutManager();
34
35 // Returns the workspace manager for this container.
36 WorkspaceManager* workspace_manager() {
37 return workspace_manager_;
38 }
39
40 // Overridden from BaseLayoutManager:
41 virtual void OnWindowResized() OVERRIDE;
42 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
43 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
44 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
45 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
46 bool visibile) OVERRIDE;
47 virtual void SetChildBounds(aura::Window* child,
48 const gfx::Rect& requested_bounds) OVERRIDE;
49
50 // Overriden from aura::WindowObserver:
51 virtual void OnWindowPropertyChanged(aura::Window* window,
52 const void* key,
53 intptr_t old) OVERRIDE;
54 protected:
55 virtual void ShowStateChanged(aura::Window* window,
56 ui::WindowShowState last_show_state) OVERRIDE;
57
58 private:
59 // Owned by WorkspaceController.
60 WorkspaceManager* workspace_manager_;
61
62 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
63 };
64
65 } // namespace internal
66 } // namespace ash
67
68 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698