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

Unified Diff: views/layer_property_setter.h

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 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
« no previous file with comments | « views/desktop/desktop_window_view.cc ('k') | views/layer_property_setter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/layer_property_setter.h
diff --git a/views/layer_property_setter.h b/views/layer_property_setter.h
deleted file mode 100644
index 9db167d5bc980762763f9d51029be33a848c92c6..0000000000000000000000000000000000000000
--- a/views/layer_property_setter.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 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_GFX_COMPOSITOR_LAYER_PROPERTY_SETTER_H_
-#define UI_GFX_COMPOSITOR_LAYER_PROPERTY_SETTER_H_
-#pragma once
-
-#include "views/views_export.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-class Layer;
-class Transform;
-}
-
-namespace views {
-
-// When a property of layer needs to be changed it is set by way of
-// LayerPropertySetter. This enables LayerPropertySetter to animate property
-// changes.
-class VIEWS_EXPORT LayerPropertySetter {
- public:
- // Creates a LayerPropertySetter that immediately sets the values on the
- // layer. Ownership returns to caller.
- static LayerPropertySetter* CreateDefaultSetter();
-
- virtual ~LayerPropertySetter() {}
-
- // Invoked when the LayerPropertySetter is to be used for a particular Layer.
- // This is invoked whenever a new Layer is created. A LayerPropertySetter is
- // only associated with one Layer at a time.
- virtual void Installed(ui::Layer* layer) = 0;
-
- // Invoked when the Layer is destroyed.
- virtual void Uninstalled(ui::Layer* layer) = 0;
-
- // Sets the transform on the Layer.
- virtual void SetTransform(ui::Layer* layer,
- const ui::Transform& transform) = 0;
-
- // Sets the bounds of the layer.
- virtual void SetBounds(ui::Layer* layer, const gfx::Rect& bounds) = 0;
-};
-
-} // namespace views
-
-#endif // UI_GFX_COMPOSITOR_LAYER_PROPERTY_SETTER_H_
« no previous file with comments | « views/desktop/desktop_window_view.cc ('k') | views/layer_property_setter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698