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

Side by Side Diff: ash/wm/base_layout_manager.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/accelerators/accelerator_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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 intptr_t old) OVERRIDE; 65 intptr_t old) OVERRIDE;
66 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 66 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
67 67
68 protected: 68 protected:
69 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. 69 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes.
70 virtual void ShowStateChanged(aura::Window* window, 70 virtual void ShowStateChanged(aura::Window* window,
71 ui::WindowShowState last_show_state); 71 ui::WindowShowState last_show_state);
72 72
73 private: 73 private:
74 // Update window bounds based on a change in show state. 74 // Update window bounds based on a change in show state.
75 void UpdateBoundsFromShowState(aura::Window* window); 75 void UpdateBoundsFromShowState(aura::Window* window, bool animate);
76
77 // Updates window bounds and animates when requested and possible.
78 void MaybeAnimateToBounds(aura::Window* window,
79 bool animate,
80 const gfx::Rect& new_bounds);
76 81
77 // 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
78 // work area insets. 83 // work area insets.
79 void AdjustWindowSizesForScreenChange(); 84 void AdjustWindowSizesForScreenChange();
80 85
81 // Set of windows we're listening to. 86 // Set of windows we're listening to.
82 WindowSet windows_; 87 WindowSet windows_;
83 88
84 aura::RootWindow* root_window_; 89 aura::RootWindow* root_window_;
85 90
86 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); 91 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager);
87 }; 92 };
88 93
89 } // namespace internal 94 } // namespace internal
90 } // namespace ash 95 } // namespace ash
91 96
92 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ 97 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/wm/base_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698