OSDN Git Service

Add dpi support for WebView.
[android-x86/external-webkit.git] / WebKit / android / jni / WebCoreFrameBridge.h
index 3793042..609aecc 100644 (file)
@@ -54,6 +54,7 @@ class WebFrame : public WebCoreRefObject {
     enum RAW_RES_ID {
         NODOMAIN = 1,
         LOADERROR,
+        DRAWABLEDIR,
     };
     WebFrame(JNIEnv* env, jobject obj, jobject historyList, WebCore::Page* page);
     ~WebFrame();
@@ -61,9 +62,8 @@ class WebFrame : public WebCoreRefObject {
     // helper function
     static WebFrame* getWebFrame(const WebCore::Frame* frame);
 
-    WebCoreResourceLoader* startLoadingResource(WebCore::ResourceHandle*,
+    virtual WebCoreResourceLoader* startLoadingResource(WebCore::ResourceHandle*,
             const WebCore::ResourceRequest& request,
-            bool isHighPriority,
             bool synchronous);
 
     void reportError(int errorCode, const WebCore::String& description,
@@ -90,10 +90,12 @@ class WebFrame : public WebCoreRefObject {
     const WebCore::String userAgentForURL(const WebCore::KURL* url);
 
     void didReceiveIcon(WebCore::Image* icon);
+
+    void didReceiveTouchIconURL(const WebCore::String& url);
     
     void updateVisitedHistory(const WebCore::KURL& url, bool reload);
 
-    bool canHandleRequest(const WebCore::ResourceRequest& request);
+    virtual bool canHandleRequest(const WebCore::ResourceRequest& request);
 
     WebCore::Frame* createWindow(bool dialog, bool userGesture);
 
@@ -107,6 +109,8 @@ class WebFrame : public WebCoreRefObject {
 
     WebCore::String getRawResourceFilename(RAW_RES_ID) const;
 
+    float density() const;
+
     /**
      * When the user initiates a click (via trackball, enter-press, or touch),
      * we set mUserInitiatedClick to true.  If a load happens due to this click,