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

Unified Diff: ash/common/wm/overview/scoped_transform_overview_window.h

Issue 2129213003: [ash-md] Hides frame headers in overview mode not using a mask (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Hides frame headers in overview mode not using a mask (using SetAlphaShape) 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/wm/overview/scoped_transform_overview_window.h
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.h b/ash/common/wm/overview/scoped_transform_overview_window.h
index 7445d763f4097810fc76ba9706b1b64937c2522e..8749a74635c6d2f811b790dc50659e4aecc11894 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.h
+++ b/ash/common/wm/overview/scoped_transform_overview_window.h
@@ -15,6 +15,8 @@
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/transform.h"
+class SkRegion;
+
namespace gfx {
class Rect;
}
@@ -106,7 +108,7 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// using rounded corners of |radius|.
void SetTransform(WmWindow* root_window,
const gfx::Transform& transform,
- int radius);
+ float radius);
// Set's the opacity of the managed windows.
void SetOpacity(float opacity);
@@ -135,6 +137,12 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// Mask layer that hides the original window header.
std::unique_ptr<OverviewContentMask> mask_;
+ // Original window shape.
tdanderson 2016/07/09 21:23:21 From line 416 in scoped_transform_overview_window.
varkha 2016/07/09 22:00:17 Done.
+ std::unique_ptr<SkRegion> original_alpha_shape_;
tdanderson 2016/07/09 21:23:21 Maybe it's just because "alpha shape" is new termi
varkha 2016/07/09 22:00:17 Done.
+
+ // True after |original_alpha_shape_| has been set.
+ bool alpha_shape_set_;
tdanderson 2016/07/09 21:23:21 I don't think you need this (see my comments below
varkha 2016/07/09 22:00:17 Done.
+
// If true, the window was minimized and should be restored if the window
// was not selected.
bool minimized_;

Powered by Google App Engine
This is Rietveld 408576698