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

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

Issue 2525753002: Restore original opacity when exiting overview (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.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 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_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 5 #ifndef ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 6 #define ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 // Tracks if this window was ignored by the shelf. 173 // Tracks if this window was ignored by the shelf.
174 bool ignored_by_shelf_; 174 bool ignored_by_shelf_;
175 175
176 // True if the window has been transformed for overview mode. 176 // True if the window has been transformed for overview mode.
177 bool overview_started_; 177 bool overview_started_;
178 178
179 // The original transform of the window before entering overview mode. 179 // The original transform of the window before entering overview mode.
180 gfx::Transform original_transform_; 180 gfx::Transform original_transform_;
181 181
182 // The original opacity of the window before entering overview mode.
183 float original_opacity_;
184
182 // A window that holds the content for minimized window. 185 // A window that holds the content for minimized window.
183 std::unique_ptr<views::Widget> minimized_widget_; 186 std::unique_ptr<views::Widget> minimized_widget_;
184 187
185 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_; 188 base::WeakPtrFactory<ScopedTransformOverviewWindow> weak_ptr_factory_;
186 189
187 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow); 190 DISALLOW_COPY_AND_ASSIGN(ScopedTransformOverviewWindow);
188 }; 191 };
189 192
190 } // namespace ash 193 } // namespace ash
191 194
192 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_ 195 #endif // ASH_COMMON_WM_OVERVIEW_SCOPED_TRANSFORM_OVERVIEW_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698