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

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

Issue 9226040: Renames and moves some workspace related classes to the workspace (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 11 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) 2011 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_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
6 #define ASH_WM_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/layout_manager.h" 12 #include "ui/aura/layout_manager.h"
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 14
15 namespace aura { 15 namespace aura {
16 class MouseEvent; 16 class MouseEvent;
17 class Window; 17 class Window;
18 } 18 }
19 19
20 namespace gfx { 20 namespace gfx {
21 class Rect; 21 class Rect;
22 } 22 }
23 23
24 namespace ash { 24 namespace ash {
25 namespace internal { 25 namespace internal {
26 26
27 class ShowStateController; 27 class ShowStateController;
28 class WorkspaceManager; 28 class WorkspaceManager;
29 29
30 // LayoutManager for the default window container. 30 // LayoutManager for the default window container.
31 class ASH_EXPORT DefaultContainerLayoutManager 31 class ASH_EXPORT WorkspaceLayoutManager : public aura::LayoutManager {
32 : public aura::LayoutManager {
33 public: 32 public:
34 explicit DefaultContainerLayoutManager(WorkspaceManager* workspace_manager); 33 explicit WorkspaceLayoutManager(WorkspaceManager* workspace_manager);
35 virtual ~DefaultContainerLayoutManager(); 34 virtual ~WorkspaceLayoutManager();
36 35
37 // Returns the workspace manager for this container. 36 // Returns the workspace manager for this container.
38 WorkspaceManager* workspace_manager() { 37 WorkspaceManager* workspace_manager() {
39 return workspace_manager_; 38 return workspace_manager_;
40 } 39 }
41 40
42 // Invoked when a window receives drag event. 41 // Invoked when a window receives drag event.
43 void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event); 42 void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
44 43
45 // Invoked when a drag event didn't start any drag operation. 44 // Invoked when a drag event didn't start any drag operation.
(...skipping 15 matching lines...) Expand all
61 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 60 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
62 bool visibile) OVERRIDE; 61 bool visibile) OVERRIDE;
63 virtual void SetChildBounds(aura::Window* child, 62 virtual void SetChildBounds(aura::Window* child,
64 const gfx::Rect& requested_bounds) OVERRIDE; 63 const gfx::Rect& requested_bounds) OVERRIDE;
65 private: 64 private:
66 // Owned by WorkspaceController. 65 // Owned by WorkspaceController.
67 WorkspaceManager* workspace_manager_; 66 WorkspaceManager* workspace_manager_;
68 67
69 scoped_ptr<ShowStateController> show_state_controller_; 68 scoped_ptr<ShowStateController> show_state_controller_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager); 70 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
72 }; 71 };
73 72
74 } // namespace internal 73 } // namespace internal
75 } // namespace ash 74 } // namespace ash
76 75
77 #endif // ASH_WM_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ 76 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698