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

Side by Side Diff: ash/wm/dock/docked_window_layout_manager.h

Issue 24108003: [Cleanup] Rename WindowSettings to WindowState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_
6 #define ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ 6 #define ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_layout_manager_observer.h" 9 #include "ash/shelf/shelf_layout_manager_observer.h"
10 #include "ash/shell_observer.h" 10 #include "ash/shell_observer.h"
11 #include "ash/wm/dock/dock_types.h" 11 #include "ash/wm/dock/dock_types.h"
12 #include "ash/wm/property_util.h"
13 #include "ash/wm/workspace/snap_types.h" 12 #include "ash/wm/workspace/snap_types.h"
14 #include "base/basictypes.h" 13 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
16 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
17 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
18 #include "base/observer_list.h" 17 #include "base/observer_list.h"
19 #include "ui/aura/client/activation_change_observer.h" 18 #include "ui/aura/client/activation_change_observer.h"
20 #include "ui/aura/layout_manager.h" 19 #include "ui/aura/layout_manager.h"
21 #include "ui/aura/window_observer.h" 20 #include "ui/aura/window_observer.h"
22 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 friend class DockedWindowLayoutManagerTest; 155 friend class DockedWindowLayoutManagerTest;
157 friend class DockedWindowResizerTest; 156 friend class DockedWindowResizerTest;
158 157
159 // Minimum width of the docked windows area. 158 // Minimum width of the docked windows area.
160 static const int kMinDockWidth; 159 static const int kMinDockWidth;
161 160
162 // Width of the gap between the docked windows and a workspace. 161 // Width of the gap between the docked windows and a workspace.
163 static const int kMinDockGap; 162 static const int kMinDockGap;
164 163
165 // Minimize / restore window and relayout. 164 // Minimize / restore window and relayout.
166 void MinimizeWindow(aura::Window* window); 165 void MinimizeDockedWindow(aura::Window* window);
167 void RestoreWindow(aura::Window* window); 166 void RestoreDockedWindow(aura::Window* window);
168 167
169 // Updates docked layout state when a window gets inside the dock. 168 // Updates docked layout state when a window gets inside the dock.
170 void OnWindowDocked(aura::Window* window); 169 void OnWindowDocked(aura::Window* window);
171 170
172 // Updates docked layout state when a window gets outside the dock. 171 // Updates docked layout state when a window gets outside the dock.
173 void OnWindowUndocked(); 172 void OnWindowUndocked();
174 173
175 // Returns true if there are any windows currently docked. 174 // Returns true if there are any windows currently docked.
176 bool IsAnyWindowDocked(); 175 bool IsAnyWindowDocked();
177 176
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Observers of dock bounds changes. 237 // Observers of dock bounds changes.
239 ObserverList<DockedWindowLayoutManagerObserver> observer_list_; 238 ObserverList<DockedWindowLayoutManagerObserver> observer_list_;
240 239
241 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); 240 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager);
242 }; 241 };
243 242
244 } // namespace internal 243 } // namespace internal
245 } // namespace ash 244 } // namespace ash
246 245
247 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ 246 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698