Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / browser / android / edge_effect.h
index f47a9b1..b8febba 100644 (file)
@@ -21,6 +21,7 @@ namespace content {
  * resources directly, while this version simply applies the effect to
  * existing resources. Conscious tradeoffs were made to align this as closely
  * as possible with the original Android java version.
+ * All coordinates and dimensions are in device pixels.
  */
 class EdgeEffect {
 public:
@@ -43,7 +44,11 @@ public:
   void Finish();
   bool IsFinished() const;
 
-  void ApplyToLayers(gfx::SizeF size, Edge edge);
+  void ApplyToLayers(gfx::SizeF window_size,
+                     Edge edge,
+                     float edge_height,
+                     float glow_height,
+                     float offset);
 
 private:
 
@@ -79,8 +84,6 @@ private:
 
   float pull_distance_;
 
-  float dpi_scale_;
-
   DISALLOW_COPY_AND_ASSIGN(EdgeEffect);
 };