summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/android_graphics.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/platform/graphics/android/android_graphics.h
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/platform/graphics/android/android_graphics.h')
-rw-r--r--WebCore/platform/graphics/android/android_graphics.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/platform/graphics/android/android_graphics.h b/WebCore/platform/graphics/android/android_graphics.h
index 91c56b7..3bfa5ac 100644
--- a/WebCore/platform/graphics/android/android_graphics.h
+++ b/WebCore/platform/graphics/android/android_graphics.h
@@ -35,6 +35,7 @@ namespace WebCore {
class FloatRect;
class IntPoint;
class IntRect;
+ class GraphicsContext;
}
SkPoint* android_setpt(SkPoint* dst, const WebCore::IntPoint& src);
@@ -51,10 +52,12 @@ SkShader::TileMode android_convert_TileRule(WebCore::Image::TileRule);
WebCore::Color android_SkPMColorToWebCoreColor(SkPMColor pm);
+SkCanvas* android_gc2canvas(WebCore::GraphicsContext* gc);
+
// Data and methods for focus rings
// used to inflate node cache entry
-#define FOCUS_RING_HIT_TEST_RADIUS SkIntToScalar(5)
+#define FOCUS_RING_HIT_TEST_RADIUS 5
// used to inval rectangle enclosing pressed state of focus ring
#define FOCUS_RING_OUTER_DIAMETER SkFixedToScalar(SkIntToFixed(13)>>2) // 13/4 == 3.25
@@ -64,11 +67,9 @@ public:
enum Flavor {
NORMAL_FLAVOR,
FAKE_FLAVOR,
- BUTTON_NO_RING,
INVALID_FLAVOR,
NORMAL_ANIMATING,
FAKE_ANIMATING,
- BUTTON_ANIMATING,
ANIMATING_COUNT = 2
};