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

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: comment 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
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..63fe5df5405509449474ecf57f3028f6b1d77804
--- /dev/null
+++ b/ui/compositor/clone_layer.h
@@ -0,0 +1,23 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
oshima 2014/03/19 18:12:44 nit: nuke (c). same for other files.
+// 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
oshima 2014/03/19 18:12:44 ditto
+
+#endif // UI_COMPOSITOR_CLONE_LAYER_H_
« no previous file with comments | « ui/aura/window.cc ('k') | ui/compositor/clone_layer.cc » ('j') | ui/compositor/clone_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698