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

Unified Diff: cc/blink/web_layer_impl_fixed_bounds.h

Issue 470983004: Move blink<->cc bindings to cc/blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_layer_impl_fixed_bounds.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl_fixed_bounds.h
diff --git a/content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h b/cc/blink/web_layer_impl_fixed_bounds.h
similarity index 71%
rename from content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h
rename to cc/blink/web_layer_impl_fixed_bounds.h
index 2048666fd18a1898ce216bccd5cc6566cb874767..07c461cd90de413324d168a0ed7509cf1deb5d4e 100644
--- a/content/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h
+++ b/cc/blink/web_layer_impl_fixed_bounds.h
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
-#define CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
+#ifndef CC_BLINK_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
+#define CC_BLINK_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
-#include "content/renderer/compositor_bindings/web_layer_impl.h"
+#include "cc/blink/web_layer_impl.h"
#include "ui/gfx/size.h"
#include "ui/gfx/transform.h"
-namespace content {
+namespace cc_blink {
// A special implementation of WebLayerImpl for layers that its contents
// need to be automatically scaled when the bounds changes. The compositor
@@ -18,9 +18,8 @@ namespace content {
// transformation scales.
class WebLayerImplFixedBounds : public WebLayerImpl {
public:
- CONTENT_EXPORT WebLayerImplFixedBounds();
- CONTENT_EXPORT explicit WebLayerImplFixedBounds(
- scoped_refptr<cc::Layer>);
+ CC_BLINK_EXPORT WebLayerImplFixedBounds();
+ CC_BLINK_EXPORT explicit WebLayerImplFixedBounds(scoped_refptr<cc::Layer>);
virtual ~WebLayerImplFixedBounds();
// WebLayerImpl overrides.
@@ -32,7 +31,7 @@ class WebLayerImplFixedBounds : public WebLayerImpl {
virtual void setTransform(const SkMatrix44& transform);
virtual SkMatrix44 transform() const;
- CONTENT_EXPORT void SetFixedBounds(gfx::Size bounds);
+ CC_BLINK_EXPORT void SetFixedBounds(gfx::Size bounds);
protected:
void SetTransformInternal(const gfx::Transform& transform);
@@ -46,7 +45,6 @@ class WebLayerImplFixedBounds : public WebLayerImpl {
DISALLOW_COPY_AND_ASSIGN(WebLayerImplFixedBounds);
};
-} // namespace content
-
-#endif // CONTENT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
+} // namespace cc_blink
+#endif // CC_BLINK_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_layer_impl_fixed_bounds.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698