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

Unified Diff: ui/wm/core/window_util.h

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Rebase Created 4 years, 2 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: ui/wm/core/window_util.h
diff --git a/ui/wm/core/window_util.h b/ui/wm/core/window_util.h
index eac3879823d3e6c41dad0b1152baf0f80914b72e..b8e7f2b9f2da9c84f3433b464e282f9e4a6655c4 100644
--- a/ui/wm/core/window_util.h
+++ b/ui/wm/core/window_util.h
@@ -62,6 +62,12 @@ WM_EXPORT std::unique_ptr<ui::LayerTreeOwner> RecreateLayers(
ui::LayerOwner* root,
LayerDelegateFactory* delegate_factory);
+// Returns a layer tree that mirrors |root|. Used for live window previews.
+WM_EXPORT std::unique_ptr<ui::LayerTreeOwner> MirrorLayers(
+ ui::LayerOwner* root,
+ LayerDelegateFactory* delegate_factory,
+ bool sync_bounds);
+
// Convenience functions that get the TransientWindowManager for the window and
// redirect appropriately. These are preferable to calling functions on
// TransientWindowManager as they handle the appropriate NULL checks.

Powered by Google App Engine
This is Rietveld 408576698