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

Side by Side Diff: ash/common/wm/overview/window_selector_item.h

Issue 2101843003: [ash-md] Animates a window closed while in overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Animates a window closed while in overview mode (comments) Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 OverviewAnimationType animation_type); 133 OverviewAnimationType animation_type);
134 134
135 // Creates the window label. 135 // Creates the window label.
136 void CreateWindowLabel(const base::string16& title); 136 void CreateWindowLabel(const base::string16& title);
137 137
138 // Updates the close button's and title label's bounds. Any change in bounds 138 // Updates the close button's and title label's bounds. Any change in bounds
139 // will be animated from the current bounds to the new bounds as per the 139 // will be animated from the current bounds to the new bounds as per the
140 // |animation_type|. 140 // |animation_type|.
141 void UpdateHeaderLayout(OverviewAnimationType animation_type); 141 void UpdateHeaderLayout(OverviewAnimationType animation_type);
142 142
143 // Animates opacity of the |transform_window_| and its caption to |opacity|
144 // using |animation_type|.
145 void AnimateOpacity(float opacity, OverviewAnimationType animation_type);
146
143 // Updates the close buttons accessibility name. 147 // Updates the close buttons accessibility name.
144 void UpdateCloseButtonAccessibilityName(); 148 void UpdateCloseButtonAccessibilityName();
145 149
146 // True if the item is being shown in the overview, false if it's being 150 // True if the item is being shown in the overview, false if it's being
147 // filtered. 151 // filtered.
148 bool dimmed_; 152 bool dimmed_;
149 153
150 // The root window this item is being displayed on. 154 // The root window this item is being displayed on.
151 WmWindow* root_window_; 155 WmWindow* root_window_;
152 156
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Pointer to the WindowSelector that owns the WindowGrid containing |this|. 192 // Pointer to the WindowSelector that owns the WindowGrid containing |this|.
189 // Guaranteed to be non-null for the lifetime of |this|. 193 // Guaranteed to be non-null for the lifetime of |this|.
190 WindowSelector* window_selector_; 194 WindowSelector* window_selector_;
191 195
192 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem); 196 DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
193 }; 197 };
194 198
195 } // namespace ash 199 } // namespace ash
196 200
197 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_ 201 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698