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

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 (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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e59310609a6a0650a313da80f88d86d88e4f019e 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,9 @@ class ASH_EXPORT ScopedTransformOverviewWindow {
// Mask layer that hides the original window header.
std::unique_ptr<OverviewContentMask> mask_;
+ // Original window shape, if it was set on a window.
+ std::unique_ptr<SkRegion> original_window_shape_;
+
// If true, the window was minimized and should be restored if the window
// was not selected.
bool minimized_;
« 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