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

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

Issue 10916221: Make ToplevelWindowEventFilter and WorkspaceEventFilter into event handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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_WORKSPACE2_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE2_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE2_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE2_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace gfx { 17 namespace gfx {
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 namespace internal { 22 namespace internal {
23 23
24 class WorkspaceEventFilter; 24 class WorkspaceEventHandler;
25 class WorkspaceManager2; 25 class WorkspaceManager2;
26 26
27 // Workspace is used to maintain either a single maximized windows (including 27 // Workspace is used to maintain either a single maximized windows (including
28 // transients and other windows) or any number of windows (for the 28 // transients and other windows) or any number of windows (for the
29 // desktop). Workspace is used by WorkspaceManager to manage a set of windows. 29 // desktop). Workspace is used by WorkspaceManager to manage a set of windows.
30 class ASH_EXPORT Workspace2 { 30 class ASH_EXPORT Workspace2 {
31 public: 31 public:
32 Workspace2(WorkspaceManager2* manager, 32 Workspace2(WorkspaceManager2* manager,
33 aura::Window* parent, 33 aura::Window* parent,
34 bool is_maximized); 34 bool is_maximized);
(...skipping 19 matching lines...) Expand all
54 private: 54 private:
55 // Is this a workspace for maximized windows? 55 // Is this a workspace for maximized windows?
56 const bool is_maximized_; 56 const bool is_maximized_;
57 57
58 WorkspaceManager2* workspace_manager_; 58 WorkspaceManager2* workspace_manager_;
59 59
60 // Our Window, owned by |parent| passed to the constructor. 60 // Our Window, owned by |parent| passed to the constructor.
61 aura::Window* window_; 61 aura::Window* window_;
62 62
63 // Owned by |window_|. 63 // Owned by |window_|.
64 WorkspaceEventFilter* event_filter_; 64 WorkspaceEventHandler* event_handler_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(Workspace2); 66 DISALLOW_COPY_AND_ASSIGN(Workspace2);
67 }; 67 };
68 68
69 } // namespace internal 69 } // namespace internal
70 } // namespace ash 70 } // namespace ash
71 71
72 #endif // ASH_WM_WORKSPACE_WORKSPACE2_H_ 72 #endif // ASH_WM_WORKSPACE_WORKSPACE2_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/multi_window_resize_controller_unittest.cc ('k') | ash/wm/workspace/workspace2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698