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

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

Issue 10444014: ash: Improved window maximize/restore animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix lock screen, app windows Created 8 years, 6 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/window_animations_unittest.cc ('k') | ash/wm/workspace/workspace.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef ASH_WM_WORKSPACE_H_
6 #define ASH_WM_WORKSPACE_H_ 6 #define ASH_WM_WORKSPACE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // Return true if this workspace has |window|. 60 // Return true if this workspace has |window|.
61 bool Contains(aura::Window* window) const; 61 bool Contains(aura::Window* window) const;
62 62
63 // Activates this workspace. 63 // Activates this workspace.
64 void Activate(); 64 void Activate();
65 65
66 protected: 66 protected:
67 // Sets the bounds of the specified window. 67 // Sets the bounds of the specified window.
68 void SetWindowBounds(aura::Window* window, const gfx::Rect& bounds); 68 void SetWindowBounds(aura::Window* window, const gfx::Rect& bounds);
69 69
70 // Sets the ignore window. See WorkspaceManager::set_ignored_window() for
71 // details.
72 void SetIgnoredWindow(aura::Window* window);
73
74 // Returns true if the given |window| can be added to this workspace. 70 // Returns true if the given |window| can be added to this workspace.
75 virtual bool CanAdd(aura::Window* window) const = 0; 71 virtual bool CanAdd(aura::Window* window) const = 0;
76 72
77 // Invoked from AddWindowAfter(). 73 // Invoked from AddWindowAfter().
78 virtual void OnWindowAddedAfter(aura::Window* window, 74 virtual void OnWindowAddedAfter(aura::Window* window,
79 aura::Window* after) = 0; 75 aura::Window* after) = 0;
80 76
81 // Invoked from RemoveWindow(). 77 // Invoked from RemoveWindow().
82 virtual void OnWindowRemoved(aura::Window* window) = 0; 78 virtual void OnWindowRemoved(aura::Window* window) = 0;
83 79
84 private: 80 private:
85 const Type type_; 81 const Type type_;
86 82
87 WorkspaceManager* workspace_manager_; 83 WorkspaceManager* workspace_manager_;
88 84
89 // Windows in the workspace in layout order. 85 // Windows in the workspace in layout order.
90 std::vector<aura::Window*> windows_; 86 std::vector<aura::Window*> windows_;
91 87
92 DISALLOW_COPY_AND_ASSIGN(Workspace); 88 DISALLOW_COPY_AND_ASSIGN(Workspace);
93 }; 89 };
94 90
95 typedef std::vector<Workspace*> Workspaces; 91 typedef std::vector<Workspace*> Workspaces;
96 92
97 } // namespace internal 93 } // namespace internal
98 } // namespace ash 94 } // namespace ash
99 95
100 #endif // ASH_WM_WORKSPACE_H_ 96 #endif // ASH_WM_WORKSPACE_H_
OLDNEW
« no previous file with comments | « ash/wm/window_animations_unittest.cc ('k') | ash/wm/workspace/workspace.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698