[Win] Expose missing editing features through WebView interface
[WebKit-https.git] / Tools / DumpRenderTree / win / EditingDelegate.h
index 22153d7..857eead 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <WebKit/WebKit.h>
 
-class __declspec(uuid("265DCD4B-79C3-44a2-84BC-511C3EDABD6F")) EditingDelegate : public IWebEditingDelegate {
+class __declspec(uuid("265DCD4B-79C3-44a2-84BC-511C3EDABD6F")) EditingDelegate : public IWebEditingDelegate, public IWebNotificationObserver {
 public:
     EditingDelegate();
 
@@ -53,11 +53,7 @@ public:
         /* [in] */ IDOMRange *range,
         /* [retval][out] */ BOOL *result);
     
-    virtual HRESULT STDMETHODCALLTYPE shouldInsertNode( 
-        /* [in] */ IWebView *webView,
-        /* [in] */ IDOMNode *node,
-        /* [in] */ IDOMRange *range,
-        /* [in] */ WebViewInsertAction action);
+    virtual HRESULT STDMETHODCALLTYPE shouldInsertNode(IWebView*, IDOMNode*, IDOMRange*, WebViewInsertAction, BOOL* result);
     
     virtual HRESULT STDMETHODCALLTYPE shouldInsertText( 
         /* [in] */ IWebView *webView,
@@ -168,6 +164,9 @@ public:
         
         virtual HRESULT STDMETHODCALLTYPE updateGrammar( void) { return E_NOTIMPL; }
 
+        // IWebNotificationObserver
+        virtual HRESULT STDMETHODCALLTYPE onNotify(IWebNotification* notification);
+
 private:
     bool m_acceptsEditing;
     ULONG m_refCount;