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

Unified Diff: ui/compositor/clone_layer.h

Issue 204793004: Makes View::RecreateLayer() and Window::RecreateLayer() the same (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 9 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 | « ui/aura/window.cc ('k') | ui/compositor/clone_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/clone_layer.h
diff --git a/ui/compositor/clone_layer.h b/ui/compositor/clone_layer.h
new file mode 100644
index 0000000000000000000000000000000000000000..4e439ce233b5b79546d544b08f50cf8da3c277a5
--- /dev/null
+++ b/ui/compositor/clone_layer.h
@@ -0,0 +1,23 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_COMPOSITOR_CLONE_LAYER_H_
+#define UI_COMPOSITOR_CLONE_LAYER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/compositor/compositor_export.h"
+
+namespace ui {
+
+class Layer;
+class LayerOwner;
+
+// Creates a new Layer for |layer_owner| returning the old. This does NOT
+// recurse. All the existing children of the layer are moved to the new layer.
+// This does nothing if |layer_owner| currently has no layer.
+COMPOSITOR_EXPORT scoped_ptr<ui::Layer> CloneLayer(LayerOwner* layer_owner);
+
+} // namespace ui
+
+#endif // UI_COMPOSITOR_CLONE_LAYER_H_
« no previous file with comments | « ui/aura/window.cc ('k') | ui/compositor/clone_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698