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

Side by Side Diff: ui/wm/core/shadow.h

Issue 2586653002: Improve CrOS WM shadow drawing for small windows. (Closed)
Patch Set: wrapping Created 4 years 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 | ui/wm/core/shadow.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 UI_WM_CORE_SHADOW_H_ 5 #ifndef UI_WM_CORE_SHADOW_H_
6 #define UI_WM_CORE_SHADOW_H_ 6 #define UI_WM_CORE_SHADOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // The actual shadow layer corresponding to a cc::NinePatchLayer. 85 // The actual shadow layer corresponding to a cc::NinePatchLayer.
86 std::unique_ptr<ui::Layer> shadow_layer_; 86 std::unique_ptr<ui::Layer> shadow_layer_;
87 87
88 // When the style changes, the old shadow cross-fades with the new one. 88 // When the style changes, the old shadow cross-fades with the new one.
89 // When non-null, this is an old |shadow_layer_| that's being animated out. 89 // When non-null, this is an old |shadow_layer_| that's being animated out.
90 std::unique_ptr<ui::Layer> fading_layer_; 90 std::unique_ptr<ui::Layer> fading_layer_;
91 91
92 // Bounds of the content that the shadow encloses. 92 // Bounds of the content that the shadow encloses.
93 gfx::Rect content_bounds_; 93 gfx::Rect content_bounds_;
94 94
95 // The elevation of the shadow image that's currently set on |shadow_layer_|.
96 int effective_elevation_ = 0;
97
95 DISALLOW_COPY_AND_ASSIGN(Shadow); 98 DISALLOW_COPY_AND_ASSIGN(Shadow);
96 }; 99 };
97 100
98 } // namespace wm 101 } // namespace wm
99 102
100 #endif // UI_WM_CORE_SHADOW_H_ 103 #endif // UI_WM_CORE_SHADOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/wm/core/shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698