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

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

Issue 12441010: Attach panel while dragging to bring it in front of other panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get workspace event handler from workspace controller. Created 7 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_CONTROLLER_H_ 5 #ifndef ASH_WM_WORKSPACE_CONTROLLER_H_
6 #define ASH_WM_WORKSPACE_CONTROLLER_H_ 6 #define ASH_WM_WORKSPACE_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/workspace/workspace_types.h" 9 #include "ash/wm/workspace/workspace_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 WorkspaceWindowState GetWindowState() const; 35 WorkspaceWindowState GetWindowState() const;
36 36
37 void SetShelf(ShelfLayoutManager* shelf); 37 void SetShelf(ShelfLayoutManager* shelf);
38 38
39 // Sets the active workspace based on |window|. 39 // Sets the active workspace based on |window|.
40 void SetActiveWorkspaceByWindow(aura::Window* window); 40 void SetActiveWorkspaceByWindow(aura::Window* window);
41 41
42 // Returns the container window for the active workspace, never NULL. 42 // Returns the container window for the active workspace, never NULL.
43 aura::Window* GetActiveWorkspaceWindow(); 43 aura::Window* GetActiveWorkspaceWindow();
44 44
45 WorkspaceEventHandler* GetEventHandlerForWindow(aura::Window* window);
sky 2013/03/14 20:34:46 I have tried to keep the surface area of API expos
flackr 2013/03/14 20:42:04 I could cast it to a ToplevelWindowEventHandler* b
46
45 // See description in WorkspaceManager::GetParentForNewWindow(). 47 // See description in WorkspaceManager::GetParentForNewWindow().
46 aura::Window* GetParentForNewWindow(aura::Window* window); 48 aura::Window* GetParentForNewWindow(aura::Window* window);
47 49
48 // Starts the animation that occurs on first login. 50 // Starts the animation that occurs on first login.
49 void DoInitialAnimation(); 51 void DoInitialAnimation();
50 52
51 // aura::client::ActivationChangeObserver overrides: 53 // aura::client::ActivationChangeObserver overrides:
52 virtual void OnWindowActivated(aura::Window* gained_active, 54 virtual void OnWindowActivated(aura::Window* gained_active,
53 aura::Window* lost_active) OVERRIDE; 55 aura::Window* lost_active) OVERRIDE;
54 56
55 private: 57 private:
56 friend class WorkspaceControllerTestHelper; 58 friend class WorkspaceControllerTestHelper;
57 59
58 aura::Window* viewport_; 60 aura::Window* viewport_;
59 61
60 scoped_ptr<WorkspaceManager> workspace_manager_; 62 scoped_ptr<WorkspaceManager> workspace_manager_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); 64 DISALLOW_COPY_AND_ASSIGN(WorkspaceController);
63 }; 65 };
64 66
65 } // namespace internal 67 } // namespace internal
66 } // namespace ash 68 } // namespace ash
67 69
68 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ 70 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698