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

Side by Side Diff: ash/wm/default_container_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
« no previous file with comments | « ash/wm/default_container_event_filter.cc ('k') | ash/wm/default_container_layout_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
6 #define ASH_WM_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/layout_manager.h"
13 #include "ash/ash_export.h"
14
15 namespace aura {
16 class MouseEvent;
17 class Window;
18 }
19
20 namespace gfx {
21 class Rect;
22 }
23
24 namespace ash {
25 namespace internal {
26
27 class ShowStateController;
28 class WorkspaceManager;
29
30 // LayoutManager for the default window container.
31 class ASH_EXPORT DefaultContainerLayoutManager
32 : public aura::LayoutManager {
33 public:
34 explicit DefaultContainerLayoutManager(WorkspaceManager* workspace_manager);
35 virtual ~DefaultContainerLayoutManager();
36
37 // Returns the workspace manager for this container.
38 WorkspaceManager* workspace_manager() {
39 return workspace_manager_;
40 }
41
42 // Invoked when a window receives drag event.
43 void PrepareForMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
44
45 // Invoked when a drag event didn't start any drag operation.
46 void CancelMoveOrResize(aura::Window* drag, aura::MouseEvent* event);
47
48 // Invoked when a drag event moved the |window|.
49 void ProcessMove(aura::Window* window, aura::MouseEvent* event);
50
51 // Invoked when a user finished moving window.
52 void EndMove(aura::Window* drag, aura::MouseEvent* evnet);
53
54 // Invoked when a user finished resizing window.
55 void EndResize(aura::Window* drag, aura::MouseEvent* evnet);
56
57 // Overridden from aura::LayoutManager:
58 virtual void OnWindowResized() OVERRIDE;
59 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
60 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
61 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
62 bool visibile) OVERRIDE;
63 virtual void SetChildBounds(aura::Window* child,
64 const gfx::Rect& requested_bounds) OVERRIDE;
65 private:
66 // Owned by WorkspaceController.
67 WorkspaceManager* workspace_manager_;
68
69 scoped_ptr<ShowStateController> show_state_controller_;
70
71 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager);
72 };
73
74 } // namespace internal
75 } // namespace ash
76
77 #endif // ASH_WM_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/default_container_event_filter.cc ('k') | ash/wm/default_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698