Changeset 23566 in webkit


Ignore:
Timestamp:
Jun 18, 2007, 9:58:33 AM (17 years ago)
Author:
bdash
Message:

2007-06-18 Jake Helfert <jake@jakeonthenet.com>

Reviewed by Adam.

  • Spinneret/Spinneret/Spinneret.cpp: (_tWinMain):

-Changed IWebViewExt to IWebViewPrivate
-Changed Co[Un]initialize to Ole[Un]initialize because WebKit now calls

the WIN32 function RegisterDragDrop which requires the Ole* calls.

  • Spinneret/Spinneret/Spinneret.h: (SpinneretWebHost::didReceiveIcon): Updated method signature. (SpinneretWebHost::willPerformClientRedirectToURL): Updated method signature. (SpinneretWebHost::windowScriptObjectAvailable): Updated method signature.
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r23537 r23566  
     12007-06-18  Jake Helfert  <jake@jakeonthenet.com>
     2
     3        Reviewed by Adam.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=14154
     6          Spinneret doesn't build against the new Win32 port.
     7
     8        * Spinneret/Spinneret/Spinneret.cpp:
     9        (_tWinMain):
     10            -Changed IWebViewExt to IWebViewPrivate
     11            -Changed Co[Un]initialize to Ole[Un]initialize because WebKit now calls
     12             the WIN32 function RegisterDragDrop which requires the Ole* calls.
     13        * Spinneret/Spinneret/Spinneret.h:
     14        (SpinneretWebHost::didReceiveIcon): Updated method signature.
     15        (SpinneretWebHost::willPerformClientRedirectToURL): Updated method signature.
     16        (SpinneretWebHost::windowScriptObjectAvailable): Updated method signature.
     17
    1182007-06-14  Sam Weinig  <sam@webkit.org>
    219
  • trunk/WebKitTools/Spinneret/Spinneret/Spinneret.cpp

    r17512 r23566  
    167167
    168168    // Init COM
    169     CoInitialize(NULL);
     169    OleInitialize(NULL);
    170170
    171171    hURLBarWnd = CreateWindow(L"EDIT", 0,
     
    190190        goto exit;
    191191
    192     hr = gWebView->setHostWindow(hMainWnd);
     192    hr = gWebView->setHostWindow((OLE_HANDLE) hMainWnd);
    193193    if (FAILED(hr))
    194194        goto exit;
     
    196196    RECT clientRect;
    197197    GetClientRect(hMainWnd, &clientRect);
    198     hr = gWebView->initWithFrame(&clientRect, 0, 0);
     198    hr = gWebView->initWithFrame(clientRect, 0, 0);
    199199    if (FAILED(hr))
    200200        goto exit;
     
    210210    frame->Release();
    211211
    212     IWebViewExt* viewExt;
    213     hr = gWebView->QueryInterface(IID_IWebViewExt, (void**)&viewExt);
    214     if (FAILED(hr))
    215         goto exit;
    216     hr = viewExt->viewWindow(&gViewWindow);
     212    IWebViewPrivate* viewExt;
     213    hr = gWebView->QueryInterface(IID_IWebViewPrivate, (void**)&viewExt);
     214    if (FAILED(hr))
     215        goto exit;
     216    hr = viewExt->viewWindow((OLE_HANDLE*) &gViewWindow);
    217217    viewExt->Release();
    218218    if (FAILED(hr) || !gViewWindow)
     
    241241
    242242    // Shut down COM.
    243     CoUninitialize();
     243    OleUninitialize();
    244244   
    245245    return (int) msg.wParam;
  • trunk/WebKitTools/Spinneret/Spinneret/Spinneret.h

    r17065 r23566  
    6565    virtual HRESULT STDMETHODCALLTYPE didReceiveIcon(
    6666        /* [in] */ IWebView *webView,
    67         /* [in] */ IWebImage *image,
     67        /* [in] */ OLE_HANDLE hBitmap,
    6868        /* [in] */ IWebFrame *frame) { return S_OK; }
    6969   
     
    8080        /* [in] */ IWebView *webView,
    8181        /* [in] */ IWebFrame *frame) { return S_OK; }
    82    
     82
    8383    virtual HRESULT STDMETHODCALLTYPE willPerformClientRedirectToURL(
    8484        /* [in] */ IWebView *webView,
    8585        /* [in] */ BSTR url,
    86         UINT delaySeconds,
    87         /* [in] */ UINT fireDate,
     86        /* [in] */ double delaySeconds,
     87        /* [in] */ DATE fireDate,
    8888        /* [in] */ IWebFrame *frame) { return S_OK; }
    8989   
     
    9696        /* [in] */ IWebFrame *frame) { return S_OK; }
    9797   
    98     virtual HRESULT STDMETHODCALLTYPE windowScriptObjectAvailable(
     98    virtual /* [local] */ HRESULT STDMETHODCALLTYPE windowScriptObjectAvailable(
    9999        /* [in] */ IWebView *webView,
    100         /* [in] */ IWebScriptObject *windowScriptObject) { return S_OK; }
     100        /* [in] */ JSContextRef context,
     101        /* [in] */ JSObjectRef windowScriptObject)  { return S_OK; }
    101102
    102103    // SpinneretWebHost
Note: See TracChangeset for help on using the changeset viewer.