⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 93949 in webkit


Ignore:
Timestamp:
Aug 28, 2011, 12:14:17 PM (15 years ago)
Author:
kbalazs@webkit.org
Message:

[Qt][WK2] Unreviewed build fix.

  • UIProcess/qt/QtWebPageProxy.cpp:

(QtWebPageProxy::init): Initialize the WKPageUIClient with memset
to avoid missing initializer warning. The missing initializer is the
result of using a version 0 WKPageUIClient while it has newer version (1).
We have nothing to do with the callbacks in the new version so I voted
for memset.

  • WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Include ResourceError.h.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r93931 r93949  
     12011-08-28  Balazs Kelemen  <kbalazs@webkit.org>
     2
     3        [Qt][WK2] Unreviewed build fix.
     4
     5        * UIProcess/qt/QtWebPageProxy.cpp:
     6        (QtWebPageProxy::init): Initialize the WKPageUIClient with memset
     7        to avoid missing initializer warning. The missing initializer is the
     8        result of using a version 0 WKPageUIClient while it has newer version (1).
     9        We have nothing to do with the callbacks in the new version so I voted
     10        for memset.
     11        * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp: Include ResourceError.h.
     12
    1132011-08-26  Sam Weinig  <sam@webkit.org>
    214
  • trunk/Source/WebKit2/UIProcess/qt/QtWebPageProxy.cpp

    r93897 r93949  
    150150    WKPageSetPageLoaderClient(pageRef(), &loadClient);
    151151
    152     WKPageUIClient uiClient = {
    153         0,      /* version */
    154         m_viewInterface,   /* clientInfo */
    155         0,  /* createNewPage */
    156         0,  /* showPage */
    157         0,  /* close */
    158         0,  /* takeFocus */
    159         0,  /* focus */
    160         0,  /* unfocus */
    161         0,  /* runJavaScriptAlert */
    162         0,  /* runJavaScriptConfirm */
    163         0,  /* runJavaScriptPrompt */
    164         qt_wk_setStatusText,
    165         0,  /* mouseDidMoveOverElement */
    166         0,  /* missingPluginButtonClicked */
    167         0,  /* didNotHandleKeyEvent */
    168         0,  /* didNotHandleWheelEvent */
    169         0,  /* toolbarsAreVisible */
    170         0,  /* setToolbarsAreVisible */
    171         0,  /* menuBarIsVisible */
    172         0,  /* setMenuBarIsVisible */
    173         0,  /* statusBarIsVisible */
    174         0,  /* setStatusBarIsVisible */
    175         0,  /* isResizable */
    176         0,  /* setIsResizable */
    177         0,  /* getWindowFrame */
    178         0,  /* setWindowFrame */
    179         0,  /* runBeforeUnloadConfirmPanel */
    180         0,  /* didDraw */
    181         0,  /* pageDidScroll */
    182         0,  /* exceededDatabaseQuota */
    183         0,  /* runOpenPanel */
    184         0,  /* decidePolicyForGeolocationPermissionRequest */
    185         0,  /* headerHeight */
    186         0,  /* footerHeight */
    187         0,  /* drawHeader */
    188         0,  /* drawFooter */
    189         0,  /* printFrame */
    190         0,  /* runModal */
    191         0,  /* didCompleteRubberBandForMainFrame */
    192         0,  /* saveDataToFileInDownloadsFolder */
    193         0,  /* shouldInterruptJavaScript */
    194     };
     152    WKPageUIClient uiClient;
     153    memset(&uiClient, 0, sizeof(WKPageUIClient));
     154    uiClient.version = 0;
     155    uiClient.clientInfo = m_viewInterface;
     156    uiClient.setStatusText = qt_wk_setStatusText;
    195157    WKPageSetPageUIClient(toAPI(m_webPageProxy.get()), &uiClient);
    196158
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp

    r88628 r93949  
    2828#include "WebErrors.h"
    2929
     30#include <WebCore/ResourceError.h>
    3031#include <WebCore/ResourceRequest.h>
    3132#include <WebCore/ResourceResponse.h>
     
    4344    WebKitErrorCannotShowURL =                                  101,
    4445    WebKitErrorFrameLoadInterruptedByPolicyChange =             102,
    45     WebKitErrorCannotUseRestrictedPort = 103,
     46    WebKitErrorCannotUseRestrictedPort =                        103,
    4647    WebKitErrorCannotFindPlugIn =                               200,
    4748    WebKitErrorCannotLoadPlugIn =                               201,
Note: See TracChangeset for help on using the changeset viewer.