diff options
Diffstat (limited to 'Source/WebKit/android/RenderSkinAndroid.h')
-rw-r--r-- | Source/WebKit/android/RenderSkinAndroid.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/WebKit/android/RenderSkinAndroid.h b/Source/WebKit/android/RenderSkinAndroid.h index 73773ea..a7282e2 100644 --- a/Source/WebKit/android/RenderSkinAndroid.h +++ b/Source/WebKit/android/RenderSkinAndroid.h @@ -50,11 +50,12 @@ public: kNumStates }; - /** - * Initialize the Android skinning system. The AssetManager may be used to find resources used - * in rendering. - */ - RenderSkinAndroid(android::AssetManager*, String drawableDirectory); + enum Resolution { + MedRes, + HighRes + }; + + RenderSkinAndroid(String drawableDirectory); ~RenderSkinAndroid(); /* DecodeBitmap determines which file to use, with the given fileName of the form @@ -63,9 +64,14 @@ public: */ static bool DecodeBitmap(android::AssetManager* am, const char* fileName, SkBitmap* bitmap); - const RenderSkinButton* renderSkinButton() const { return m_button; } + static String DrawableDirectory() { return s_drawableDirectory; } + static Resolution DrawableResolution() { return s_drawableResolution; } + + RenderSkinButton* renderSkinButton() const { return m_button; } private: + static String s_drawableDirectory; + static Resolution s_drawableResolution; RenderSkinButton* m_button; }; |