1. 30 Oct, 2012 1 commit
    • commit-queue@webkit.org's avatar
      [WK2] Remove incorrect use of preprocessor macro in API headers. · 626a076a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=100722
      
      Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-30
      Reviewed by Gyuyoung Kim.
      
      Remove the preprocessor macro ENABLE(INSPECTOR) from the WKAPICast.h
      and WKInspector.h.
      
      * UIProcess/API/C/WKAPICast.h:
      (WebKit):
      * UIProcess/API/C/WKInspector.cpp:
      (WKInspectorGetTypeID):
      (WKInspectorGetPage):
      (WKInspectorIsVisible):
      (WKInspectorIsFront):
      (WKInspectorShow):
      (WKInspectorClose):
      (WKInspectorShowConsole):
      (WKInspectorShowResources):
      (WKInspectorShowMainResourceForFrame):
      (WKInspectorIsAttached):
      (WKInspectorAttach):
      (WKInspectorDetach):
      (WKInspectorIsDebuggingJavaScript):
      (WKInspectorToggleJavaScriptDebugging):
      (WKInspectorIsProfilingJavaScript):
      (WKInspectorToggleJavaScriptProfiling):
      (WKInspectorIsProfilingPage):
      (WKInspectorTogglePageProfiling):
      * UIProcess/API/C/WKInspector.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132875 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      626a076a
  2. 27 Feb, 2012 1 commit
    • timothy@apple.com's avatar
      Add WKInspector API to know when the Web Inspector is the frontmost window. · 8274182d
      timothy@apple.com authored
      https://webkit.org/b/79649
      
      Reviewed by John Sullivan.
      
      Source/WebCore: Updated for WebKit2 string changes.
      
      * English.lproj/Localizable.strings: Updated.
      
      Source/WebKit2: Also makes the Safari Develop menu items work when the Web Inspector is frontmost.
      
      * UIProcess/API/C/WKInspector.cpp:
      (WKInspectorIsFront): Added. Call WebInspectorProxy::isFront.
      * UIProcess/API/C/WKInspector.h:
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::isFront): Added. Call platformIsFront.
      * UIProcess/WebInspectorProxy.h:
      * UIProcess/efl/WebInspectorEfl.cpp:
      (WebKit::WebInspectorProxy::platformIsFront): Added stub.
      * UIProcess/gtk/WebInspectorGtk.cpp:
      (WebKit::WebInspectorProxy::platformIsFront): Added stub.
      * UIProcess/mac/WebInspectorProxyMac.mm:
      (-[WKWebInspectorProxyObjCAdapter showWebInspector:]): Added. Makes the Develop menu items in Safari work when
      the Web Inspector window is front.
      (-[WKWebInspectorProxyObjCAdapter showErrorConsole:]): Added. Ditto.
      (-[WKWebInspectorProxyObjCAdapter showResources:]): Added. Ditto.
      (-[WKWebInspectorProxyObjCAdapter viewSource:]): Added. Ditto.
      (-[WKWebInspectorProxyObjCAdapter toggleDebuggingJavaScript:]): Added. Ditto.
      (-[WKWebInspectorProxyObjCAdapter toggleProfilingJavaScript:]): Added. Ditto.
      (-[WKWebInspectorProxyObjCAdapter validateUserInterfaceItem:]): Added. Update the menu item titles.
      (WebKit::WebInspectorProxy::platformIsFront): Added. Return if visible and the window is main.
      * UIProcess/qt/WebInspectorProxyQt.cpp:
      (WebKit::WebInspectorProxy::platformIsFront): Added stub.
      * UIProcess/win/WebInspectorProxyWin.cpp:
      (WebKit::WebInspectorProxy::platformIsFront): Added stub.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8274182d
  3. 14 Feb, 2012 1 commit
    • bweinstein@apple.com's avatar
      Source/WebCore: Web Inspector: Add the ability to show the resources panel on launch · 0d59ea6d
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78641
      
      Reviewed by Timothy Hatcher.
      
      * WebCore.exp.in: Add a new function to be exported.
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::showResources): Call showResources on load.
      * inspector/InspectorFrontendClientLocal.h:
      (InspectorFrontendClientLocal):
      * inspector/front-end/InspectorFrontendAPI.js:
      (InspectorFrontendAPI.showResources): Show the resources panel.
      
      Source/WebKit2: Web Inspector: Add the ability to show the resources panel on launch
      https://bugs.webkit.org/show_bug.cgi?id=78641
      
      Add WebKit2 API for the ability to show the resources panel. This calls down
      from the WK API all the way to InspectorFrontendClientLocal::showResources.
      
      Reviewed by Timothy Hatcher.
      
      * UIProcess/API/C/WKInspector.cpp:
      (WKInspectorShowResources): Call WebInspectorProxy::showResources.
      * UIProcess/API/C/WKInspector.h:
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::showResources): Send a message to the web process.
      * UIProcess/WebInspectorProxy.h:
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::showResources): Call InspectorFrontendClientLocal::showResources.
      * WebProcess/WebPage/WebInspector.h:
      * WebProcess/WebPage/WebInspector.messages.in: Add a ShowResources message.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d59ea6d
  4. 10 Feb, 2012 1 commit
    • bweinstein@apple.com's avatar
      Source/WebCore: Web Inspector: Add the ability to jump to the source for a given frame · fe3e9e0e
      bweinstein@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=78396
      
      Reviewed by Tim Hatcher.
      
      * WebCore.exp.in: Add a new exported function.
      * inspector/InspectorController.cpp: Add and expose the InspectorPageAgent.
      (WebCore::InspectorController::InspectorController): Set m_pageAgent.
      * inspector/InspectorController.h: Add m_pageAgent.
      (WebCore::InspectorController::pageAgent): Return m_pageAgent.
      
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::showMainResourceForFrame): Get the inspector's frame ID
          of the frame that was passed in, and add a call to evaluate on load.
      * inspector/InspectorFrontendClientLocal.h:
      
      * inspector/front-end/InspectorFrontendAPI.js:
      (InspectorFrontendAPI.showMainResourceForFrame): Add a FIXME to show the source code for the main
          resource of the given frame.
      
      Source/WebKit2: Web Inspector: Add the ability to jump to the source for a given frame
      https://bugs.webkit.org/show_bug.cgi?id=78396
      
      Add WebKit2 API for the ability to show the source of a frame in the web inspector. This calls down
      from the WK API all the way to InspectorFrontendClientLocal::showMainResourceForFrame.
      
      Reviewed by Tim Hatcher.
      
      * UIProcess/API/C/WKInspector.cpp:
      (WKInspectorShowMainResourceForFrame): Call WebInspectorProxy::showMainResourceForFrame.
      * UIProcess/API/C/WKInspector.h:
      
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::showMainResourceForFrame): Send a message to the web process, passing
          the frame ID of the frame we want to show the main resource of.
      * UIProcess/WebInspectorProxy.h:
      
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::showMainResourceForFrame): Get the WebFrame for the frame we want to show the
          main resource of from its ID. If we found a frame, call InspectorFrontendClientLocal::showMainResourceForFrame.
      * WebProcess/WebPage/WebInspector.h:
      
      * WebProcess/WebPage/WebInspector.messages.in: Add a new message.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107460 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe3e9e0e
  5. 27 Jan, 2011 1 commit
    • laszlo.1.gombos@nokia.com's avatar
      2011-01-27 Greg Coletta <greg.coletta@nokia.com> · 48183967
      laszlo.1.gombos@nokia.com authored
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Change the style checker so that it enforces config.h include for
              WebKit2.
      
              * Scripts/webkitpy/style/checker.py:
      
      2011-01-27  Greg Coletta  <greg.coletta@nokia.com>
      
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Guard EmptyProtocalDefinitions.h to make sure it's not included twice.
      
              * platform/mac/EmptyProtocolDefinitions.h:
      
      2011-01-27  Greg Coletta  <greg.coletta@nokia.com>
      
              Reviewed by Laszlo Gombos.
      
              Get rid of prefix header dependency for WebKit2 build system.
              https://bugs.webkit.org/show_bug.cgi?id=50174
      
              Add config.h include explicitelly.
      
              * Platform/CoreIPC/ArgumentDecoder.cpp:
              * Platform/CoreIPC/ArgumentEncoder.cpp:
              * Platform/CoreIPC/Attachment.cpp:
              * Platform/CoreIPC/BinarySemaphore.cpp:
              * Platform/CoreIPC/Connection.cpp:
              * Platform/CoreIPC/DataReference.cpp:
              * Platform/CoreIPC/gtk/ConnectionGtk.cpp:
              * Platform/CoreIPC/mac/ConnectionMac.cpp:
              * Platform/CoreIPC/qt/ConnectionQt.cpp:
              * Platform/CoreIPC/win/ConnectionWin.cpp:
              * Platform/Logging.cpp:
              * Platform/Module.cpp:
              * Platform/Region.cpp:
              * Platform/RunLoop.cpp:
              * Platform/WorkQueue.cpp:
              * Platform/cg/CGUtilities.cpp:
              * Platform/gtk/RunLoopGtk.cpp:
              * Platform/gtk/SharedMemoryGtk.cpp:
              * Platform/gtk/WorkQueueGtk.cpp:
              * Platform/mac/MachUtilities.cpp:
              * Platform/mac/SharedMemoryMac.cpp:
              * Platform/mac/WorkQueueMac.cpp:
              * Platform/qt/MappedMemoryPool.cpp:
              * Platform/qt/ModuleQt.cpp:
              * Platform/qt/RunLoopQt.cpp:
              * Platform/qt/WorkQueueQt.cpp:
              * Platform/win/ModuleWin.cpp:
              * Platform/win/RunLoopWin.cpp:
              * Platform/win/SharedMemoryWin.cpp:
              * Platform/win/WorkQueueWin.cpp:
              * PluginProcess/PluginControllerProxy.cpp:
              * PluginProcess/PluginProcess.cpp:
              * PluginProcess/WebProcessConnection.cpp:
              * Scripts/webkit2/messages.py:
              * Shared/API/c/WKArray.cpp:
              * Shared/API/c/WKCertificateInfo.cpp:
              * Shared/API/c/WKContextMenuItem.cpp:
              * Shared/API/c/WKData.cpp:
              * Shared/API/c/WKDictionary.cpp:
              * Shared/API/c/WKError.cpp:
              * Shared/API/c/WKImage.cpp:
              * Shared/API/c/WKMutableArray.cpp:
              * Shared/API/c/WKMutableDictionary.cpp:
              * Shared/API/c/WKNumber.cpp:
              * Shared/API/c/WKSecurityOrigin.cpp:
              * Shared/API/c/WKSerializedScriptValue.cpp:
              * Shared/API/c/WKString.cpp:
              * Shared/API/c/WKType.cpp:
              * Shared/API/c/WKURL.cpp:
              * Shared/API/c/WKURLRequest.cpp:
              * Shared/API/c/WKURLResponse.cpp:
              * Shared/API/c/WKUserContentURLPattern.cpp:
              * Shared/API/c/cf/WKStringCF.cpp:
              * Shared/API/c/cf/WKURLCF.cpp:
              * Shared/API/c/cf/WKURLRequestCF.cpp:
              * Shared/API/c/cf/WKURLResponseCF.cpp:
              * Shared/API/c/cg/WKImageCG.cpp:
              * Shared/API/c/win/WKCertificateInfoWin.cpp:
              * Shared/ChildProcess.cpp:
              * Shared/ImmutableArray.cpp:
              * Shared/ImmutableDictionary.cpp:
              * Shared/MutableArray.cpp:
              * Shared/MutableDictionary.cpp:
              * Shared/OriginAndDatabases.cpp:
              * Shared/PlatformPopupMenuData.cpp:
              * Shared/Plugins/NPIdentifierData.cpp:
              * Shared/Plugins/NPObjectMessageReceiver.cpp:
              * Shared/Plugins/NPObjectProxy.cpp:
              * Shared/Plugins/NPRemoteObjectMap.cpp:
              * Shared/Plugins/NPVariantData.cpp:
              * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
              * Shared/Plugins/Netscape/win/NetscapePluginModuleWin.cpp:
              * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
              * Shared/Plugins/PluginProcessCreationParameters.cpp:
              * Shared/PrintInfo.cpp:
              * Shared/SessionState.cpp:
              * Shared/ShareableBitmap.cpp:
              * Shared/UpdateInfo.cpp:
              * Shared/VisitedLinkTable.cpp:
              * Shared/WebBackForwardListItem.cpp:
              * Shared/WebContextMenuItem.cpp:
              * Shared/WebContextMenuItemData.cpp:
              * Shared/WebError.cpp:
              * Shared/WebEvent.cpp:
              * Shared/WebEventConversion.cpp:
              * Shared/WebGeolocationPosition.cpp:
              * Shared/WebImage.cpp:
              * Shared/WebKeyboardEvent.cpp:
              * Shared/WebMemorySampler.cpp:
              * Shared/WebMouseEvent.cpp:
              * Shared/WebOpenPanelParameters.cpp:
              * Shared/WebPageCreationParameters.cpp:
              * Shared/WebPageGroupData.cpp:
              * Shared/WebPlatformTouchPoint.cpp:
              * Shared/WebPopupItem.cpp:
              * Shared/WebPreferencesStore.cpp:
              * Shared/WebProcessCreationParameters.cpp:
              * Shared/WebTouchEvent.cpp:
              * Shared/WebURLRequest.cpp:
              * Shared/WebURLResponse.cpp:
              * Shared/WebWheelEvent.cpp:
              * Shared/cairo/ShareableBitmapCairo.cpp:
              * Shared/cf/ArgumentCodersCF.cpp:
              * Shared/cg/ShareableBitmapCG.cpp:
              * Shared/gtk/ShareableBitmapGtk.cpp:
              * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
              * Shared/mac/CommandLineMac.cpp:
              * Shared/mac/UpdateChunk.cpp:
              * Shared/qt/CleanupHandler.cpp:
              * Shared/qt/NativeWebKeyboardEventQt.cpp:
              * Shared/qt/ShareableBitmapQt.cpp:
              * Shared/qt/UpdateChunk.cpp:
              * Shared/qt/WebCoreArgumentCodersQt.cpp:
              * Shared/qt/WebEventFactoryQt.cpp:
              * Shared/qt/WebURLRequestQt.cpp:
              * Shared/qt/WebURLResponseQt.cpp:
              * Shared/win/CommandLineWin.cpp:
              * Shared/win/NativeWebKeyboardEventWin.cpp:
              * Shared/win/PlatformCertificateInfo.cpp:
              * Shared/win/UpdateChunk.cpp:
              * Shared/win/WebCoreArgumentCodersWin.cpp:
              * Shared/win/WebEventFactory.cpp:
              * Shared/win/WebURLRequestWin.cpp:
              * Shared/win/WebURLResponseWin.cpp:
              * UIProcess/API/C/WKAuthenticationChallenge.cpp:
              * UIProcess/API/C/WKAuthenticationDecisionListener.cpp:
              * UIProcess/API/C/WKBackForwardList.cpp:
              * UIProcess/API/C/WKBackForwardListItem.cpp:
              * UIProcess/API/C/WKContext.cpp:
              * UIProcess/API/C/WKCredential.cpp:
              * UIProcess/API/C/WKDatabaseManager.cpp:
              * UIProcess/API/C/WKDownload.cpp:
              * UIProcess/API/C/WKFormSubmissionListener.cpp:
              * UIProcess/API/C/WKFrame.cpp:
              * UIProcess/API/C/WKFramePolicyListener.cpp:
              * UIProcess/API/C/WKGeolocationManager.cpp:
              * UIProcess/API/C/WKGeolocationPermissionRequest.cpp:
              * UIProcess/API/C/WKGeolocationPosition.cpp:
              * UIProcess/API/C/WKInspector.cpp:
              * UIProcess/API/C/WKNavigationData.cpp:
              * UIProcess/API/C/WKOpenPanelParameters.cpp:
              * UIProcess/API/C/WKOpenPanelResultListener.cpp:
              * UIProcess/API/C/WKPage.cpp:
              * UIProcess/API/C/WKPageGroup.cpp:
              * UIProcess/API/C/WKPreferences.cpp:
              * UIProcess/API/C/WKProtectionSpace.cpp:
              * UIProcess/API/C/win/WKContextWin.cpp:
              * UIProcess/API/C/win/WKView.cpp:
              * UIProcess/API/C/win/WKViewPrivate.cpp:
              * UIProcess/API/cpp/qt/WKStringQt.cpp:
              * UIProcess/API/cpp/qt/WKURLQt.cpp:
              * UIProcess/API/qt/ClientImpl.cpp:
              * UIProcess/API/qt/qgraphicswkview.cpp:
              * UIProcess/API/qt/qwkcontext.cpp:
              * UIProcess/API/qt/qwkpage.cpp:
              * UIProcess/API/qt/qwkpreferences.cpp:
              * UIProcess/Authentication/AuthenticationChallengeProxy.cpp:
              * UIProcess/Authentication/AuthenticationDecisionListener.cpp:
              * UIProcess/Authentication/WebCredential.cpp:
              * UIProcess/Authentication/WebProtectionSpace.cpp:
              * UIProcess/BackingStore.cpp:
              * UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
              * UIProcess/Downloads/DownloadProxy.cpp:
              * UIProcess/DrawingAreaProxy.cpp:
              * UIProcess/DrawingAreaProxyImpl.cpp:
              * UIProcess/FindIndicator.cpp:
              * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
              * UIProcess/GeolocationPermissionRequestProxy.cpp:
              * UIProcess/Launcher/ProcessLauncher.cpp:
              * UIProcess/Launcher/ThreadLauncher.cpp:
              * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
              * UIProcess/Launcher/gtk/ThreadLauncherGtk.cpp:
              * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
              * UIProcess/Launcher/qt/ThreadLauncherQt.cpp:
              * UIProcess/Launcher/win/ProcessLauncherWin.cpp:
              * UIProcess/Launcher/win/ThreadLauncherWin.cpp:
              * UIProcess/LayerBackedDrawingAreaProxy.cpp:
              * UIProcess/Plugins/PluginInfoStore.cpp:
              * UIProcess/Plugins/PluginProcessManager.cpp:
              * UIProcess/Plugins/PluginProcessProxy.cpp:
              * UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
              * UIProcess/Plugins/qt/PluginInfoStoreQt.cpp:
              * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
              * UIProcess/ResponsivenessTimer.cpp:
              * UIProcess/TiledDrawingAreaProxy.cpp:
              * UIProcess/VisitedLinkProvider.cpp:
              * UIProcess/WebBackForwardList.cpp:
              * UIProcess/WebContext.cpp:
              * UIProcess/WebContextInjectedBundleClient.cpp:
              * UIProcess/WebContextMenuProxy.cpp:
              * UIProcess/WebDatabaseManagerProxy.cpp:
              * UIProcess/WebDatabaseManagerProxyClient.cpp:
              * UIProcess/WebDownloadClient.cpp:
              * UIProcess/WebEditCommandProxy.cpp:
              * UIProcess/WebFindClient.cpp:
              * UIProcess/WebFormClient.cpp:
              * UIProcess/WebFormSubmissionListenerProxy.cpp:
              * UIProcess/WebFrameListenerProxy.cpp:
              * UIProcess/WebFramePolicyListenerProxy.cpp:
              * UIProcess/WebFrameProxy.cpp:
              * UIProcess/WebGeolocationManagerProxy.cpp:
              * UIProcess/WebGeolocationProvider.cpp:
              * UIProcess/WebHistoryClient.cpp:
              * UIProcess/WebInspectorProxy.cpp:
              * UIProcess/WebLoaderClient.cpp:
              * UIProcess/WebNavigationData.cpp:
              * UIProcess/WebOpenPanelResultListenerProxy.cpp:
              * UIProcess/WebPageContextMenuClient.cpp:
              * UIProcess/WebPageGroup.cpp:
              * UIProcess/WebPageProxy.cpp:
              * UIProcess/WebPolicyClient.cpp:
              * UIProcess/WebPreferences.cpp:
              * UIProcess/WebProcessManager.cpp:
              * UIProcess/WebProcessProxy.cpp:
              * UIProcess/WebResourceLoadClient.cpp:
              * UIProcess/WebUIClient.cpp:
              * UIProcess/cf/WebBackForwardListCF.cpp:
              * UIProcess/cf/WebPageProxyCF.cpp:
              * UIProcess/cf/WebPreferencesCF.cpp:
              * UIProcess/gtk/TextCheckerGtk.cpp:
              * UIProcess/gtk/WebInspectorGtk.cpp:
              * UIProcess/gtk/WebPageProxyGtk.cpp:
              * UIProcess/gtk/WebPreferencesGtk.cpp:
              * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp:
              * UIProcess/qt/TextCheckerQt.cpp:
              * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
              * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
              * UIProcess/qt/WebContextMenuProxyQt.cpp:
              * UIProcess/qt/WebContextQt.cpp:
              * UIProcess/qt/WebInspectorProxyQt.cpp:
              * UIProcess/qt/WebPageProxyQt.cpp:
              * UIProcess/qt/WebPopupMenuProxyQt.cpp:
              * UIProcess/qt/WebPreferencesQt.cpp:
              * UIProcess/win/ChunkedUpdateDrawingAreaProxyWin.cpp:
              * UIProcess/win/LayerBackedDrawingAreaProxyWin.cpp:
              * UIProcess/win/TextCheckerWin.cpp:
              * UIProcess/win/WebContextMenuProxyWin.cpp:
              * UIProcess/win/WebContextWin.cpp:
              * UIProcess/win/WebInspectorProxyWin.cpp:
              * UIProcess/win/WebPageProxyWin.cpp:
              * UIProcess/win/WebPopupMenuProxyWin.cpp:
              * UIProcess/win/WebView.cpp:
              * WebKit2.xcodeproj/project.pbxproj:
              * WebProcess/Authentication/AuthenticationManager.cpp:
              * WebProcess/Downloads/Download.cpp:
              * WebProcess/Downloads/DownloadManager.cpp:
              * WebProcess/Downloads/cf/DownloadCFNet.cpp:
              * WebProcess/Downloads/curl/DownloadCurl.cpp:
              * WebProcess/Downloads/qt/DownloadQt.cpp:
              * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
              * WebProcess/Geolocation/WebGeolocationManager.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePageGroup.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
              * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
              * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
              * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
              * WebProcess/InjectedBundle/InjectedBundle.cpp:
              * WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp:
              * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
              * WebProcess/InjectedBundle/InjectedBundleClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
              * WebProcess/InjectedBundle/InjectedBundleScriptWorld.cpp:
              * WebProcess/InjectedBundle/gtk/InjectedBundleGtk.cpp:
              * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
              * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
              * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
              * WebProcess/Plugins/Netscape/JSNPMethod.cpp:
              * WebProcess/Plugins/Netscape/JSNPObject.cpp:
              * WebProcess/Plugins/Netscape/NPJSObject.cpp:
              * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
              * WebProcess/Plugins/Netscape/NPRuntimeUtilities.cpp:
              * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
              * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
              * WebProcess/Plugins/Netscape/NetscapePluginStream.cpp:
              * WebProcess/Plugins/Netscape/gtk/NetscapePluginGtk.cpp:
              * WebProcess/Plugins/Netscape/qt/NetscapePluginQt.cpp:
              * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
              * WebProcess/Plugins/Plugin.cpp:
              * WebProcess/Plugins/PluginProcessConnection.cpp:
              * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
              * WebProcess/Plugins/PluginProxy.cpp:
              * WebProcess/Plugins/PluginView.cpp:
              * WebProcess/WebCoreSupport/WebChromeClient.cpp:
              * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
              * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
              * WebProcess/WebCoreSupport/WebDragClient.cpp:
              * WebProcess/WebCoreSupport/WebEditorClient.cpp:
              * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
              * WebProcess/WebCoreSupport/WebGeolocationClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
              * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
              * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
              * WebProcess/WebCoreSupport/WebSearchPopupMenu.cpp:
              * WebProcess/WebCoreSupport/gtk/WebContextMenuClientGtk.cpp:
              * WebProcess/WebCoreSupport/gtk/WebPopupMenuGtk.cpp:
              * WebProcess/WebCoreSupport/qt/WebContextMenuClientQt.cpp:
              * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
              * WebProcess/WebCoreSupport/qt/WebFrameNetworkingContext.cpp:
              * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp:
              * WebProcess/WebCoreSupport/win/WebContextMenuClientWin.cpp:
              * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
              * WebProcess/WebCoreSupport/win/WebPopupMenuWin.cpp:
              * WebProcess/WebKitMain.cpp:
              * WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
              * WebProcess/WebPage/DecoderAdapter.cpp:
              * WebProcess/WebPage/DrawingArea.cpp:
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              * WebProcess/WebPage/EncoderAdapter.cpp:
              * WebProcess/WebPage/FindController.cpp:
              * WebProcess/WebPage/LayerBackedDrawingArea.cpp:
              * WebProcess/WebPage/PageOverlay.cpp:
              * WebProcess/WebPage/TiledDrawingArea.cpp:
              * WebProcess/WebPage/WebBackForwardListProxy.cpp:
              * WebProcess/WebPage/WebContextMenu.cpp:
              * WebProcess/WebPage/WebEditCommand.cpp:
              * WebProcess/WebPage/WebFrame.cpp:
              * WebProcess/WebPage/WebInspector.cpp:
              * WebProcess/WebPage/WebOpenPanelResultListener.cpp:
              * WebProcess/WebPage/WebPage.cpp:
              * WebProcess/WebPage/WebPageGroupProxy.cpp:
              * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
              * WebProcess/WebPage/mac/ChunkedUpdateDrawingAreaMac.cpp:
              * WebProcess/WebPage/qt/ChunkedUpdateDrawingAreaQt.cpp:
              * WebProcess/WebPage/qt/TiledDrawingAreaQt.cpp:
              * WebProcess/WebPage/qt/WebInspectorQt.cpp:
              * WebProcess/WebPage/qt/WebPageQt.cpp:
              * WebProcess/WebPage/win/ChunkedUpdateDrawingAreaWin.cpp:
              * WebProcess/WebPage/win/LayerBackedDrawingAreaWin.cpp:
              * WebProcess/WebPage/win/WebInspectorWin.cpp:
              * WebProcess/WebPage/win/WebPageWin.cpp:
              * WebProcess/WebProcess.cpp:
              * WebProcess/gtk/WebProcessGtk.cpp:
              * WebProcess/gtk/WebProcessMainGtk.cpp:
              * WebProcess/qt/WebProcessMainQt.cpp:
              * WebProcess/qt/WebProcessQt.cpp:
              * WebProcess/win/WebProcessMainWin.cpp:
              * WebProcess/win/WebProcessWin.cpp:
              * config.h: Copied from Source/WebKit2/WebKit2Prefix.h.
              * win/WebKit2Common.vsprops:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48183967
  6. 15 Jan, 2011 1 commit
    • abarth@webkit.org's avatar
      Move WebKit2 into Source · be159d97
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=52438
      
      Rubber-stamped by Eric Seidel.
      
      .: 
      
      Update reference to WebKit2.
      
      * DerivedSources.pro:
      * GNUmakefile.am:
      * Makefile:
      * Source/cmake/WebKitPackaging.cmake:
      * WebKit.pro:
      * configure.ac:
      
      Source/WebCore: 
      
      * WebCore.pro:
      
      Source/WebKit2: 
      
      * DerivedSources.pro:
      * GNUmakefile.am:
      * WebKit2.pro:
      * WebProcess.pro:
      * win/WebKit2.vcproj:
      * win/WebKit2WebProcess.vcproj:
      
      Tools: 
      
      * MiniBrowser/qt/MiniBrowser.pro:
      * Scripts/build-webkit:
      * Scripts/do-file-rename:
      * Scripts/do-webcore-rename:
      * Scripts/test-webkitpy:
      * Scripts/webkitdirs.pm:
      * Scripts/webkitpy/style/checker.py:
      * WebKitTestRunner/DerivedSources.pro:
      * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro:
      * WebKitTestRunner/qt/WebKitTestRunner.pro:
      
      WebKit/win: 
      
      Update reference to WebKit2.
      
      * WebKit.vcproj/WebKit.sln:
      
      Websites/bugs.webkit.org: 
      
      Remove WebKit2 from the list of top-level source directories.
      
      * PrettyPatch/PrettyPatch.rb:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be159d97
  7. 24 Nov, 2010 1 commit
    • abecsi@webkit.org's avatar
      2010-11-24 Andras Becsi <abecsi@inf.u-szeged.hu> · 6234000a
      abecsi@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              Make WebKit2 compile with !ENABLE(INSPECTOR).
              https://bugs.webkit.org/show_bug.cgi?id=49973
      
              No new tests needed.
      
              * bindings/js/ScriptHeapSnapshot.h:
              * bindings/js/ScriptProfile.cpp:
              * bindings/js/ScriptProfile.h:
              * inspector/InspectorDebuggerAgent.cpp:
              * inspector/InspectorDebuggerAgent.h:
              * inspector/InspectorProfilerAgent.cpp:
              * inspector/InspectorProfilerAgent.h:
              * inspector/ScriptBreakpoint.h:
      2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
      
              Reviewed by Kenneth Rohde Christiansen.
      
              Make WebKit2 compile with !ENABLE(INSPECTOR).
              https://bugs.webkit.org/show_bug.cgi?id=49973
      
              * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
              (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
      2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
      
              Reviewed by Kenneth Rohde Christiansen.
      
              Make WebKit2 compile with !ENABLE(INSPECTOR).
              https://bugs.webkit.org/show_bug.cgi?id=49973
      
              * Shared/API/c/WKSharedAPICast.h:
              (WebKit::toAPI):
              (WebKit::toImpl):
              * UIProcess/API/C/WKAPICast.h:
              * UIProcess/API/C/WKInspector.cpp:
              * UIProcess/API/C/WKInspector.h:
              * UIProcess/API/C/WKPage.cpp:
              * UIProcess/API/C/WKPage.h:
              * UIProcess/WebInspectorProxy.cpp:
              * UIProcess/WebInspectorProxy.h:
              * UIProcess/WebInspectorProxy.messages.in:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::close):
              (WebKit::WebPageProxy::didReceiveMessage):
              (WebKit::WebPageProxy::didReceiveSyncMessage):
              (WebKit::WebPageProxy::processDidCrash):
              * UIProcess/WebPageProxy.h:
              * UIProcess/mac/WebInspectorProxyMac.mm:
              * UIProcess/qt/WebInspectorProxyQt.cpp:
              * UIProcess/win/WebInspectorProxyWin.cpp:
              * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorClient.h:
              * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
              * WebProcess/WebCoreSupport/WebInspectorFrontendClient.h:
              * WebProcess/WebPage/WebInspector.cpp:
              * WebProcess/WebPage/WebInspector.h:
              * WebProcess/WebPage/WebInspector.messages.in:
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::WebPage):
              (WebKit::WebPage::close):
              (WebKit::WebPage::windowIsFocused):
              (WebKit::WebPage::didReceiveMessage):
              * WebProcess/WebPage/WebPage.h:
              * WebProcess/WebPage/qt/WebInspectorQt.cpp:
              * WebProcess/WebPage/win/WebInspectorWin.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6234000a
  8. 02 Nov, 2010 1 commit
    • timothy@apple.com's avatar
      Add WKInspector public APIs. · c3bef1f5
      timothy@apple.com authored
      https://webkit.org/b/48718
      
      Reviewed by Pavel Feldman.
      
      * DerivedSources.make: Added WebInspector to MESSAGE_RECEIVERS section.
      * UIProcess/API/C/WKInspector.cpp:
      (WKInspectorIsVisible): Added.
      (WKInspectorShow): Added.
      (WKInspectorClose): Added.
      (WKInspectorShowConsole): Added.
      (WKInspectorIsAttached): Added.
      (WKInspectorAttach): Added.
      (WKInspectorDetach): Added.
      (WKInspectorIsDebuggingJavaScript): Added.
      (WKInspectorToggleJavaScriptDebugging): Added.
      (WKInspectorIsProfilingJavaScript): Added.
      (WKInspectorToggleJavaScriptProfiling): Added.
      (WKInspectorIsProfilingPage): Added.
      (WKInspectorTogglePageProfiling): Added.
      * UIProcess/API/C/WKInspector.h: Added new functions.
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::WebInspectorProxy): Initialize new booleans.
      (WebKit::WebInspectorProxy::invalidate): Reset new booleans.
      (WebKit::WebInspectorProxy::show): Added.
      (WebKit::WebInspectorProxy::close): Added.
      (WebKit::WebInspectorProxy::showConsole): Added.
      (WebKit::WebInspectorProxy::attach): Added.
      (WebKit::WebInspectorProxy::detach): Added.
      (WebKit::WebInspectorProxy::toggleJavaScriptDebugging): Added.
      (WebKit::WebInspectorProxy::toggleJavaScriptProfiling): Added.
      (WebKit::WebInspectorProxy::togglePageProfiling): Added.
      * UIProcess/WebInspectorProxy.h:
      (WebKit::WebInspectorProxy::isVisible): Added.
      (WebKit::WebInspectorProxy::isAttached): Added.
      (WebKit::WebInspectorProxy::isDebuggingJavaScript): Added.
      (WebKit::WebInspectorProxy::isProfilingJavaScript): Added.
      (WebKit::WebInspectorProxy::isProfilingPage): Added.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close): Invalidate the WebInspectorProxy.
      (WebKit::WebPageProxy::inspector): Return 0 if closed or invalid.
      * WebKit2.pro: Added new files.
      * WebKit2.xcodeproj/project.pbxproj: Added new Files.
      * WebProcess/WebPage/WebInspector.cpp:
      (WebKit::WebInspector::show): Added.
      (WebKit::WebInspector::close): Added.
      (WebKit::WebInspector::showConsole): Added.
      (WebKit::WebInspector::startJavaScriptDebugging): Added.
      (WebKit::WebInspector::stopJavaScriptDebugging): Added.
      (WebKit::WebInspector::startJavaScriptProfiling): Added.
      (WebKit::WebInspector::stopJavaScriptProfiling): Added.
      (WebKit::WebInspector::startPageProfiling): Added.
      (WebKit::WebInspector::stopPageProfiling): Added.
      * WebProcess/WebPage/WebInspector.h:
      (WebKit::WebInspector::page): Added.
      * WebProcess/WebPage/WebInspector.messages.in: Added.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::close): Destroy the WebInspector.
      (WebKit::WebPage::inspector): Return 0 if closed.
      (WebKit::WebPage::didReceiveMessage): Send the message to the WebInspector
      if the message class is MessageClassWebInspector.
      * win/WebKit2.vcproj: Added new files.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@71115 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3bef1f5
  9. 25 Oct, 2010 1 commit
    • timothy@apple.com's avatar
      Stub out WebInspector objects and WKInspectorRef API. · e0693771
      timothy@apple.com authored
      https://webkit.org/b/48265
      
      Reviewed by Anders Carlsson.
      
      * Platform/CoreIPC/MessageID.h: Added MessageClassWebInspector and MessageClassWebInspectorProxy.
      * Shared/API/c/WKBase.h: Added WKInspectorRef.
      * Shared/APIObject.h: Added TypeInspector.
      * UIProcess/API/C/WKAPICast.h: Added WKInspectorRef to WebInspectorProxy mapping.
      * UIProcess/API/C/WKInspector.cpp: Added.
      (WKInspectorGetTypeID):
      (WKInspectorGetPage):
      * UIProcess/API/C/WKInspector.h: Added.
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetInspector): Added.
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebInspectorProxy.cpp: Added.
      (WebKit::WebInspectorProxy::WebInspectorProxy):
      (WebKit::WebInspectorProxy::~WebInspectorProxy):
      (WebKit::WebInspectorProxy::invalidate):
      * UIProcess/WebInspectorProxy.h:
      (WebKit::WebInspectorProxy::create):
      (WebKit::WebInspectorProxy::page):
      (WebKit::WebInspectorProxy::type):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::inspector): Lazily create the WebInspectorProxy.
      * UIProcess/WebPageProxy.h:
      * WebKit2.pro: Added new files.
      * WebKit2.xcodeproj/project.pbxproj: Added new files.
      * WebProcess/WebPage/WebInspector.cpp: Added.
      (WebKit::WebInspector::WebInspector):
      * WebProcess/WebPage/WebInspector.h: Added.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::inspector): Lazily create the WebInspector.
      * WebProcess/WebPage/WebPage.h:
      * win/WebKit2.vcproj: Added new files.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70504 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0693771
  10. 06 Oct, 2010 1 commit
    • andersca@apple.com's avatar
      Rename toRef/toWK to toAPI/toImpl · 0053508a
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=47281
      
      Reviewed by Sam Weinig.
      
      * Shared/API/c/WKArray.cpp:
      * Shared/API/c/WKCertificateInfo.cpp:
      * Shared/API/c/WKData.cpp:
      * Shared/API/c/WKDictionary.cpp:
      * Shared/API/c/WKError.cpp:
      * Shared/API/c/WKMutableArray.cpp:
      * Shared/API/c/WKMutableDictionary.cpp:
      * Shared/API/c/WKNumber.cpp:
      * Shared/API/c/WKSerializedScriptValue.cpp:
      * Shared/API/c/WKSharedAPICast.h:
      * Shared/API/c/WKString.cpp:
      * Shared/API/c/WKType.cpp:
      * Shared/API/c/WKURL.cpp:
      * Shared/API/c/WKURLRequest.cpp:
      * Shared/API/c/WKURLResponse.cpp:
      * Shared/API/c/cf/WKStringCF.cpp:
      * Shared/API/c/cf/WKURLCF.cpp:
      * Shared/API/c/cf/WKURLRequestCF.cpp:
      * Shared/API/c/cf/WKURLResponseCF.cpp:
      * Shared/API/c/mac/WKCertificateInfoMac.mm:
      * Shared/API/c/mac/WKURLRequestNS.mm:
      * Shared/API/c/mac/WKURLResponseNS.mm:
      * Shared/API/c/win/WKCertificateInfoWin.cpp:
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      * UIProcess/API/C/WKContext.cpp:
      * UIProcess/API/C/WKFormSubmissionListener.cpp:
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      * UIProcess/API/C/WKNavigationData.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPageNamespace.cpp:
      * UIProcess/API/C/WKPreferences.cpp:
      * UIProcess/API/C/WKPreferencesPrivate.cpp:
      * UIProcess/API/C/win/WKContextWin.cpp:
      * UIProcess/API/C/win/WKView.cpp:
      * UIProcess/API/cpp/qt/WKStringQt.cpp:
      * UIProcess/API/cpp/qt/WKURLQt.cpp:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/API/qt/ClientImpl.cpp:
      * UIProcess/API/qt/qwkpage.cpp:
      * UIProcess/GenericCallback.h:
      * UIProcess/WebContextInjectedBundleClient.cpp:
      * UIProcess/WebFormClient.cpp:
      * UIProcess/WebHistoryClient.cpp:
      * UIProcess/WebLoaderClient.cpp:
      * UIProcess/WebPolicyClient.cpp:
      * UIProcess/WebUIClient.cpp:
      * UIProcess/mac/ChunkedUpdateDrawingAreaProxyMac.mm:
      * UIProcess/mac/LayerBackedDrawingAreaProxyMac.mm:
      * UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
      * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
      * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
      * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
      * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
      * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
      * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69214 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0053508a
  11. 26 Sep, 2010 1 commit
    • weinig@apple.com's avatar
      Move shared WebKit2 API (used by both bundle and main API) to WebKit2/Shared/API · e7ef4326
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=46587
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      - Moves shared types (WKArrayRef, WKDictionaryRef, etc) to Shared/API/c.
      - Removes WKBundleBase.h and moves all opaque type declarations to WKBase.h (which
        moves to Shared/API/c).
      - Adds WKSharedAPICast.h which includes shared API casting logic and is included
        by both WKAPICast.h and WKBundleAPICast.h now. Moved to using macros for API 
        mappings to reduce verbosity.
      - Move windows c API files from UIProcess/API/win to UIProcess/API/C/win.
      
      * Shared/API: Added.
      * Shared/API/c: Added.
      * Shared/API/c/WKArray.cpp: Copied from UIProcess/API/C/WKArray.cpp.
      * Shared/API/c/WKArray.h: Copied from UIProcess/API/C/WKArray.h.
      * Shared/API/c/WKBase.h: Copied from UIProcess/API/C/WKBase.h.
      * Shared/API/c/WKCertificateInfo.cpp: Copied from UIProcess/API/C/WKCertificateInfo.cpp.
      * Shared/API/c/WKCertificateInfo.h: Copied from UIProcess/API/C/WKCertificateInfo.h.
      * Shared/API/c/WKData.cpp: Copied from UIProcess/API/C/WKData.cpp.
      * Shared/API/c/WKData.h: Copied from UIProcess/API/C/WKData.h.
      * Shared/API/c/WKDictionary.cpp: Copied from UIProcess/API/C/WKDictionary.cpp.
      * Shared/API/c/WKDictionary.h: Copied from UIProcess/API/C/WKDictionary.h.
      * Shared/API/c/WKError.cpp: Copied from UIProcess/API/C/WKError.cpp.
      * Shared/API/c/WKError.h: Copied from UIProcess/API/C/WKError.h.
      * Shared/API/c/WKMutableArray.cpp: Copied from UIProcess/API/C/WKMutableArray.cpp.
      * Shared/API/c/WKMutableArray.h: Copied from UIProcess/API/C/WKMutableArray.h.
      * Shared/API/c/WKMutableDictionary.cpp: Copied from UIProcess/API/C/WKMutableDictionary.cpp.
      * Shared/API/c/WKMutableDictionary.h: Copied from UIProcess/API/C/WKMutableDictionary.h.
      * Shared/API/c/WKNumber.cpp: Copied from UIProcess/API/C/WKNumber.cpp.
      * Shared/API/c/WKNumber.h: Copied from UIProcess/API/C/WKNumber.h.
      * Shared/API/c/WKSerializedScriptValue.cpp: Copied from UIProcess/API/C/WKSerializedScriptValue.cpp.
      * Shared/API/c/WKSerializedScriptValue.h: Copied from UIProcess/API/C/WKSerializedScriptValue.h.
      * Shared/API/c/WKSharedAPICast.h: Copied from UIProcess/API/C/WKAPICast.h.
      * Shared/API/c/WKString.cpp: Copied from UIProcess/API/C/WKString.cpp.
      * Shared/API/c/WKString.h: Copied from UIProcess/API/C/WKString.h.
      * Shared/API/c/WKType.cpp: Copied from UIProcess/API/C/WKType.cpp.
      * Shared/API/c/WKType.h: Copied from UIProcess/API/C/WKType.h.
      * Shared/API/c/WKURL.cpp: Copied from UIProcess/API/C/WKURL.cpp.
      * Shared/API/c/WKURL.h: Copied from UIProcess/API/C/WKURL.h.
      * Shared/API/c/WKURLRequest.cpp: Copied from UIProcess/API/C/WKURLRequest.cpp.
      * Shared/API/c/WKURLRequest.h: Copied from UIProcess/API/C/WKURLRequest.h.
      * Shared/API/c/WKURLResponse.cpp: Copied from UIProcess/API/C/WKURLResponse.cpp.
      * Shared/API/c/WKURLResponse.h: Copied from UIProcess/API/C/WKURLResponse.h.
      * Shared/API/c/cf: Copied from UIProcess/API/C/cf.
      * Shared/API/c/mac: Copied from UIProcess/API/C/mac.
      * Shared/API/c/win: Added.
      * Shared/API/c/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
      * Shared/API/c/win/WKCertificateInfoWin.cpp: Copied from UIProcess/API/C/win/WKCertificateInfoWin.cpp.
      * Shared/API/c/win/WKCertificateInfoWin.h: Copied from UIProcess/API/C/win/WKCertificateInfoWin.h.
      * UIProcess/API/C/WKAPICast.h: Replaced.
      * UIProcess/API/C/WKArray.cpp: Removed.
      * UIProcess/API/C/WKArray.h: Removed.
      * UIProcess/API/C/WKBase.h: Removed.
      * UIProcess/API/C/WKCertificateInfo.cpp: Removed.
      * UIProcess/API/C/WKCertificateInfo.h: Removed.
      * UIProcess/API/C/WKData.cpp: Removed.
      * UIProcess/API/C/WKData.h: Removed.
      * UIProcess/API/C/WKDictionary.cpp: Removed.
      * UIProcess/API/C/WKDictionary.h: Removed.
      * UIProcess/API/C/WKError.cpp: Removed.
      * UIProcess/API/C/WKError.h: Removed.
      * UIProcess/API/C/WKMutableArray.cpp: Removed.
      * UIProcess/API/C/WKMutableArray.h: Removed.
      * UIProcess/API/C/WKMutableDictionary.cpp: Removed.
      * UIProcess/API/C/WKMutableDictionary.h: Removed.
      * UIProcess/API/C/WKNumber.cpp: Removed.
      * UIProcess/API/C/WKNumber.h: Removed.
      * UIProcess/API/C/WKSerializedScriptValue.cpp: Removed.
      * UIProcess/API/C/WKSerializedScriptValue.h: Removed.
      * UIProcess/API/C/WKString.cpp: Removed.
      * UIProcess/API/C/WKString.h: Removed.
      * UIProcess/API/C/WKType.cpp: Removed.
      * UIProcess/API/C/WKType.h: Removed.
      * UIProcess/API/C/WKURL.cpp: Removed.
      * UIProcess/API/C/WKURL.h: Removed.
      * UIProcess/API/C/WKURLRequest.cpp: Removed.
      * UIProcess/API/C/WKURLRequest.h: Removed.
      * UIProcess/API/C/WKURLResponse.cpp: Removed.
      * UIProcess/API/C/WKURLResponse.h: Removed.
      * UIProcess/API/C/cf: Removed.
      * UIProcess/API/C/cf/WKStringCF.cpp: Removed.
      * UIProcess/API/C/cf/WKStringCF.h: Removed.
      * UIProcess/API/C/cf/WKURLCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLCF.h: Removed.
      * UIProcess/API/C/cf/WKURLRequestCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLRequestCF.h: Removed.
      * UIProcess/API/C/cf/WKURLResponseCF.cpp: Removed.
      * UIProcess/API/C/cf/WKURLResponseCF.h: Removed.
      * UIProcess/API/C/mac: Removed.
      * UIProcess/API/C/mac/WKCertificateInfoMac.h: Removed.
      * UIProcess/API/C/mac/WKCertificateInfoMac.mm: Removed.
      * UIProcess/API/C/mac/WKURLRequestNS.h: Removed.
      * UIProcess/API/C/mac/WKURLRequestNS.mm: Removed.
      * UIProcess/API/C/mac/WKURLResponseNS.h: Removed.
      * UIProcess/API/C/mac/WKURLResponseNS.mm: Removed.
      * UIProcess/API/C/win/WKAPICastWin.h: Copied from UIProcess/API/win/WKAPICastWin.h.
      * UIProcess/API/C/win/WKBaseWin.h: Copied from UIProcess/API/win/WKBaseWin.h.
      * UIProcess/API/C/win/WKCertificateInfoWin.cpp: Removed.
      * UIProcess/API/C/win/WKCertificateInfoWin.h: Removed.
      * UIProcess/API/C/win/WKView.cpp: Copied from UIProcess/API/win/WKView.cpp.
      * UIProcess/API/C/win/WKView.h: Copied from UIProcess/API/win/WKView.h.
      * UIProcess/API/win: Removed.
      * UIProcess/API/win/WKAPICastWin.h: Removed.
      * UIProcess/API/win/WKBaseWin.h: Removed.
      * UIProcess/API/win/WKView.cpp: Removed.
      * UIProcess/API/win/WKView.h: Removed.
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
      * WebProcess/InjectedBundle/API/c/WKBundleBase.h: Removed.
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.h:
      * WebProcess/InjectedBundle/API/c/WKBundleInitialize.h:
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
      * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      
      WebKitTools: 
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7ef4326
  12. 01 Sep, 2010 1 commit
    • weinig@apple.com's avatar
      Add URLResponse API for WebKit2 · fff73c18
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=45062
      
      Reviewed by Anders Carlsson.
      
      Add WebURLResponse class and WKURLResponseRef C API to go with it. Right now,
      instance of WKURLResponseRef are manipulated via platform types just like
      WKURLRequestRef.
      
      This just adds the type and conversion functions, no uses yet.
      
      * Shared/APIObject.h:
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebURLResponse.cpp: Added.
      (WebKit::WebURLResponse::WebURLResponse):
      * Shared/WebURLResponse.h: Added.
      (WebKit::WebURLResponse::create):
      (WebKit::WebURLResponse::resourceResponse):
      (WebKit::WebURLResponse::type):
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::encodeWithNSKeyedArchiver):
      (CoreIPC::decodeWithNSKeyedArchiver):
      (CoreIPC::encodeResourceRequest):
      (CoreIPC::decodeResourceRequest):
      * Shared/mac/WebURLResponseMac.mm: Added.
      (WebKit::WebURLResponse::WebURLResponse):
      (WebKit::WebURLResponse::platformResponse):
      * Shared/qt/WebURLResponseQt.cpp: Added.
      (WebKit::WebURLResponse::WebURLResponse):
      (WebKit::WebURLResponse::platformResponse):
      * Shared/win/WebURLResponseWin.cpp: Added.
      (WebKit::WebURLResponse::WebURLResponse):
      (WebKit::WebURLResponse::platformResponse):
      * UIProcess/API/C/WKURLResponse.cpp: Added.
      (WKURLResponseGetTypeID):
      * UIProcess/API/C/WKURLResponse.h: Added.
      * UIProcess/API/C/cf/WKURLResponseCF.cpp: Added.
      (WKURLResponseCreateWithCFURLResponse):
      (WKURLResponseCopyCFURLResponse):
      * UIProcess/API/C/cf/WKURLResponseCF.h: Added.
      * UIProcess/API/C/mac/WKURLResponseNS.h: Added.
      * UIProcess/API/C/mac/WKURLResponseNS.mm: Added.
      (WKURLResponseCreateWithNSURLResponse):
      (WKURLResponseCopyNSURLResponse):
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fff73c18
  13. 30 Aug, 2010 1 commit
    • weinig@apple.com's avatar
      Add URLRequest API for WebKit2 · 0ffd260c
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=44910
      
      Reviewed by Anders Carlsson.
      
      Add WebURLRequest class and WKURLRequestRef C API to go with it. Right now,
      instance of WKURLRequestRef are manipulated via platform types, a la the
      WKStringRef and WKURLRef types.
      
      - Pipes WKPageLoadURLRequest through to the WebProcess.
      
      * Shared/APIObject.h:
      * Shared/CoreIPCSupport/WebPageMessageKinds.h:
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebURLRequest.cpp: Added.
      (WebKit::WebURLRequest::WebURLRequest):
      * Shared/WebURLRequest.h: Added.
      (WebKit::WebURLRequest::create):
      (WebKit::WebURLRequest::resourceRequest):
      (WebKit::WebURLRequest::type):
      * Shared/mac/WebCoreArgumentCodersMac.mm: Added.
      (CoreIPC::encodeResourceRequest):
      (CoreIPC::decodeResourceRequest):
      * Shared/mac/WebURLRequestMac.mm: Added.
      (WebKit::WebURLRequest::WebURLRequest):
      (WebKit::WebURLRequest::platformRequest):
      * Shared/qt/WebCoreArgumentCodersQt.cpp: Added.
      (CoreIPC::encodeResourceRequest):
      (CoreIPC::decodeResourceRequest):
      * Shared/qt/WebURLRequestQt.cpp: Added.
      (WebKit::WebURLRequest::WebURLRequest):
      (WebKit::WebURLRequest::platformRequest):
      * Shared/win/WebCoreArgumentCodersWin.cpp: Added.
      (CoreIPC::encodeResourceRequest):
      (CoreIPC::decodeResourceRequest):
      * Shared/win/WebURLRequestWin.cpp: Added.
      (WebKit::WebURLRequest::WebURLRequest):
      (WebKit::WebURLRequest::platformRequest):
      * UIProcess/API/C/WKAPICast.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageLoadURLRequest):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKURLRequest.cpp: Added.
      (WKURLRequestGetTypeID):
      * UIProcess/API/C/WKURLRequest.h: Added.
      * UIProcess/API/C/WebKit2.h:
      * UIProcess/API/C/cf/WKURLRequestCF.cpp: Added.
      (WKURLRequestCreateWithCFURLRequest):
      (WKURLRequestCopyCFURLRequest):
      * UIProcess/API/C/cf/WKURLRequestCF.h: Added.
      * UIProcess/API/C/mac: Added.
      * UIProcess/API/C/mac/WKURLRequestNS.h: Added.
      * UIProcess/API/C/mac/WKURLRequestNS.mm: Added.
      (WKURLRequestCreateWithNSURLRequest):
      (WKURLRequestCopyNSURLRequest):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::loadURL):
      (WebKit::WebPageProxy::loadURLRequest):
      * UIProcess/WebPageProxy.h:
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::loadURL):
      (WebKit::WebPage::loadURLRequest):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ffd260c
  14. 21 Aug, 2010 1 commit
    • weinig@apple.com's avatar
      Remove specialized retain/release functions in favor of a single one for WKTypeRefs · 61512437
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=44386
      
      Reviewed by Dan Bernstein.
      
      WebKit2: 
      
      * UIProcess/API/C/WKArray.cpp:
      (WKArrayGetSize):
      * UIProcess/API/C/WKArray.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      (WKBackForwardListCopyForwardListWithLimit):
      * UIProcess/API/C/WKBackForwardList.h:
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemCopyTitle):
      * UIProcess/API/C/WKBackForwardListItem.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.cpp:
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKData.cpp:
      (WKDataGetSize):
      * UIProcess/API/C/WKData.h:
      * UIProcess/API/C/WKDictionary.cpp:
      (WKDictionaryCopyKeys):
      * UIProcess/API/C/WKDictionary.h:
      * UIProcess/API/C/WKError.h:
      * UIProcess/API/C/WKFormSubmissionListener.cpp:
      (WKFormSubmissionListenerContinue):
      * UIProcess/API/C/WKFormSubmissionListener.h:
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetPage):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      (WKFramePolicyListenerIgnore):
      * UIProcess/API/C/WKFramePolicyListener.h:
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataCopyURL):
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetContext):
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesCreate):
      (WKPreferencesGetLocalStorageEnabled):
      * UIProcess/API/C/WKPreferences.h:
      * UIProcess/API/C/WKString.cpp:
      * UIProcess/API/C/WKString.h:
      * UIProcess/API/C/WKType.cpp:
      (WKRetain):
      (WKRelease):
      * UIProcess/API/C/WKType.h:
      * UIProcess/API/C/WKURL.cpp:
      (WKURLGetTypeID):
      * UIProcess/API/C/WKURL.h:
      * UIProcess/API/cpp/WKRetainPtr.h:
      * UIProcess/API/win/WKView.cpp:
      * UIProcess/API/win/WKView.h:
      * UIProcess/WebPreferences.cpp:
      (WebKit::WebPreferences::shared):
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
      (WKBundleNodeHandleGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
      (WKBundleScriptWorldNormalWorld):
      * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.h:
      
      WebKitTools: 
      
      * MiniBrowser/mac/AppDelegate.m:
      (didRecieveMessageFromInjectedBundle):
      (didNavigateWithNavigationData):
      (-[BrowserAppDelegate init]):
      (-[BrowserAppDelegate applicationWillTerminate:]):
      * MiniBrowser/mac/BrowserStatisticsWindowController.m:
      (-[BrowserStatisticsWindowController initWithThreadedWKContextRef:processWKContextRef:]):
      (-[BrowserStatisticsWindowController dealloc]):
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController initWithPageNamespace:]):
      (-[BrowserWindowController fetch:]):
      (-[BrowserWindowController windowWillClose:]):
      (-[BrowserWindowController applicationTerminating]):
      (closePage):
      (runJavaScriptAlert):
      (runJavaScriptConfirm):
      (runJavaScriptPrompt):
      (-[BrowserWindowController updateProvisionalURLForFrame:]):
      * MiniBrowser/mac/WebBundle/WebBundleMain.m:
      (didClearWindowObjectForFrame):
      * MiniBrowser/win/BrowserView.cpp:
      (BrowserView::goToURL):
      * WebKitTestRunner/win/PlatformWebViewWin.cpp:
      (WTR::PlatformWebView::~PlatformWebView):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      61512437
  15. 30 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43283 · d895c52b
      weinig@apple.com authored
      Add APIObject template introspection support.
      
      Reviewed by Anders Carlsson.
      
      Add a way to get the type the APIObject::Type from the APIObject subclass typenames
      for template fun. Use this to make a type checking version of ImmutableArray::at.
      
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::at):
      (WebKit::ImmutableArray::type):
      * Shared/WebString.h:
      (WebKit::WebString::type):
      * Shared/WebURL.h:
      (WebKit::WebURL::type):
      * UIProcess/API/C/WKArray.cpp:
      (WKArrayGetTypeID):
      * UIProcess/API/C/WKBackForwardList.cpp:
      (WKBackForwardListGetTypeID):
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemGetTypeID):
      * UIProcess/API/C/WKContext.cpp:
      (WKContextGetTypeID):
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetTypeID):
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      (WKFramePolicyListenerGetTypeID):
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataGetTypeID):
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetTypeID):
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetTypeID):
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesGetTypeID):
      * UIProcess/API/C/WKString.cpp:
      (WKStringGetTypeID):
      * UIProcess/API/C/WKURL.cpp:
      (WKURLGetTypeID):
      * UIProcess/WebBackForwardList.h:
      (WebKit::WebBackForwardList::type):
      * UIProcess/WebBackForwardListItem.h:
      (WebKit::WebBackForwardListItem::type):
      * UIProcess/WebContext.h:
      (WebKit::WebContext::type):
      * UIProcess/WebFramePolicyListenerProxy.h:
      (WebKit::WebFramePolicyListenerProxy::type):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::type):
      * UIProcess/WebNavigationData.h:
      (WebKit::WebNavigationData::type):
      * UIProcess/WebPageNamespace.h:
      (WebKit::WebPageNamespace::type):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::type):
      * UIProcess/WebPreferences.h:
      (WebKit::WebPreferences::type):
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageGetTypeID):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      (WebKit::InjectedBundle::type):
      * WebProcess/WebPage/WebFrame.h:
      (WebKit::WebFrame::type):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::type):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d895c52b
  16. 28 Jul, 2010 2 commits
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43163 · 438853f8
      weinig@apple.com authored
      Add a CF-style base type (WKTypeRef) as a base for polymorphic functions.
      
      Reviewed by Darin Adler.
      
      - Add first polymorphic function, WKGetTypeID.
      - Add functions to each WK type to get their respective TypeIDs.
      - Adds WebURL to complement WebString.
      
      * Shared/APIObject.h:
      (WebKit::APIObject::):
      (WebKit::APIObject::~APIObject):
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::type):
      * Shared/WebString.h:
      (WebKit::WebString::type):
      * Shared/WebURL.h: Added.
      (WebKit::WebURL::create):
      (WebKit::WebURL::type):
      (WebKit::WebURL::isNull):
      (WebKit::WebURL::isEmpty):
      (WebKit::WebURL::string):
      (WebKit::WebURL::WebURL):
      * UIProcess/API/C/WKAPICast.h:
      (WebKit::ProxyingRefPtr::ProxyingRefPtr):
      (WebKit::ProxyingRefPtr::operator APIType):
      (toRef):
      (toURLRef):
      (toCopiedURLRef):
      * UIProcess/API/C/WKArray.cpp:
      (WKArrayGetTypeID):
      * UIProcess/API/C/WKArray.h:
      * UIProcess/API/C/WKBackForwardList.cpp:
      (WKBackForwardListGetTypeID):
      * UIProcess/API/C/WKBackForwardList.h:
      * UIProcess/API/C/WKBackForwardListItem.cpp:
      (WKBackForwardListItemGetTypeID):
      * UIProcess/API/C/WKBackForwardListItem.h:
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.cpp:
      (WKContextGetTypeID):
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetTypeID):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKFramePolicyListener.cpp:
      (WKFramePolicyListenerGetTypeID):
      * UIProcess/API/C/WKFramePolicyListener.h:
      * UIProcess/API/C/WKNavigationData.cpp:
      (WKNavigationDataGetTypeID):
      * UIProcess/API/C/WKNavigationData.h:
      * UIProcess/API/C/WKPage.cpp:
      (WKPageGetTypeID):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPageNamespace.cpp:
      (WKPageNamespaceGetTypeID):
      * UIProcess/API/C/WKPageNamespace.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesGetTypeID):
      * UIProcess/API/C/WKPreferences.h:
      * UIProcess/API/C/WKString.cpp:
      (WKStringGetTypeID):
      * UIProcess/API/C/WKString.h:
      * UIProcess/API/C/WKType.cpp: Added.
      (WKGetTypeID):
      * UIProcess/API/C/WKType.h: Added.
      * UIProcess/API/C/WKURL.cpp:
      (WKURLGetTypeID):
      * UIProcess/API/C/WKURL.h:
      * UIProcess/API/win/WKView.cpp:
      (WKViewGetTypeID):
      * UIProcess/API/win/WKView.h:
      * UIProcess/WebBackForwardList.h:
      (WebKit::WebBackForwardList::type):
      * UIProcess/WebBackForwardListItem.h:
      (WebKit::WebBackForwardListItem::type):
      * UIProcess/WebContext.h:
      (WebKit::WebContext::type):
      * UIProcess/WebFramePolicyListenerProxy.h:
      (WebKit::WebFramePolicyListenerProxy::type):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::type):
      * UIProcess/WebNavigationData.h:
      (WebKit::WebNavigationData::type):
      * UIProcess/WebPageNamespace.h:
      (WebKit::WebPageNamespace::type):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::type):
      * UIProcess/WebPreferences.h:
      (WebKit::WebPreferences::type):
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFrameGetTypeID):
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.h:
      * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
      (WKBundlePageGetTypeID):
      (WKBundlePageSetEditorClient):
      (WKBundlePageSetLoaderClient):
      (WKBundlePageSetUIClient):
      * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
      * WebProcess/WebPage/WebFrame.h:
      (WebKit::WebFrame::type):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::type):
      * win/WebKit2.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      438853f8
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43097 · 97cb2fd1
      weinig@apple.com authored
      Make all objects in the WebKit2 API inherit from a single base class
      
      Reviewed by Anders Carlsson.
      
      - Adds an APIObject base class for all objects which can get vender through
        the C API to inherit from.
      - Adds a WebString class which wraps WebCore::String for now. I am not too fond of
        this solution, so we continue should iterate on it.
      - This is a first step toward make a CF-style base type (eg. CFTypeRef) for the C-API.
      
      * Shared/APIObject.h: Added.
      (WebKit::APIObject::APIObject):
      Base class for API objects.
      
      * Shared/ImmutableArray.h:
      Make inherit from APIObject.
      
      * Shared/WebString.h: Added.
      (WebKit::WebString::create):
      (WebKit::WebString::isNull):
      (WebKit::WebString::isEmpty):
      (WebKit::WebString::string):
      (WebKit::WebString::WebString):
      Wraps a WebCore::String so that it can be passed out to the API
      and still inherit from APIObject.
      
      * UIProcess/API/C/WKAPICast.h:
      (WebKit::WebStringAdaptor::WebStringAdaptor):
      (WebKit::WebStringAdaptor::operator WKStringRef):
      (WebKit::WebStringAdaptor::operator WKURLRef):
      Update conversion methods to deal in terms of WebStrings. Added WebStringAdaptor
      to ease passing strings to client functions.
      
      * UIProcess/API/C/WKContext.cpp:
      (WKContextCreateWithInjectedBundlePath):
      (WKContextPostMessageToInjectedBundle):
      (_WKContextSetAdditionalPluginPath):
      (_WKContextRegisterURLSchemeAsEmptyDocument): 
      Get the WebCore::String from the WebString.
      
      * UIProcess/API/C/WKPage.cpp:
      (WKPageLoadURL):
      Ditto.
      
      * UIProcess/API/C/WKString.cpp:
      (WKStringIsEmpty):
      Implement in terms of WebString.
      
      * UIProcess/API/C/WKURL.cpp:
      * UIProcess/API/C/cf/WKStringCF.cpp:
      (WKStringCreateWithCFString):
      (WKStringCopyCFString):
      Ditto.
          
      * UIProcess/API/C/cf/WKURLCF.cpp:
      (WKURLCreateWithCFURL):
      (WKURLCopyCFURL):
      Ditto.
      
      * UIProcess/WebBackForwardList.h:
      Make inherit from APIObject.
      
      * UIProcess/WebBackForwardListItem.h:
      Ditto.
      
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::didReceiveMessageFromInjectedBundle):
      (WebKit::WebContext::postMessageToInjectedBundle):
      (WebKit::WebContext::registerURLSchemeAsEmptyDocument):
      Use String instead of StringImpl to be consistent.
      
      * UIProcess/WebContext.h:
      Make inherit from APIObject.
      
      * UIProcess/WebFramePolicyListenerProxy.h:
      Ditto.
      
      * UIProcess/WebFrameProxy.h:
      Ditto.
      
      * UIProcess/WebNavigationData.h:
      Ditto.
      
      * UIProcess/WebPageNamespace.h:
      Ditto.
      
      * UIProcess/WebPageProxy.h:
      Ditto.
      
      * UIProcess/WebPreferences.h:
      Ditto.
      
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptPrompt):
      Implement in terms of WebString.
      
      * UIProcess/win/WebView.h:
      Make inherit from APIObject.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Add new files.
      
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundlePostMessage):
      Get the WebCore::String from the WebString.
      
      * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
      (WKBundleFramePauseAnimationOnElementWithId):
      Ditto.
      
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::postMessage):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      Use String instead of StringImpl to be consistent.
      
      * WebProcess/WebPage/WebFrame.h:
      Make inherit from APIObject.
      
      * WebProcess/WebPage/WebPage.h:
      Make inherit from APIObject.
      
      * win/WebKit2.vcproj:
      Add new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64232 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97cb2fd1
  17. 15 Apr, 2010 1 commit
    • ggaren@apple.com's avatar
      Fixed complexity and performance FIXME created by using KURL in the UI · c647272e
      ggaren@apple.com authored
      process -- it turned out that everywhere we were using KURL, we could
      have just used String instead. (That's how Windows WebKit works, too.)
      
      Reviewed by Anders Carlsson.
      
      I kept WKURLRef and WKStringRef distinct opaque types in the API for now,
      though, since there may be profit in changing their backing stores in the
      future, and it's nice for the API to encode a difference between generic
      strings and strings that are valid, canonical URLs.
      
      * Shared/KURLWrapper.h: Removed. Yay!
      
      * Shared/WebCoreTypeArgumentMarshalling.h: Nixed KURL marshalling functions.
      Old callers marshal Strings now, instead. (This is what KURL was doing
      under the covers, anyway.)
      
      * UIProcess/API/C/WKAPICast.h:
      (toWK): Backed by StringImpl* now.
      (toURLRef): Added a disambiguating function for specifying that you want
      a WKURLRef, since StringImpl* converts to WKStringRef by default.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetProvisionalURL):
      (WKFrameGetURL):
      * UIProcess/API/C/WKPage.cpp:
      (WKPageLoadURL):
      * UIProcess/API/C/WKURL.cpp:
      * UIProcess/API/C/cf/WKURLCF.cpp:
      (WKURLCreateWithCFURL):
      (WKURLCopyCFURL):
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::loadURL):
      (WebKit::WebPageProxy::didReceiveMessage):
      (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::urlAtProcessExit):
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
      (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::loadURL):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h: Replaced KURL / KURLWrapper with String.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c647272e
  18. 09 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Fix minor style nits found by the style-script. · 31cb2417
      weinig@apple.com authored
      Reviewed by Anders Carlsson.
      
      * Platform/CoreIPC/ArgumentDecoder.h:
      * Platform/CoreIPC/ArgumentEncoder.cpp:
      * Platform/CoreIPC/Attachment.cpp:
      * Platform/CoreIPC/Connection.cpp:
      * Platform/CoreIPC/Connection.h:
      * Platform/CoreIPC/mac/ConnectionMac.cpp:
      * Platform/CoreIPC/win/ConnectionWin.cpp:
      * Platform/WorkQueue.h:
      * Platform/mac/WorkQueueMac.cpp:
      * Platform/win/RunLoopWin.cpp:
      * Shared/KURLWrapper.h:
      * Shared/WebCoreTypeArgumentMarshalling.h:
      * Shared/mac/UpdateChunk.cpp:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKURL.cpp:
      * UIProcess/Launcher/win/WebProcessLauncher.cpp:
      * UIProcess/ResponsivenessTimer.cpp:
      * UIProcess/WebLoaderClient.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPolicyClient.cpp:
      * UIProcess/WebUIClient.cpp:
      * UIProcess/win/DrawingAreaProxy.cpp:
      * UIProcess/win/WebView.cpp:
      * WebProcess/Launching/win/WebProcessWinMain.cpp:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.h:
      * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp:
      * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
      * WebProcess/WebPage/WebFrame.h:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp:
      * WebProcess/WebProcess.h:
      * WebProcess/win/WebLocalizableStrings.cpp:
      * WebProcess/win/WebLocalizableStrings.h:
      * WebProcess/win/WebProcessMain.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31cb2417
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=37347 · 0664edbb
      weinig@apple.com authored
      Don't use CF types in the new C API
      
      Reviewed by Anders Carlsson.
      
      Replace all uses of CF types in the C API.
      - Replace CFStringRef with WKStringRef.
      - Replace CFURLRef with WKURLRef.
      
      * WebKit2.xcodeproj/project.pbxproj: Add new files.
      
      * Shared/KURLWrapper.h: Added. RefCounted wrapper around KURL.
      * UIProcess/API/C/WKAPICast.h: Add new conversions.
      * UIProcess/API/C/WKBase.h: Add new types.
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFrame.h: 
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      Replace uses of CF types with WK equivalents.
      
      * UIProcess/API/C/WKString.cpp: Added.
      * UIProcess/API/C/WKString.h: Added.
      Represents a WebCore::StringImpl*.
      
      * UIProcess/API/C/WKURL.cpp: Added.
      * UIProcess/API/C/WKURL.h: Added.
      Represents a WebKit::KURLWrapper*.
      
      * UIProcess/API/C/cf: Added.
      * UIProcess/API/C/cf/WKStringCF.cpp: Added.
      * UIProcess/API/C/cf/WKStringCF.h: Added.
      * UIProcess/API/C/cf/WKURLCF.cpp: Added.
      * UIProcess/API/C/cf/WKURLCF.h: Added.
      CoreFoundation conversion files. Allows converting
       WKStringRef <-> CFStringRef
       WKURLRef <-> CFURLRef
      
      * UIProcess/ScriptReturnValueCallback.cpp:
      (WebKit::ScriptReturnValueCallback::performCallbackWithReturnValue):
      * UIProcess/ScriptReturnValueCallback.h:
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::didReceiveTitleForFrame):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::close):
      (WebKit::WebPageProxy::didReceiveTitleForFrame):
      (WebKit::WebPageProxy::decidePolicyForNavigationAction):
      (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
      (WebKit::WebPageProxy::decidePolicyForMIMEType):
      (WebKit::WebPageProxy::runJavaScriptAlert):
      (WebKit::WebPageProxy::didRunJavaScriptInMainFrame):
      (WebKit::WebPageProxy::processDidExit):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::pageTitle):
      (WebKit::WebPageProxy::urlAtProcessExit):
      * UIProcess/WebPolicyClient.cpp:
      (WebKit::WebPolicyClient::decidePolicyForNavigationAction):
      (WebKit::WebPolicyClient::decidePolicyForNewWindowAction):
      (WebKit::WebPolicyClient::decidePolicyForMIMEType):
      * UIProcess/WebPolicyClient.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptAlert):
      * UIProcess/WebUIClient.h:
      Don't use CF types internally at all.
      
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebKit::WebFrameLoaderClient::frameLoaderDestroyed):
      Fix typo.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0664edbb
  19. 08 Apr, 2010 2 commits
    • weinig@apple.com's avatar
      Add WebKit2/UIProcess directory. · b945598b
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig.
      
      * UIProcess: Added.
      * UIProcess/API: Added.
      * UIProcess/API/C: Added.
      * UIProcess/API/C/WKAPICast.h: Added.
      * UIProcess/API/C/WKBase.h: Added.
      * UIProcess/API/C/WKContext.cpp: Added.
      * UIProcess/API/C/WKContext.h: Added.
      * UIProcess/API/C/WKFrame.cpp: Added.
      * UIProcess/API/C/WKFrame.h: Added.
      * UIProcess/API/C/WKFramePolicyListener.cpp: Added.
      * UIProcess/API/C/WKFramePolicyListener.h: Added.
      * UIProcess/API/C/WKPage.cpp: Added.
      * UIProcess/API/C/WKPage.h: Added.
      * UIProcess/API/C/WKPageNamespace.cpp: Added.
      * UIProcess/API/C/WKPageNamespace.h: Added.
      * UIProcess/API/C/WKPreferences.cpp: Added.
      * UIProcess/API/C/WKPreferences.h: Added.
      * UIProcess/API/C/WebKit2.h: Added.
      * UIProcess/API/mac: Added.
      * UIProcess/API/mac/PageClientImpl.h: Added.
      * UIProcess/API/mac/PageClientImpl.mm: Added.
      * UIProcess/API/mac/WKView.h: Added.
      * UIProcess/API/mac/WKView.mm: Added.
      * UIProcess/API/mac/WKViewInternal.h: Added.
      * UIProcess/API/win: Added.
      * UIProcess/API/win/WKAPICastWin.h: Added.
      * UIProcess/API/win/WKBaseWin.h: Added.
      * UIProcess/API/win/WKView.cpp: Added.
      * UIProcess/API/win/WKView.h: Added.
      * UIProcess/Launcher: Added.
      * UIProcess/Launcher/WebProcessLauncher.h: Added.
      * UIProcess/Launcher/mac: Added.
      * UIProcess/Launcher/mac/WebProcessLauncher.mm: Added.
      * UIProcess/Launcher/win: Added.
      * UIProcess/Launcher/win/WebProcessLauncher.cpp: Added.
      * UIProcess/PageClient.h: Added.
      * UIProcess/ProcessModel.h: Added.
      * UIProcess/ResponsivenessTimer.cpp: Added.
      * UIProcess/ResponsivenessTimer.h: Added.
      * UIProcess/ScriptReturnValueCallback.cpp: Added.
      * UIProcess/ScriptReturnValueCallback.h: Added.
      * UIProcess/WebContext.cpp: Added.
      * UIProcess/WebContext.h: Added.
      * UIProcess/WebFramePolicyListenerProxy.cpp: Added.
      * UIProcess/WebFramePolicyListenerProxy.h: Added.
      * UIProcess/WebFrameProxy.cpp: Added.
      * UIProcess/WebFrameProxy.h: Added.
      * UIProcess/WebLoaderClient.cpp: Added.
      * UIProcess/WebLoaderClient.h: Added.
      * UIProcess/WebPageNamespace.cpp: Added.
      * UIProcess/WebPageNamespace.h: Added.
      * UIProcess/WebPageProxy.cpp: Added.
      * UIProcess/WebPageProxy.h: Added.
      * UIProcess/WebPolicyClient.cpp: Added.
      * UIProcess/WebPolicyClient.h: Added.
      * UIProcess/WebPreferences.cpp: Added.
      * UIProcess/WebPreferences.h: Added.
      * UIProcess/WebProcessManager.cpp: Added.
      * UIProcess/WebProcessManager.h: Added.
      * UIProcess/WebProcessProxy.cpp: Added.
      * UIProcess/WebProcessProxy.h: Added.
      * UIProcess/WebUIClient.cpp: Added.
      * UIProcess/WebUIClient.h: Added.
      * UIProcess/mac: Added.
      * UIProcess/mac/DrawingAreaProxy.h: Added.
      * UIProcess/mac/DrawingAreaProxy.mm: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.h: Added.
      * UIProcess/mac/DrawingAreaProxyUpdateChunk.mm: Added.
      * UIProcess/win: Added.
      * UIProcess/win/DrawingAreaProxy.cpp: Added.
      * UIProcess/win/DrawingAreaProxy.h: Added.
      * UIProcess/win/WebView.cpp: Added.
      * UIProcess/win/WebView.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b945598b
    • weinig@apple.com's avatar
      Add WebKit2/WebProcess directory. · d773bc13
      weinig@apple.com authored
      Patch by Anders Carlsson <andersca@apple.com> on 2010-04-08
      Reviewed by Sam Weinig and Oliver Hunt.
      
      * WebProcess: Added.
      * WebProcess/Launching: Added.
      * WebProcess/Launching/mac: Added.
      * WebProcess/Launching/mac/WebProcessMain.mm: Added.
      * WebProcess/Launching/win: Added.
      * WebProcess/Launching/win/WebProcessWinMain.cpp: Added.
      * WebProcess/WebCoreSupport: Added.
      * WebProcess/WebCoreSupport/WebChromeClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebChromeClient.h: Added.
      * WebProcess/WebCoreSupport/WebContextMenuClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebContextMenuClient.h: Added.
      * WebProcess/WebCoreSupport/WebDragClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebDragClient.h: Added.
      * WebProcess/WebCoreSupport/WebEditorClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebEditorClient.h: Added.
      * WebProcess/WebCoreSupport/WebErrors.h: Added.
      * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: Added.
      * WebProcess/WebCoreSupport/WebInspectorClient.h: Added.
      * WebProcess/WebCoreSupport/mac: Added.
      * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm: Added.
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.h: Added.
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.m: Added.
      * WebProcess/WebCoreSupport/win: Added.
      * WebProcess/WebCoreSupport/win/WebCoreLocalizedStrings.cpp: Added.
      * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp: Added.
      * WebProcess/WebPage: Added.
      * WebProcess/WebPage/DrawingArea.cpp: Added.
      * WebProcess/WebPage/DrawingArea.h: Added.
      * WebProcess/WebPage/WebFrame.cpp: Added.
      * WebProcess/WebPage/WebFrame.h: Added.
      * WebProcess/WebPage/WebPage.cpp: Added.
      * WebProcess/WebPage/WebPage.h: Added.
      * WebProcess/WebPage/mac: Added.
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.cpp: Added.
      * WebProcess/WebPage/mac/DrawingAreaUpdateChunk.h: Added.
      * WebProcess/WebPage/mac/WebPageMac.mm: Added.
      * WebProcess/WebPage/win: Added.
      * WebProcess/WebPage/win/DrawingAreaUpdateChunk.cpp: Added.
      * WebProcess/WebPage/win/DrawingAreaUpdateChunk.h: Added.
      * WebProcess/WebPage/win/WebPageWin.cpp: Added.
      * WebProcess/WebProcess.cpp: Added.
      * WebProcess/WebProcess.h: Added.
      * WebProcess/win: Added.
      * WebProcess/win/DllMain.cpp: Added.
      * WebProcess/win/WebLocalizableStrings.cpp: Added.
      * WebProcess/win/WebLocalizableStrings.h: Added.
      * WebProcess/win/WebProcessMain.cpp: Added.
      * WebProcess/win/WebProcessMain.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d773bc13
  20. 04 Mar, 2010 2 commits
    • ossy@webkit.org's avatar
      [Qt] Unreviewed buildfix after r55542 on Windows. · cf04bd9d
      ossy@webkit.org authored
      * WebCore.pro:
       - plugins/win/PluginDatabaseWin.cpp removed.
       - platform/win/WebCoreInstanceHandle.cpp added.
      
      * platform/win/WebCoreInstanceHandle.cpp: Remove explicit qualification in namespace declaration to make gcc happy.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf04bd9d
    • bdakin@apple.com's avatar
      WebCore: This fixes the layering violation I committed yesterday by moving · a67418ff
      bdakin@apple.com authored
      Page::instanceHandle into its own file just in the WebCore 
      namespace.
      
      Reviewed by Anders Carlsson.
      
      Added WebCoreInstanceHandle.h + .cpp and removed PageWin.cpp
      * WebCore.vcproj/WebCore.vcproj:
      * page/win/PageWin.cpp: Removed.
      
      Remove all instance handle code from Page.
      * page/Page.h:
      
      New files.
      * platform/win/WebCoreInstanceHandle.cpp: Added.
      * platform/win/WebCoreInstanceHandle.h: Added.
      (WebCore::setInstanceHandle):
      (WebCore::instanceHandle):
      
      Switch to WebCore::instanceHandle() instead of 
      Page::instanceHandle() and include the new header.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
      * platform/win/PasteboardWin.cpp:
      (WebCore::Pasteboard::Pasteboard):
      * platform/win/PopupMenuWin.cpp:
      (WebCore::PopupMenu::show):
      (WebCore::PopupMenu::registerClass):
      * platform/win/SharedTimerWin.cpp:
      (WebCore::initializeOffScreenTimerWindow):
      * plugins/win/PluginViewWin.cpp:
      (WebCore::registerPluginView):
      (WebCore::PluginView::platformStart):
      
      WebKit/win: WebCore::Page::setInstanceHandle() is now just 
      WebCore::setInstanceHandle()
      
      Reviewed by Anders Carlsson.
      
      * WebKitDLL.cpp:
      (DllMain):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a67418ff
  21. 07 Jan, 2010 1 commit
    • mitz@apple.com's avatar
      Added Font::typesettingFeatures() and deployed it · 8c85d97b
      mitz@apple.com authored
      Reviewed by Sam Weinig.
      
      No change in funcitonality
      
      * WebCore.xcodeproj/project.pbxproj: Added TypesettingFeatures.h.
      * platform/graphics/Font.h:
      (WebCore::Font::typesettingFeatures): Added. Determines the typesetting
          features from the text redndering mode.
      * platform/graphics/FontFastPath.cpp:
      (WebCore::Font::canUseGlyphCache): Use typesettingFeatures().
      * platform/graphics/SimpleFontData.h:
      * platform/graphics/TypesettingFeatures.h: Added.
      * platform/graphics/mac/ComplexTextControllerATSUI.cpp:
      (WebCore::disableLigatures): Take TypesettingFeatures instead of
          TextRenderingMode.
      (WebCore::initializeATSUStyle): Ditto.
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersATSUI):
          Use typesettingFeatures().
      * platform/graphics/mac/ComplexTextControllerCoreText.cpp:
      (WebCore::ComplexTextController::collectComplexTextRunsForCharactersCoreText):
          Ditto.
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::getCFStringAttributes): Take
          TypesettingFeatures instead of TextRenderingMode.
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::RenderBlock::findNextLineBreak): Use TypesettingFeatures().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c85d97b
  22. 18 Dec, 2009 1 commit
    • weinig@apple.com's avatar
      Add Mac WebKit side of the client based geolocation provider. · d633d844
      weinig@apple.com authored
      Reviewed by Dan Bernstein.
      
      WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj:
      
      WebKit/mac: 
      
      * Misc/WebKitErrors.m:
      (registerErrors): Add Geolocation errors.
      * Misc/WebKitErrorsPrivate.h:
      * WebCoreSupport/WebGeolocationControllerClient.h: Added.
      (WebGeolocationControllerClient::webView):
      * WebCoreSupport/WebGeolocationControllerClient.mm: Added.
      (WebGeolocationControllerClient::WebGeolocationControllerClient):
      (WebGeolocationControllerClient::startUpdating):
      (WebGeolocationControllerClient::stopUpdating):
      (WebGeolocationControllerClient::lastPosition):
      Add implementation of the WebGeolocationControllerClient.
      
      * WebView/WebGeolocationPosition.h: Added.
      * WebView/WebGeolocationPosition.mm: Added.
      (-[WebGeolocationPositionInternal initWithCoreGeolocationPosition:]):
      (core):
      (-[WebGeolocationPosition initWithTimestamp:latitude:longitude:accuracy:]):
      * WebView/WebGeolocationPositionInternal.h: Added.
      Add an Objective-C wrapper for GeolocationPosition.
       
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]): Set the GeolocationControllerClient.
      (-[WebView _setGeolocationProvider:]): Set the GeolocationProvider
      (-[WebView _geolocationProvider]): Return the GeolocationProvider.
      (-[WebView _geolocationDidChangePosition:]): Notify WebCore that the position changed.
      (-[WebView _geolocationDidFailWithError:]): Notify WebCore that an error occured.
      * WebView/WebViewData.h:
      * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d633d844
  23. 19 Nov, 2009 1 commit
    • ap@apple.com's avatar
      Reviewed by Darin Adler. · 13f65f3f
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31690
              Make SocketStreamHandleCFNet work on Windows
      
              * WebCore.vcproj/WebCore.vcproj: Added LoaderRunLoopCF.
      
              * platform/network/ResourceHandle.h: Removed loaderRunLoop().
      
              * platform/network/cf/LoaderRunLoopCF.cpp: Added.
              (WebCore::emptyPerform):
              (WebCore::runLoaderThread):
              (WebCore::loaderRunLoop):
              * platform/network/cf/LoaderRunLoopCF.h: Added.
              Moved the run loop that we use for CFNetwork from ResourceHandle to its own file, because
              it's needed for more than just resource loading.
      
              * platform/network/cf/ResourceHandleCFNet.cpp: Use loaderRunLoop() from its new location.
      
              * platform/network/cf/DNSCFNet.cpp: (WebCore::DNSResolveQueue::resolve): Ditto.
      
              * platform/network/cf/SocketStreamHandle.h: Added static callbacks for forwarding events to
              main thread.
              * platform/network/cf/SocketStreamHandleCFNet.cpp:
              (WebCore::SocketStreamHandle::SocketStreamHandle): Use loaderRunLoop() on Windows instead of
              inoperable main run loop.
      
              (WebCore::MainThreadEventCallbackInfo::MainThreadEventCallbackInfo): 
              (WebCore::SocketStreamHandle::readStreamCallback):
              (WebCore::SocketStreamHandle::writeStreamCallback):
              (WebCore::SocketStreamHandle::readStreamCallbackMainThread):
              (WebCore::SocketStreamHandle::writeStreamCallbackMainThread):
              Forward stream events to main thread on Windows.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13f65f3f
  24. 10 Nov, 2009 2 commits
    • ap@apple.com's avatar
      Reviewed by Dan Bernstein. · 2ab1e6a4
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=31312
              Decouple authentication panel callbacks from ResourceHandle
      
              No change in functionality.
      
              SocketStreamHandle also needs to request credentials, so it's not appropriate to store
              ResourceHandle as delegate.
      
      WebCore:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/network/AuthenticationClient.h: Added.
              Added a new interface for listening to authentication panel notifications.
      
              * WebCore.xcodeproj/project.pbxproj: Added AuthenticationClient.h. Let Visual Studio do what
              it wants with the project file.
      
              (WebCore::AuthenticationClient::ref): Using our usual method of exposing refcounting on an
              interface class.
              (WebCore::AuthenticationClient::deref): Ditto.
      
              * platform/network/ResourceHandle.h:
              (WebCore::ResourceHandle::refAuthenticationClient): Ditto.
              (WebCore::ResourceHandle::derefAuthenticationClient): Ditto.
      
              * platform/network/cf/AuthenticationCF.cpp:
              (WebCore::AuthenticationChallenge::AuthenticationChallenge):
              (WebCore::AuthenticationChallenge::platformCompare):
              * platform/network/cf/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/chromium/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              * platform/network/curl/AuthenticationChallenge.h:
              (WebCore::AuthenticationChallenge::authenticationClient):
              Keeping a reference to AuthenticationClient, not to ResourceHandle.
      
      WebKit:
              * WebCoreSupport/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge):
              * WebURLAuthenticationChallenge.cpp:
              (WebURLAuthenticationChallenge::initWithAuthenticationChallenge):
              (WebURLAuthenticationChallenge::sender):
              * WebURLAuthenticationChallengeSender.cpp:
              (WebURLAuthenticationChallengeSender::WebURLAuthenticationChallengeSender):
              (WebURLAuthenticationChallengeSender::createInstance):
              (WebURLAuthenticationChallengeSender::authenticationClient):
              * WebURLAuthenticationChallengeSender.h:
              * WebURLAuthenticationChallengeSenderCFNet.cpp:
              (WebURLAuthenticationChallengeSender::cancelAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::continueWithoutCredentialForAuthenticationChallenge):
              (WebURLAuthenticationChallengeSender::useCredential):
              Adjusted for WebCore changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ab1e6a4
    • mitz@apple.com's avatar
      WebCore: WebCore part of making full-screen video pause during scrubbing. · 362023c1
      mitz@apple.com authored
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebCore.Video.exp: Sorted and added HTMLMediaElement::beginScrubbing()
      and HTMLMediaElement::endScrubbing().
      
      WebKit/mac: WebKit part of making full-screen video pause during scrubbing.
      
      Reviewed by Eric Carlson and Darin Adler.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Added _isScrubbing
      ivar.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController dealloc]): Assert that
      _isScrubbing is NO.
      (-[WebVideoFullscreenHUDWindowController endScrubbing]): Call
      HTMLMediaElement::endScrubbing().
      (-[WebVideoFullscreenHUDWindowController timelinePositionChanged:]):
      If scrubbing has just begun, call HTMLMediaElement::beginScrubbing()
      and schedule -endScrubbing to be called when mouse tracking ends.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      362023c1
  25. 08 Nov, 2009 1 commit
    • mitz@apple.com's avatar
      Made the full-screen video HUD appear when playback stops, such as when · e0ff32d3
      mitz@apple.com authored
      the end of the video is reached.
      
      Reviewed by Eric Carlson.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Cleaned up.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Updated
      for the renaming of -updateRate to -updatePlayButton.
      (-[WebVideoFullscreenHUDWindowController updatePlayButton]): Renamed
      -updateRate to this.
      (-[WebVideoFullscreenHUDWindowController updateRate]): This method now
      responds to changes to the playback rate by updating the play button
      and showing or hiding the HUD as necessary.
      (-[WebVideoFullscreenHUDWindowController togglePlaying:]): Now only
      toggles playing. UI updates are driven by -updateRate being called.
      (-[WebVideoFullscreenHUDWindowController playing]): Cleaned up.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0ff32d3
  26. 02 Nov, 2009 2 commits
    • mitz@apple.com's avatar
      Made the remaining time display show negative zero at the end of the · 12da8133
      mitz@apple.com authored
      video.
      
      Reviewed by Anders Carlsson.
      
      Made other cleanup.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of
      _timeline and _volumeSlider to the more generic NSControl.
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned
      up style.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an
      assertion that the cast to NSButton * is legal. Removed casts.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Use
      -setValue:forKey: instead of an NSSlider method.
      (timeToString): Changed to support only non-negative values and
      simplified.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always
      prepend a “-” to the time.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      12da8133
    • mitz@apple.com's avatar
      WebKit/mac: WebKit part of making the appearance of the full-screen video HUD match · 36413e0b
      mitz@apple.com authored
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary
      #import statements, cleaned up style, and changed _timeline,
      _volumeSlider and _playButton to have more specific types.
      * WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import
      statements.
      (webkit_CGFloor): Added this helper function.
      (-[WebVideoFullscreenHUDWindowController init]): Cleaned up style.
      (createTimeTextField): Changed to use the bold system font.
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the
      subviews’ metrics and the text fields’ text alignment.
      (-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion
      from double to float.
      (stringToTimeTextAttributed): Removed this useless function that
      returned an NSAttributedString masquerading as an NSString.
      (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed
      call to stringToTimeTextAttributed().
      (-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto.
      
      WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match
      QuickTime Player X’s HUD.
      
      Reviewed by John Sullivan.
      
      * libWebKitSystemInterfaceLeopard.a:
      * libWebKitSystemInterfaceSnowLeopard.a:
      * libWebKitSystemInterfaceTiger.a:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36413e0b
  27. 28 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-28 Eric Carlson <eric.carlson@apple.com> · 9bfaaa38
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::removedFromDocument):
              (WebCore::HTMLMediaElement::documentWillBecomeInactive):
                  Exit from fullscreen if necessary.
              * html/HTMLMediaElement.h:
      
      2009-10-28  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Simon Fraser.
      
              <rdar://problem/7303145> 
              Can't exit full screen mode or restart movie after pressing command -R.
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController _requestExit]): 
                  New, call media element's exitFullscreen method.
              (-[WebVideoFullscreenController requestExitFullscreenWithAnimation:]): 
                  Call mediaElement->exitFullscreen() after a delay as it turns around and calls
                  WebVideoFullscreenController:exitFullscreen.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindow resignFirstResponder]):
                  New, don't give up responder status.
              (-[WebVideoFullscreenHUDWindow performKeyEquivalent:]):
                  New, block all command key events.
              (-[WebVideoFullscreenHUDWindowController exitFullscreen:]):
                  Remember when we are in the process of exiting fullscreen, don't allow recursion.
      
              * WebView/WebView.mm:
              (-[WebView _exitFullscreen]):
                  Early return if fullscreen controller is nil.
      
              * WebView/WebWindowAnimation.h: 
                  Correct comment about _window retain status.
              * WebView/WebWindowAnimation.m:
              (-[WebWindowScaleAnimation dealloc]):
                  Don't release _window, we never reatained it.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bfaaa38
  28. 22 Oct, 2009 1 commit
    • eric.carlson@apple.com's avatar
      2009-10-22 Eric Carlson <eric.carlson@apple.com> · 73e866e6
      eric.carlson@apple.com authored
              Reviewed by Dan Bernstein & Simon Fraser.
      
              <rdar://problem/7297717>
              https://bugs.webkit.org/show_bug.cgi?id=30323
              Play/pause button in full-screen video controller does not reflect current state
      
              * WebView/WebVideoFullscreenController.mm:
              (-[WebVideoFullscreenController setMediaElement:WebCore::]): Register for QTMovieRateDidChangeNotification
              (-[WebVideoFullscreenController rateChanged:]): Call HUD controller when rate changes.
      
              * WebView/WebVideoFullscreenHUDWindowController.h:
              * WebView/WebVideoFullscreenHUDWindowController.mm:
              (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Call updateRate so play button
              reflects playback state.
              (-[WebVideoFullscreenHUDWindowController updateRate]): New, set play button state according to
              movie state.
              (-[WebVideoFullscreenHUDWindowController playingChanged:]): Only call [self playing] once.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73e866e6
  29. 05 Oct, 2009 2 commits
  30. 08 Sep, 2009 1 commit
  31. 27 Aug, 2009 1 commit
    • cmarrin@apple.com's avatar
      Final patch for Canvas 3D support · 4e7728f4
      cmarrin@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=28018
      
              This hooks everything up and provides a working implementation of
              Canvas 3D. I plumb the creation of the 3D canvas down to GraphicsLayer,
              passing the opaque context and texture pointers so a Canvas3DLayer can be
              created (more on that later). It also plumbs changes to the 3D canvas so
              that Canvas3DLayer can recomposite the results.
              
              A 3D Canvas element needs a RenderLayer and compositing layer to render.
              This is because it renders to an off-screen texture in the GPU and then
              hands it to a Canvas3DLayer, which is a subclass of CAOpenGLLayer, to
              render that texture as a 3D quad. This keeps everything in GPU memory to 
              maximize performance. When a CanvasRenderingContext3D is created it 
              forces a style recalc which creates the RenderLayer and compositing 
              layer if needed. 
              
              I repurposed an existing flag which was put in place for animation to accomplish 
              this. This flag is passed to setNeedsStyleRecalc(), and I renamed it from 
              AnimationStyleChange to SyntheticStyleChange. It essentially says that you need
              to do a complete style recalc, even though the style itself has not really
              changed.
              
              This patch also fixes a couple of bugs discovered when testing with 3d-canvas
              turned on. I also added a constructor DOMWindow.idl for CanvasRenderingContext3D.
              This is needed when making a JS wrapper for the object so the prototype 
              property can be set.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e7728f4
  32. 25 Aug, 2009 2 commits