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

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

Issue 11201002: Removes worskpace 1 code. Will rename next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove constants and add back kDisableLoginAnimations Created 8 years, 2 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/always_on_top_controller.cc ('k') | ash/wm/base_layout_manager.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_BASE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_BASE_LAYOUT_MANAGER_H_
6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 intptr_t old) OVERRIDE; 70 intptr_t old) OVERRIDE;
71 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 71 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
72 72
73 protected: 73 protected:
74 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. 74 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes.
75 virtual void ShowStateChanged(aura::Window* window, 75 virtual void ShowStateChanged(aura::Window* window,
76 ui::WindowShowState last_show_state); 76 ui::WindowShowState last_show_state);
77 77
78 private: 78 private:
79 // Update window bounds based on a change in show state. 79 // Update window bounds based on a change in show state.
80 void UpdateBoundsFromShowState(aura::Window* window, bool animate); 80 void UpdateBoundsFromShowState(aura::Window* window);
81
82 // Updates window bounds and animates when requested and possible.
83 void MaybeAnimateToBounds(aura::Window* window,
84 bool animate,
85 const gfx::Rect& new_bounds);
86 81
87 // Adjusts the window sizes when the screen changes its size or its 82 // Adjusts the window sizes when the screen changes its size or its
88 // work area insets. 83 // work area insets.
89 void AdjustWindowSizesForScreenChange(); 84 void AdjustWindowSizesForScreenChange();
90 85
91 // Set of windows we're listening to. 86 // Set of windows we're listening to.
92 WindowSet windows_; 87 WindowSet windows_;
93 88
94 aura::RootWindow* root_window_; 89 aura::RootWindow* root_window_;
95 90
96 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); 91 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager);
97 }; 92 };
98 93
99 } // namespace internal 94 } // namespace internal
100 } // namespace ash 95 } // namespace ash
101 96
102 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ 97 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/always_on_top_controller.cc ('k') | ash/wm/base_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698