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

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

Issue 9565004: Revert 124385 - Allows tab dragging when maximized on aura. To fix it I made it so (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
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_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_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 "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/aura/layout_manager.h" 12 #include "ui/aura/layout_manager.h"
13 #include "ui/aura/window_observer.h"
14 13
15 namespace aura { 14 namespace aura {
16 class MouseEvent; 15 class MouseEvent;
17 class Window; 16 class Window;
18 } 17 }
19 18
20 namespace gfx { 19 namespace gfx {
21 class Rect; 20 class Rect;
22 } 21 }
23 22
24 namespace ash { 23 namespace ash {
25 namespace internal { 24 namespace internal {
26 25
27 class WorkspaceManager; 26 class WorkspaceManager;
28 27
29 // LayoutManager for top level windows when WorkspaceManager is enabled. 28 // LayoutManager for top level windows when WorkspaceManager is enabled.
30 class ASH_EXPORT WorkspaceLayoutManager : public aura::LayoutManager, 29 class ASH_EXPORT WorkspaceLayoutManager : public aura::LayoutManager {
31 public aura::WindowObserver {
32 public: 30 public:
33 explicit WorkspaceLayoutManager(WorkspaceManager* workspace_manager); 31 explicit WorkspaceLayoutManager(WorkspaceManager* workspace_manager);
34 virtual ~WorkspaceLayoutManager(); 32 virtual ~WorkspaceLayoutManager();
35 33
36 // Returns the workspace manager for this container. 34 // Returns the workspace manager for this container.
37 WorkspaceManager* workspace_manager() { 35 WorkspaceManager* workspace_manager() {
38 return workspace_manager_; 36 return workspace_manager_;
39 } 37 }
40 38
41 // Overridden from aura::LayoutManager: 39 // Overridden from aura::LayoutManager:
42 virtual void OnWindowResized() OVERRIDE; 40 virtual void OnWindowResized() OVERRIDE;
43 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 41 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
44 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 42 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
45 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 43 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
46 bool visibile) OVERRIDE; 44 bool visibile) OVERRIDE;
47 virtual void SetChildBounds(aura::Window* child, 45 virtual void SetChildBounds(aura::Window* child,
48 const gfx::Rect& requested_bounds) OVERRIDE; 46 const gfx::Rect& requested_bounds) OVERRIDE;
49 47
50 // Overriden from aura::WindowObserver:
51 virtual void OnWindowPropertyChanged(aura::Window* window,
52 const void* key,
53 intptr_t old) OVERRIDE;
54
55 private: 48 private:
56 // Owned by WorkspaceController. 49 // Owned by WorkspaceController.
57 WorkspaceManager* workspace_manager_; 50 WorkspaceManager* workspace_manager_;
58 51
59 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); 52 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
60 }; 53 };
61 54
62 } // namespace internal 55 } // namespace internal
63 } // namespace ash 56 } // namespace ash
64 57
65 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 58 #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