Chromium Code Reviews| 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_ |