summaryrefslogtreecommitdiffstats
path: root/WebKit/android/RenderSkinCombo.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-20 14:03:58 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-20 14:03:58 -0800
commit528e2187562372a650037bc65fc4446ac2ff0772 (patch)
tree7756338cdd4ec7c9704774933ba8bc2f43accada /WebKit/android/RenderSkinCombo.h
parent7a355dabbffb876b2e08cf63ac4fc28a39c19c6a (diff)
downloadexternal_webkit-528e2187562372a650037bc65fc4446ac2ff0772.zip
external_webkit-528e2187562372a650037bc65fc4446ac2ff0772.tar.gz
external_webkit-528e2187562372a650037bc65fc4446ac2ff0772.tar.bz2
auto import from //branches/cupcake/...@127101
Diffstat (limited to 'WebKit/android/RenderSkinCombo.h')
-rw-r--r--WebKit/android/RenderSkinCombo.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/WebKit/android/RenderSkinCombo.h b/WebKit/android/RenderSkinCombo.h
index aeea6a0..0970b6b 100644
--- a/WebKit/android/RenderSkinCombo.h
+++ b/WebKit/android/RenderSkinCombo.h
@@ -27,10 +27,10 @@
#define RenderSkinCombo_h
#include "RenderSkinAndroid.h"
-#include "SkBitmap.h"
-#include "SkPaint.h"
#include "SkRect.h"
+class SkCanvas;
+
namespace WebCore {
// This is very similar to RenderSkinButton - maybe they should be the same class?
@@ -45,21 +45,17 @@ public:
*/
static void Init(android::AssetManager*);
- virtual bool draw(PlatformGraphicsContext*);
- virtual void notifyState(Node* element);
- virtual void setDim(int width, int height);
+ /**
+ * Draw the provided Node on the SkCanvas, using the dimensions provided by
+ * x,y,w,h. Return true if we did not draw, and WebKit needs to draw it,
+ * false otherwise.
+ */
+ static bool Draw(SkCanvas* , Node* , int x, int y, int w, int h);
// The image is an extra 30 pixels wider than the RenderObject, so this accounts for that.
static int extraWidth() { return arrowMargin; }
private:
- SkRect m_bounds; // Maybe this should become a protected member of RenderSkinAndroid...
- static SkBitmap m_bitmap[2]; // Collection of assets for a combo box
- static bool m_decoded; // True if all assets were decoded
- SkPaint m_paint;
- // Could probably move m_state into RenderSkinAndroid...
- // Although notice that the state for RenderSkinRadio is just an integer, and it behaves differently
- State m_state;
static const int arrowMargin = 30;
};