Changeset 239071 in webkit
- Timestamp:
- Dec 10, 2018 10:55:31 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 58 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r239068 r239071 1 2018-12-10 Chris Fleizach <cfleizach@apple.com> 2 3 [meta][WebKit] Remove using namespace WebCore and WebKit in the global scope for unified source builds 4 https://bugs.webkit.org/show_bug.cgi?id=192449 5 6 Reviewed by Darin Adler. 7 8 * NetworkProcess/Cookies/mac/WebCookieManagerMac.mm: 9 * NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp: 10 * NetworkProcess/ServiceWorker/WebSWServerConnection.cpp: 11 * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp: 12 * NetworkProcess/ios/NetworkProcessIOS.mm: 13 * NetworkProcess/mac/NetworkProcessMac.mm: 14 * NetworkProcess/mac/RemoteNetworkingContext.mm: 15 * Platform/spi/ios/AccessibilitySupportSPI.h: 16 * PlatformMac.cmake: 17 * PluginProcess/PluginControllerProxy.cpp: 18 * PluginProcess/PluginProcess.cpp: 19 * PluginProcess/WebProcessConnection.cpp: 20 * Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb: 21 * Shared/API/c/cf/WKErrorCF.cpp: 22 (WKErrorCreateWithCFError): 23 (WKErrorCopyCFError): 24 * Shared/API/c/cg/WKImageCG.cpp: 25 (WKImageCreateCGImage): 26 (WKImageCreateFromCGImage): 27 * Shared/ChildProcess.cpp: 28 * Shared/ContextMenuContextData.cpp: 29 * Shared/EditorState.cpp: 30 * Shared/Plugins/NPIdentifierData.cpp: 31 * Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm: 32 * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp: 33 * Shared/SessionState.cpp: 34 * Shared/SessionTracker.cpp: 35 * Shared/ShareableBitmap.cpp: 36 * Shared/ShareableResource.cpp: 37 * Shared/VisibleContentRectUpdateInfo.cpp: 38 * Shared/WebBackForwardListItem.cpp: 39 * Shared/WebContextMenuItemData.cpp: 40 * Shared/WebCoreArgumentCoders.cpp: 41 * Shared/WebHitTestResultData.cpp: 42 * Shared/WebImage.cpp: 43 * Shared/WebMediaSessionMetadata.cpp: 44 * Shared/WebMemorySampler.cpp: 45 * Shared/WebMouseEvent.cpp: 46 * Shared/WebRenderObject.cpp: 47 * Shared/WebSQLiteDatabaseTracker.cpp: 48 * Shared/WebWheelEvent.cpp: 49 * Shared/cf/ArgumentCodersCF.cpp: 50 * Shared/ios/WebPlatformTouchPointIOS.cpp: 51 * SourcesCocoa.txt: 52 * UIProcess/API/APIContentRuleListStore.cpp: 53 * UIProcess/API/APIHitTestResult.cpp: 54 * UIProcess/API/APINavigation.cpp: 55 * UIProcess/API/APIOpenPanelParameters.cpp: 56 * UIProcess/API/APIPageConfiguration.cpp: 57 * UIProcess/API/C/WKPage.cpp: 58 (WKPageLoadURLWithShouldOpenExternalURLsPolicy): 59 (WKPageLoadURLWithUserData): 60 (WKPageLoadURLRequestWithUserData): 61 (WKPageSetPaginationMode): 62 (WKPageGetPaginationMode): 63 (WKPageSetPageLoaderClient): 64 (WKPageSetPagePolicyClient): 65 * UIProcess/API/C/cg/WKIconDatabaseCG.cpp: 66 * UIProcess/Cocoa/WebViewImpl.h: 67 * UIProcess/Cocoa/WebViewImpl.mm: 68 * UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm: 69 * UIProcess/WebStorage/LocalStorageDatabase.cpp: 70 * UIProcess/ios/WKContentView.mm: 71 (-[WKContentView _commonInitializationWithProcessPool:configuration:]): 72 (-[WKContentView initWithFrame:processPool:configuration:webView:]): 73 (-[WKContentView dealloc]): 74 (-[WKContentView page]): 75 (-[WKContentView updateFixedClippingView:]): 76 (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:obscuredInsets:unobscuredSafeAreaInsets:inputViewBounds:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:enclosedInScrollableAncestorView:]): 77 (-[WKContentView _updateForScreen:]): 78 (-[WKContentView _accessibilityRegisterUIProcessTokens]): 79 (-[WKContentView _createDrawingAreaProxy]): 80 (-[WKContentView _didCommitLayerTree:]): 81 (-[WKContentView _wk_pageCountForPrintFormatter:]): 82 * UIProcess/ios/WKContentViewInteraction.mm: 83 (-[WKFocusedElementInfo initWithAssistedNodeInformation:isUserInitiated:userObject:]): 84 (hasAssistedNode): 85 (-[WKContentView setupInteraction]): 86 (-[WKContentView positionInformation]): 87 (-[WKContentView _webTouchEventsRecognized:]): 88 (inflateQuad): 89 (-[WKContentView _updateTapHighlight]): 90 (-[WKContentView _showTapHighlight]): 91 (-[WKContentView _requiresKeyboardWhenFirstResponder]): 92 (-[WKContentView _displayFormNodeInputView]): 93 (-[WKContentView inputView]): 94 (-[WKContentView _actionForLongPressFromPositionInformation:]): 95 (-[WKContentView currentPositionInformation]): 96 (-[WKContentView doAfterPositionInformationUpdate:forRequest:]): 97 (-[WKContentView _currentPositionInformationIsValidForRequest:]): 98 (-[WKContentView _hasValidOutstandingPositionInformationRequest:]): 99 (-[WKContentView _currentPositionInformationIsApproximatelyValidForRequest:]): 100 (-[WKContentView gestureRecognizerShouldBegin:]): 101 (-[WKContentView hasSelectablePositionAtPoint:]): 102 (-[WKContentView pointIsNearMarkedText:]): 103 (-[WKContentView textInteractionGesture:shouldBeginAtPoint:]): 104 (-[WKContentView webSelectionRectsForSelectionRects:]): 105 (-[WKContentView _twoFingerSingleTapGestureRecognized:]): 106 (-[WKContentView _stylusSingleTapRecognized:]): 107 (-[WKContentView _singleTapCommited:]): 108 (-[WKContentView _attemptClickAtLocation:]): 109 (-[WKContentView _positionInformationDidChange:]): 110 (-[WKContentView requiresAccessoryView]): 111 (-[WKContentView supportedPasteboardTypesForCurrentSelection]): 112 (-[WKContentView _lookupForWebView:]): 113 (-[WKContentView _shareForWebView:]): 114 (-[WKContentView textStylingAtPosition:inDirection:]): 115 (-[WKContentView canPerformActionForWebView:withSender:]): 116 (-[WKContentView selectForWebView:]): 117 (-[WKContentView _accessibilityRetrieveRectsEnclosingSelectionOffset:withGranularity:]): 118 (-[WKContentView _accessibilityRetrieveRectsAtSelectionOffset:withText:completionHandler:]): 119 (toGestureType): 120 (toUIWKGestureType): 121 (toSelectionTouch): 122 (toUIWKSelectionTouch): 123 (toGestureRecognizerState): 124 (toUIGestureRecognizerState): 125 (toUIWKSelectionFlags): 126 (toWKTextGranularity): 127 (toWKSelectionDirection): 128 (selectionChangedWithGesture): 129 (selectionChangedWithTouch): 130 (-[WKContentView changeSelectionWithGestureAt:withGesture:withState:withFlags:]): 131 (-[WKContentView autocorrectionData]): 132 (-[WKContentView requestAutocorrectionRectsForString:withCompletionHandler:]): 133 (-[WKContentView _becomeFirstResponderWithSelectionMovingForward:completionHandler:]): 134 (-[WKContentView _updateAccessory]): 135 (-[WKContentView selectedTextRange]): 136 (-[WKContentView setMarkedText:selectedRange:]): 137 (coreWritingDirection): 138 (-[WKContentView closestPositionToPoint:]): 139 (-[WKContentView insertText:]): 140 (-[WKContentView textInputTraits]): 141 (-[WKContentView handleKeyWebEvent:]): 142 (-[WKContentView handleKeyWebEvent:withCompletionHandler:]): 143 (-[WKContentView isScrollableForKeyboardScrollViewAnimator:]): 144 (-[WKContentView keyboardScrollViewAnimator:distanceForIncrement:]): 145 (-[WKContentView assistedNodeInformation]): 146 (-[WKContentView assistedNodeSelectOptions]): 147 (isAssistableInputType): 148 (-[WKContentView _startAssistingNode:userIsInteracting:blurPreviousNode:changingActivityState:userObject:]): 149 (-[WKContentView _stopAssistingNode]): 150 (-[WKContentView updateCurrentAssistedNodeInformation:]): 151 (-[WKContentView presentViewControllerForCurrentAssistedNode]): 152 (-[WKContentView actionNameForFocusedFormControlView:]): 153 (-[WKContentView selectWordForReplacement]): 154 (-[WKContentView _updateChangedSelection:]): 155 (-[WKContentView _beginSuppressingSelectionAssistantForReason:]): 156 (-[WKContentView _stopSuppressingSelectionAssistantForReason:]): 157 (-[WKContentView _showPlaybackTargetPicker:fromRect:routeSharingPolicy:routingContextUID:]): 158 (-[WKContentView _showRunOpenPanel:resultListener:]): 159 (-[WKContentView _showShareSheet:completionHandler:]): 160 (-[WKContentView positionInformationForActionSheetAssistant:]): 161 (-[WKContentView updatePositionInformationForActionSheetAssistant:]): 162 (-[WKContentView _startDrag:item:]): 163 (-[WKContentView _didHandleAdditionalDragItemsRequest:]): 164 (-[WKContentView _didHandleStartDataInteractionRequest:]): 165 (dropOperationForWebCoreDragOperation): 166 (-[WKContentView dragDataForDropSession:dragDestinationAction:]): 167 (-[WKContentView _didConcludeEditDataInteraction:]): 168 (-[WKContentView _didPerformDragOperation:]): 169 (-[WKContentView _prepareToDragPromisedAttachment:]): 170 (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationList:stagedDragSource:]): 171 (-[WKContentView _autofillContext]): 172 (-[WKContentView _dragInteraction:itemsForAddingToSession:withTouchAtPoint:completion:]): 173 (-[WKContentView _dragInteraction:prepareForSession:completion:]): 174 (-[WKContentView dragInteraction:itemsForBeginningSession:]): 175 (-[WKContentView dragInteraction:willAnimateLiftWithAnimator:session:]): 176 (-[WKContentView dragInteraction:session:didEndWithOperation:]): 177 (-[WKContentView dragInteraction:item:willAnimateCancelWithAnimator:]): 178 (-[WKContentView dropInteraction:performDrop:]): 179 (-[WKContentView dropInteraction:sessionDidEnd:]): 180 (-[WKContentView allowsLanguageSelectionMenuForListViewController:]): 181 (-[WKContentView shouldDisplayInputContextViewForListViewController:]): 182 (-[WKContentView numericInputModeForListViewController:]): 183 (-[WKContentView textContentTypeForListViewController:]): 184 (-[WKContentView allowsDictationInputForListViewController:]): 185 (-[WKContentView _simulateLongPressActionAtLocation:]): 186 (-[WKContentView _interactionShouldBeginFromPreviewItemController:forPosition:]): 187 (-[WKContentView _presentationRectsForPreviewItemController:]): 188 * UIProcess/ios/fullscreen/WKFullScreenViewController.mm: 189 (WKFullScreenViewControllerPlaybackSessionModelClient::setInterface): 190 (WKFullScreenViewControllerVideoFullscreenModelClient::setInterface): 191 (WKFullScreenViewControllerVideoFullscreenModelClient::interface const): 192 (-[WKFullScreenViewController videoControlsManagerDidChange]): 193 (-[WKFullScreenViewController _manager]): 194 (-[WKFullScreenViewController _togglePiPAction:]): 195 * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: 196 (-[WKFullscreenAnimationController configureInitialAndFinalStatesForTransition:]): 197 (-[WKFullScreenWindowController isFullScreen]): 198 (-[WKFullScreenWindowController enterFullScreen]): 199 (-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]): 200 (-[WKFullScreenWindowController exitFullScreen]): 201 (-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]): 202 (-[WKFullScreenWindowController _completedExitFullScreen]): 203 (-[WKFullScreenWindowController webViewDidRemoveFromSuperviewWhileInFullscreen]): 204 (-[WKFullScreenWindowController _exitFullscreenImmediately]): 205 (-[WKFullScreenWindowController _manager]): 206 * UIProcess/mac/WebPageProxyMac.mm: 207 * WebKit.xcodeproj/project.pbxproj: 208 * WebProcess/Cache/WebCacheStorageConnection.cpp: 209 * WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm: 210 (mediaTimeToCurrentTime): 211 (-[WKAnimationDelegate initWithLayerID:layerTreeHost:]): 212 * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: 213 (-[WKAccessibilityWebPageObjectBase accessibilityRootObjectWrapper]): 214 1 215 2018-12-10 Don Olmstead <don.olmstead@sony.com> 2 216 -
trunk/Source/WebKit/NetworkProcess/Cookies/mac/WebCookieManagerMac.mm
r239047 r239071 32 32 #import <wtf/ProcessPrivilege.h> 33 33 34 namespace WebKit { 34 35 using namespace WebCore; 35 36 namespace WebKit {37 36 38 37 void WebCookieManager::platformSetHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy policy) -
trunk/Source/WebKit/NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp
r239047 r239071 42 42 #include <WebCore/UniqueIDBDatabaseConnection.h> 43 43 44 namespace WebKit { 44 45 using namespace WebCore; 45 46 namespace WebKit {47 46 48 47 Ref<WebIDBConnectionToClient> WebIDBConnectionToClient::create(NetworkConnectionToWebProcess& connection, uint64_t serverConnectionIdentifier, PAL::SessionID sessionID) -
trunk/Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp
r239047 r239071 54 54 #include <wtf/MainThread.h> 55 55 56 namespace WebKit { 56 57 using namespace PAL; 57 58 using namespace WebCore; 58 59 namespace WebKit {60 59 61 60 #define SWSERVERCONNECTION_RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(m_sessionID.isAlwaysOnLoggingAllowed(), ServiceWorker, "%p - WebSWServerConnection::" fmt, this, ##__VA_ARGS__) -
trunk/Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp
r239047 r239071 34 34 #include <WebCore/ServiceWorkerContextData.h> 35 35 36 namespace WebKit { 36 37 using namespace WebCore; 37 38 namespace WebKit {39 38 40 39 WebSWServerToContextConnection::WebSWServerToContextConnection(const SecurityOriginData& securityOrigin, Ref<IPC::Connection>&& connection) -
trunk/Source/WebKit/NetworkProcess/ios/NetworkProcessIOS.mm
r239047 r239071 42 42 #define ENABLE_MANUAL_NETWORK_SANDBOXING 0 43 43 44 namespace WebKit { 44 45 using namespace WebCore; 45 46 namespace WebKit {47 46 48 47 void NetworkProcess::initializeProcess(const ChildProcessInitializationParameters&) -
trunk/Source/WebKit/NetworkProcess/mac/NetworkProcessMac.mm
r239056 r239071 48 48 #import <wtf/text/WTFString.h> 49 49 50 namespace WebKit { 50 51 using namespace WebCore; 51 52 namespace WebKit {53 52 54 53 void NetworkProcess::initializeProcess(const ChildProcessInitializationParameters&) -
trunk/Source/WebKit/NetworkProcess/mac/RemoteNetworkingContext.mm
r239047 r239071 40 40 #import <wtf/MainThread.h> 41 41 42 namespace WebKit { 42 43 using namespace WebCore; 43 44 namespace WebKit {45 44 46 45 void RemoteNetworkingContext::ensureWebsiteDataStoreSession(WebsiteDataStoreParameters&& parameters) -
trunk/Source/WebKit/PluginProcess/PluginControllerProxy.cpp
r239047 r239071 52 52 #endif 53 53 54 namespace WebKit { 54 55 using namespace WebCore; 55 56 namespace WebKit {57 56 58 57 PluginControllerProxy::PluginControllerProxy(WebProcessConnection* connection, const PluginCreationParameters& creationParameters) -
trunk/Source/WebKit/PluginProcess/PluginProcess.cpp
r239047 r239071 50 50 #endif 51 51 52 namespace WebKit { 53 52 54 using namespace WebCore; 53 54 namespace WebKit {55 55 56 56 NO_RETURN static void callExit(IPC::Connection*) -
trunk/Source/WebKit/PluginProcess/WebProcessConnection.cpp
r239047 r239071 45 45 #endif 46 46 47 namespace WebKit { 47 48 using namespace WebCore; 48 49 namespace WebKit {50 49 51 50 static IPC::Connection* currentConnection; -
trunk/Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb
r239047 r239071 41 41 #include <WebCore/TextEncodingRegistry.h> 42 42 43 namespace WebKit { 43 44 using namespace WebCore; 44 45 namespace WebKit {46 45 47 46 WebPreferencesStore::ValueMap& WebPreferencesStore::defaults() -
trunk/Source/WebKit/Shared/API/c/cf/WKErrorCF.cpp
r239047 r239071 30 30 #include "WKAPICast.h" 31 31 32 using namespace WebCore;33 using namespace WebKit;34 35 32 WKErrorRef WKErrorCreateWithCFError(CFErrorRef cfError) 36 33 { 37 return toAPI(&API::Error::create(ResourceError(cfError)).leakRef());34 return WebKit::toAPI(&API::Error::create(WebCore::ResourceError(cfError)).leakRef()); 38 35 } 39 36 40 37 CFErrorRef WKErrorCopyCFError(CFAllocatorRef alloc, WKErrorRef error) 41 38 { 42 RetainPtr<CFErrorRef> cfError =toImpl(error)->platformError().cfError();39 WTF::RetainPtr<CFErrorRef> cfError = WebKit::toImpl(error)->platformError().cfError(); 43 40 return cfError.leakRef(); 44 41 } 42 -
trunk/Source/WebKit/Shared/API/c/cg/WKImageCG.cpp
r239047 r239071 33 33 #include <WebCore/GraphicsContext.h> 34 34 35 using namespace WebKit;36 using namespace WebCore;37 38 35 CGImageRef WKImageCreateCGImage(WKImageRef imageRef) 39 36 { 40 Web Image* webImage =toImpl(imageRef);37 WebKit::WebImage* webImage = WebKit::toImpl(imageRef); 41 38 if (!webImage) 42 39 return nullptr; … … 50 47 return nullptr; 51 48 52 IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef));53 auto webImage = Web Image::create(imageSize,toImageOptions(options));49 WebCore::IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)); 50 auto webImage = WebKit::WebImage::create(imageSize, WebKit::toImageOptions(options)); 54 51 55 52 auto graphicsContext = webImage->bitmap().createGraphicsContext(); 56 FloatRect rect(FloatPoint(0, 0), imageSize);53 WebCore::FloatRect rect(WebCore::FloatPoint(0, 0), imageSize); 57 54 graphicsContext->clearRect(rect); 58 55 graphicsContext->drawNativeImage(imageRef, imageSize, rect, rect); 59 56 return toAPI(webImage.leakRef()); 60 57 } 58 -
trunk/Source/WebKit/Shared/ChildProcess.cpp
r239047 r239071 40 40 #endif 41 41 42 namespace WebKit { 42 43 using namespace WebCore; 43 44 namespace WebKit {45 44 46 45 ChildProcess::ChildProcess() -
trunk/Source/WebKit/Shared/ContextMenuContextData.cpp
r239047 r239071 34 34 #include <WebCore/GraphicsContext.h> 35 35 36 namespace WebKit { 36 37 using namespace WebCore; 37 38 namespace WebKit {39 38 40 39 ContextMenuContextData::ContextMenuContextData() -
trunk/Source/WebKit/Shared/EditorState.cpp
r239047 r239071 30 30 #include <wtf/text/TextStream.h> 31 31 32 namespace WebKit { 32 33 using namespace WebCore; 33 34 namespace WebKit {35 34 36 35 void EditorState::encode(IPC::Encoder& encoder) const -
trunk/Source/WebKit/Shared/Plugins/NPIdentifierData.cpp
r239047 r239071 34 34 #include <WebCore/IdentifierRep.h> 35 35 36 namespace WebKit { 36 37 using namespace WebCore; 37 38 namespace WebKit {39 38 40 39 NPIdentifierData::NPIdentifierData() -
trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm
r239047 r239071 78 78 #endif 79 79 80 namespace WebKit { 80 81 using namespace WebCore; 81 82 namespace WebKit {83 82 84 83 static CGColorRef cgColorFromColor(const Color& color) -
trunk/Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp
r239047 r239071 39 39 #include <wtf/text/TextStream.h> 40 40 41 #if ENABLE(ASYNC_SCROLLING) 42 43 namespace IPC { 41 44 using namespace WebCore; 42 43 #if ENABLE(ASYNC_SCROLLING)44 45 namespace IPC {46 45 47 46 template<> struct ArgumentCoder<ScrollingStateNode> { -
trunk/Source/WebKit/Shared/SessionState.cpp
r239047 r239071 30 30 #include <WebCore/BackForwardItemIdentifier.h> 31 31 32 namespace WebKit { 32 33 using namespace WebCore; 33 34 namespace WebKit {35 34 36 35 bool isValidEnum(WebCore::ShouldOpenExternalURLsPolicy policy) -
trunk/Source/WebKit/Shared/SessionTracker.cpp
r239047 r239071 32 32 #include <wtf/RunLoop.h> 33 33 34 namespace WebKit { 34 35 using namespace WebCore; 35 36 namespace WebKit {37 36 38 37 static String& identifierBase() -
trunk/Source/WebKit/Shared/ShareableBitmap.cpp
r239047 r239071 31 31 #include <WebCore/GraphicsContext.h> 32 32 33 namespace WebKit { 33 34 using namespace WebCore; 34 35 namespace WebKit { 36 35 37 36 ShareableBitmap::Handle::Handle() 38 37 { -
trunk/Source/WebKit/Shared/ShareableResource.cpp
r239047 r239071 32 32 #include <WebCore/SharedBuffer.h> 33 33 34 namespace WebKit { 34 35 using namespace WebCore; 35 36 namespace WebKit {37 36 38 37 ShareableResource::Handle::Handle() -
trunk/Source/WebKit/Shared/VisibleContentRectUpdateInfo.cpp
r239047 r239071 31 31 #include <wtf/text/TextStream.h> 32 32 33 namespace WebKit { 33 34 using namespace WebCore; 34 35 namespace WebKit {36 35 37 36 void VisibleContentRectUpdateInfo::encode(IPC::Encoder& encoder) const -
trunk/Source/WebKit/Shared/WebBackForwardListItem.cpp
r239047 r239071 33 33 #include <wtf/URL.h> 34 34 35 namespace WebKit { 35 36 using namespace WebCore; 36 37 namespace WebKit {38 37 39 38 Ref<WebBackForwardListItem> WebBackForwardListItem::create(BackForwardListItemState&& backForwardListItemState, uint64_t pageID) -
trunk/Source/WebKit/Shared/WebContextMenuItemData.cpp
r239047 r239071 35 35 #include <WebCore/ContextMenu.h> 36 36 37 namespace WebKit { 37 38 using namespace WebCore; 38 39 namespace WebKit {40 39 41 40 WebContextMenuItemData::WebContextMenuItemData() -
trunk/Source/WebKit/Shared/WebCoreArgumentCoders.cpp
r239047 r239071 113 113 #endif 114 114 115 namespace IPC { 115 116 using namespace WebCore; 116 117 using namespace WebKit; 117 118 namespace IPC {119 118 120 119 static void encodeSharedBuffer(Encoder& encoder, const SharedBuffer* buffer) -
trunk/Source/WebKit/Shared/WebHitTestResultData.cpp
r239047 r239071 32 32 #include <wtf/text/WTFString.h> 33 33 34 namespace WebKit { 34 35 using namespace WebCore; 35 36 namespace WebKit {37 36 38 37 WebHitTestResultData::WebHitTestResultData() -
trunk/Source/WebKit/Shared/WebImage.cpp
r239047 r239071 27 27 #include "WebImage.h" 28 28 29 namespace WebKit { 29 30 using namespace WebCore; 30 31 namespace WebKit {32 31 33 32 RefPtr<WebImage> WebImage::create(const IntSize& size, ImageOptions options) -
trunk/Source/WebKit/Shared/WebMediaSessionMetadata.cpp
r239047 r239071 29 29 #if ENABLE(MEDIA_SESSION) 30 30 31 namespace WebKit { 31 32 using namespace WebCore; 32 33 namespace WebKit {34 33 35 34 Ref<WebMediaSessionMetadata> WebMediaSessionMetadata::create(const MediaSessionMetadata& metadata) -
trunk/Source/WebKit/Shared/WebMemorySampler.cpp
r239047 r239071 34 34 #include <wtf/text/StringBuilder.h> 35 35 36 namespace WebKit { 36 37 using namespace WebCore; 37 38 namespace WebKit {39 38 40 39 static const char separator = '\t'; -
trunk/Source/WebKit/Shared/WebMouseEvent.cpp
r239047 r239071 29 29 #include "WebCoreArgumentCoders.h" 30 30 31 namespace WebKit { 31 32 using namespace WebCore; 32 33 namespace WebKit {34 33 35 34 WebMouseEvent::WebMouseEvent() -
trunk/Source/WebKit/Shared/WebRenderObject.cpp
r239047 r239071 38 38 #include <WebCore/RenderWidget.h> 39 39 40 namespace WebKit { 40 41 using namespace WebCore; 41 42 namespace WebKit {43 42 44 43 RefPtr<WebRenderObject> WebRenderObject::create(WebPage* page) -
trunk/Source/WebKit/Shared/WebSQLiteDatabaseTracker.cpp
r239047 r239071 34 34 #include <wtf/MainThread.h> 35 35 36 namespace WebKit { 36 37 using namespace WebCore; 37 38 namespace WebKit {39 38 40 39 WebSQLiteDatabaseTracker::WebSQLiteDatabaseTracker(NetworkProcess& process) -
trunk/Source/WebKit/Shared/WebWheelEvent.cpp
r239047 r239071 29 29 #include "WebCoreArgumentCoders.h" 30 30 31 namespace WebKit { 31 32 using namespace WebCore; 32 33 namespace WebKit {34 33 35 34 WebWheelEvent::WebWheelEvent(Type type, const IntPoint& position, const IntPoint& globalPosition, const FloatSize& delta, const FloatSize& wheelTicks, Granularity granularity, Modifiers modifiers, WallTime timestamp) -
trunk/Source/WebKit/Shared/cf/ArgumentCodersCF.cpp
r239047 r239071 64 64 #endif 65 65 66 namespace IPC { 66 67 using namespace WebCore; 67 68 namespace IPC {69 68 70 69 CFTypeRef tokenNullTypeRef() -
trunk/Source/WebKit/Shared/ios/WebPlatformTouchPointIOS.cpp
r239047 r239071 31 31 #include "WebCoreArgumentCoders.h" 32 32 33 namespace WebKit { 33 34 using namespace WebCore; 34 35 namespace WebKit {36 35 37 36 void WebPlatformTouchPoint::encode(IPC::Encoder& encoder) const -
trunk/Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp
r239047 r239071 46 46 #include <wtf/persistence/PersistentEncoder.h> 47 47 48 49 namespace API { 48 50 using namespace WebKit::NetworkCache; 49 51 using namespace WebCore::FileSystem; 50 52 51 namespace API {52 53 53 ContentRuleListStore& ContentRuleListStore::legacyDefaultStore() 54 54 { -
trunk/Source/WebKit/UIProcess/API/APIHitTestResult.cpp
r239047 r239071 21 21 #include "APIHitTestResult.h" 22 22 23 namespace API { 23 24 using namespace WebCore; 24 25 namespace API {26 25 27 26 Ref<HitTestResult> HitTestResult::create(const WebKit::WebHitTestResultData& hitTestResultData) -
trunk/Source/WebKit/UIProcess/API/APINavigation.cpp
r239047 r239071 31 31 #include <wtf/DebugUtilities.h> 32 32 33 namespace API { 33 34 using namespace WebCore; 34 35 using namespace WebKit; 35 36 namespace API {37 36 38 37 Navigation::Navigation(WebNavigationState& state) -
trunk/Source/WebKit/UIProcess/API/APIOpenPanelParameters.cpp
r239047 r239071 32 32 #include <wtf/Vector.h> 33 33 34 namespace API { 34 35 using namespace WebCore; 35 36 namespace API {37 36 38 37 Ref<OpenPanelParameters> OpenPanelParameters::create(const FileChooserSettings& settings) -
trunk/Source/WebKit/UIProcess/API/APIPageConfiguration.cpp
r239047 r239071 39 39 #endif 40 40 41 namespace API { 41 42 using namespace WebCore; 42 43 using namespace WebKit; 43 44 namespace API {45 44 46 45 Ref<PageConfiguration> PageConfiguration::create() -
trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp
r238937 r239071 61 61 } 62 62 63 using namespace WebCore;64 using namespace WebKit;65 66 63 WKTypeID WKContextGetTypeID() 67 64 { … … 191 188 } 192 189 193 void didReceiveResponse(WebProcessPool& processPool, DownloadProxy& downloadProxy, const ResourceResponse& response) final190 void didReceiveResponse(WebProcessPool& processPool, DownloadProxy& downloadProxy, const WebCore::ResourceResponse& response) final 194 191 { 195 192 if (!m_client.didReceiveResponse) … … 233 230 } 234 231 235 void didFail(WebProcessPool& processPool, DownloadProxy& downloadProxy, const ResourceError& error) final232 void didFail(WebProcessPool& processPool, DownloadProxy& downloadProxy, const WebCore::ResourceError& error) final 236 233 { 237 234 if (!m_client.didFail) … … 257 254 } 258 255 259 void willSendRequest(WebProcessPool& processPool, DownloadProxy& downloadProxy, ResourceRequest&& request, const ResourceResponse&, CompletionHandler<void(ResourceRequest&&)>&& completionHandler) final256 void willSendRequest(WebProcessPool& processPool, DownloadProxy& downloadProxy, WebCore::ResourceRequest&& request, const WebCore::ResourceResponse&, CompletionHandler<void(WebCore::ResourceRequest&&)>&& completionHandler) final 260 257 { 261 258 if (m_client.didReceiveServerRedirect) … … 311 308 return; 312 309 313 toImpl(contextRef)->visitedLinkStore().addVisitedLinkHash( computeSharedStringHash(visitedURLString));310 toImpl(contextRef)->visitedLinkStore().addVisitedLinkHash(WebCore::computeSharedStringHash(visitedURLString)); 314 311 } 315 312 -
trunk/Source/WebKit/UIProcess/API/C/WKPage.cpp
r239047 r239071 98 98 #endif 99 99 100 namespace API { 100 101 using namespace WebCore; 101 102 using namespace WebKit; 102 103 namespace API { 103 104 104 template<> struct ClientTraits<WKPageLoaderClientBase> { 105 105 typedef std::tuple<WKPageLoaderClientV0, WKPageLoaderClientV1, WKPageLoaderClientV2, WKPageLoaderClientV3, WKPageLoaderClientV4, WKPageLoaderClientV5, WKPageLoaderClientV6> Versions; … … 131 131 typedef std::tuple<WKPageFindMatchesClientV0> Versions; 132 132 }; 133 134 } 133 134 } // namespace API 135 135 136 136 WKTypeID WKPageGetTypeID() … … 161 161 void WKPageLoadURLWithShouldOpenExternalURLsPolicy(WKPageRef pageRef, WKURLRef URLRef, bool shouldOpenExternalURLs) 162 162 { 163 ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy = shouldOpenExternalURLs ? ShouldOpenExternalURLsPolicy::ShouldAllow :ShouldOpenExternalURLsPolicy::ShouldNotAllow;163 WebCore::ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy = shouldOpenExternalURLs ? WebCore::ShouldOpenExternalURLsPolicy::ShouldAllow : WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow; 164 164 toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), shouldOpenExternalURLsPolicy); 165 165 } … … 167 167 void WKPageLoadURLWithUserData(WKPageRef pageRef, WKURLRef URLRef, WKTypeRef userDataRef) 168 168 { 169 toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef));169 toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); 170 170 } 171 171 … … 179 179 { 180 180 auto resourceRequest = toImpl(urlRequestRef)->resourceRequest(); 181 toImpl(pageRef)->loadRequest(WTFMove(resourceRequest), ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef));181 toImpl(pageRef)->loadRequest(WTFMove(resourceRequest), WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); 182 182 } 183 183 … … 692 692 void WKPageSetPaginationMode(WKPageRef pageRef, WKPaginationMode paginationMode) 693 693 { 694 Pagination::Mode mode;694 WebCore::Pagination::Mode mode; 695 695 switch (paginationMode) { 696 696 case kWKPaginationModeUnpaginated: 697 mode = Pagination::Unpaginated;697 mode = WebCore::Pagination::Unpaginated; 698 698 break; 699 699 case kWKPaginationModeLeftToRight: 700 mode = Pagination::LeftToRightPaginated;700 mode = WebCore::Pagination::LeftToRightPaginated; 701 701 break; 702 702 case kWKPaginationModeRightToLeft: 703 mode = Pagination::RightToLeftPaginated;703 mode = WebCore::Pagination::RightToLeftPaginated; 704 704 break; 705 705 case kWKPaginationModeTopToBottom: 706 mode = Pagination::TopToBottomPaginated;706 mode = WebCore::Pagination::TopToBottomPaginated; 707 707 break; 708 708 case kWKPaginationModeBottomToTop: 709 mode = Pagination::BottomToTopPaginated;709 mode = WebCore::Pagination::BottomToTopPaginated; 710 710 break; 711 711 default: … … 718 718 { 719 719 switch (toImpl(pageRef)->paginationMode()) { 720 case Pagination::Unpaginated:720 case WebCore::Pagination::Unpaginated: 721 721 return kWKPaginationModeUnpaginated; 722 case Pagination::LeftToRightPaginated:722 case WebCore::Pagination::LeftToRightPaginated: 723 723 return kWKPaginationModeLeftToRight; 724 case Pagination::RightToLeftPaginated:724 case WebCore::Pagination::RightToLeftPaginated: 725 725 return kWKPaginationModeRightToLeft; 726 case Pagination::TopToBottomPaginated:726 case WebCore::Pagination::TopToBottomPaginated: 727 727 return kWKPaginationModeTopToBottom; 728 case Pagination::BottomToTopPaginated:728 case WebCore::Pagination::BottomToTopPaginated: 729 729 return kWKPaginationModeBottomToTop; 730 730 } … … 1108 1108 } 1109 1109 1110 void didFailProvisionalLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const ResourceError& error, API::Object* userData) override1110 void didFailProvisionalLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const WebCore::ResourceError& error, API::Object* userData) override 1111 1111 { 1112 1112 if (!m_client.didFailProvisionalLoadWithErrorForFrame) … … 1124 1124 } 1125 1125 1126 void didFailLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const ResourceError& error, API::Object* userData) override1126 void didFailLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const WebCore::ResourceError& error, API::Object* userData) override 1127 1127 { 1128 1128 if (!m_client.didFailLoadWithErrorForFrame) … … 1231 1231 } 1232 1232 1233 void decidePolicyForNewWindowAction(WebPageProxy& page, WebFrameProxy& frame, const NavigationActionData& navigationActionData, const ResourceRequest& resourceRequest, const String& frameName, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override1233 void decidePolicyForNewWindowAction(WebPageProxy& page, WebFrameProxy& frame, const NavigationActionData& navigationActionData, const WebCore::ResourceRequest& resourceRequest, const String& frameName, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override 1234 1234 { 1235 1235 if (!m_client.decidePolicyForNewWindowAction) { … … 1243 1243 } 1244 1244 1245 void decidePolicyForResponse(WebPageProxy& page, WebFrameProxy& frame, const ResourceResponse& resourceResponse, constResourceRequest& resourceRequest, bool canShowMIMEType, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override1245 void decidePolicyForResponse(WebPageProxy& page, WebFrameProxy& frame, const WebCore::ResourceResponse& resourceResponse, const WebCore::ResourceRequest& resourceRequest, bool canShowMIMEType, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override 1246 1246 { 1247 1247 if (!m_client.decidePolicyForResponse_deprecatedForUseWithV0 && !m_client.decidePolicyForResponse) { … … 1259 1259 } 1260 1260 1261 void unableToImplementPolicy(WebPageProxy& page, WebFrameProxy& frame, const ResourceError& error, API::Object* userData) override1261 void unableToImplementPolicy(WebPageProxy& page, WebFrameProxy& frame, const WebCore::ResourceError& error, API::Object* userData) override 1262 1262 { 1263 1263 if (!m_client.unableToImplementPolicy) … … 1272 1272 1273 1273 namespace WebKit { 1274 1274 using namespace WebCore; 1275 1275 1276 class RunBeforeUnloadConfirmPanelResultListener : public API::ObjectImpl<API::Object::Type::RunBeforeUnloadConfirmPanelResultListener> { 1276 1277 public: … … 2700 2701 } 2701 2702 #endif 2703 -
trunk/Source/WebKit/UIProcess/API/C/cg/WKIconDatabaseCG.cpp
r239047 r239071 32 32 33 33 using namespace WebKit; 34 using namespace WebCore;35 34 36 35 CGImageRef WKIconDatabaseTryGetCGImageForURL(WKIconDatabaseRef, WKURLRef, WKSize) … … 43 42 return nullptr; 44 43 } 44 -
trunk/Source/WebKit/UIProcess/Cocoa/WebViewImpl.h
r239047 r239071 135 135 class PageClientImpl; 136 136 class DrawingAreaProxy; 137 class SafeBrowsingWarning; 137 138 class ViewGestureController; 138 139 class ViewSnapshot; -
trunk/Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm
r239047 r239071 62 62 #import "WKPrintingView.h" 63 63 #import "WKSafeBrowsingWarning.h" 64 #import "WKShareSheet.h" 64 65 #import "WKTextInputWindowController.h" 65 66 #import "WKViewLayoutStrategy.h" 67 #import "WKWebViewInternal.h" 66 68 #import "WKWebViewPrivate.h" 67 69 #import "WebBackForwardList.h" -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm
r239047 r239071 39 39 #import <wtf/SoftLinking.h> 40 40 41 namespace WebKit { 41 42 using namespace WebCore; 42 43 namespace WebKit {44 43 45 44 static RetainPtr<UIView> createRemoteView(pid_t pid, uint32_t contextID) -
trunk/Source/WebKit/UIProcess/WebStorage/LocalStorageDatabase.cpp
r239047 r239071 39 39 #include <wtf/text/WTFString.h> 40 40 41 static const auto databaseUpdateInterval = 1_s; 42 43 static const int maximumItemsToUpdate = 100; 44 45 namespace WebKit { 41 46 using namespace WebCore; 42 43 static const auto databaseUpdateInterval = 1_s;44 45 static const int maximumItemsToUpdate = 100;46 47 namespace WebKit {48 47 49 48 Ref<LocalStorageDatabase> LocalStorageDatabase::create(Ref<WorkQueue>&& queue, Ref<LocalStorageDatabaseTracker>&& tracker, const SecurityOriginData& securityOrigin) -
trunk/Source/WebKit/UIProcess/ios/WKContentView.mm
r239047 r239071 63 63 #import <wtf/text/TextStream.h> 64 64 65 66 namespace WebKit { 65 67 using namespace WebCore; 66 68 using namespace WebKit; 67 69 68 namespace WebKit {69 70 class HistoricalVelocityData { 70 71 public: … … 172 173 173 174 @implementation WKContentView { 174 std::unique_ptr< PageClientImpl> _pageClient;175 std::unique_ptr<WebKit::PageClientImpl> _pageClient; 175 176 ALLOW_DEPRECATED_DECLARATIONS_BEGIN 176 177 RetainPtr<WKBrowsingContextController> _browsingContextController; … … 182 183 RetainPtr<WKInspectorHighlightView> _inspectorHighlightView; 183 184 184 HistoricalVelocityData _historicalKinematicData;185 WebKit::HistoricalVelocityData _historicalKinematicData; 185 186 186 187 RetainPtr<NSUndoManager> _undoManager; … … 196 197 _page = processPool.createWebPage(*_pageClient, WTFMove(configuration)); 197 198 _page->initializeWebPage(); 198 _page->setIntrinsicDeviceScaleFactor( screenScaleFactor([UIScreen mainScreen]));199 _page->setIntrinsicDeviceScaleFactor(WebCore::screenScaleFactor([UIScreen mainScreen])); 199 200 _page->setUseFixedLayout(true); 200 201 _page->setDelegatesScrolling(true); … … 204 205 #endif 205 206 206 Web ProcessPool::statistics().wkViewCount++;207 WebKit::WebProcessPool::statistics().wkViewCount++; 207 208 208 209 _rootContentView = adoptNS([[UIView alloc] init]); … … 234 235 return nil; 235 236 236 InitializeWebKit2();237 238 _pageClient = std::make_unique< PageClientImpl>(self, webView);237 WebKit::InitializeWebKit2(); 238 239 _pageClient = std::make_unique<WebKit::PageClientImpl>(self, webView); 239 240 _webView = webView; 240 241 … … 250 251 _page->close(); 251 252 252 Web ProcessPool::statistics().wkViewCount--;253 WebKit::WebProcessPool::statistics().wkViewCount--; 253 254 254 255 [super dealloc]; 255 256 } 256 257 257 - (Web PageProxy*)page258 - (WebKit::WebPageProxy*)page 258 259 { 259 260 return _page.get(); … … 344 345 } 345 346 346 - (void)updateFixedClippingView:( FloatRect)fixedPositionRectForUI347 { 348 FloatRect clippingBounds = [self bounds];347 - (void)updateFixedClippingView:(WebCore::FloatRect)fixedPositionRectForUI 348 { 349 WebCore::FloatRect clippingBounds = [self bounds]; 349 350 clippingBounds.unite(fixedPositionRectForUI); 350 351 … … 387 388 388 389 MonotonicTime timestamp = MonotonicTime::now(); 389 HistoricalVelocityData::VelocityData velocityData;390 WebKit::HistoricalVelocityData::VelocityData velocityData; 390 391 if (!isStableState) 391 392 velocityData = _historicalKinematicData.velocityForNewData(visibleContentRect.origin, zoomScale, timestamp); … … 393 394 _historicalKinematicData.clear(); 394 395 395 RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy();396 WebKit::RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy(); 396 397 397 398 CGRect unobscuredContentRectRespectingInputViewBounds = [self _computeUnobscuredContentRectRespectingInputViewBounds:unobscuredContentRect inputViewBounds:inputViewBounds]; 398 FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, unobscuredContentRectRespectingInputViewBounds, _page->customFixedPositionRect(), zoomScale,FrameView::LayoutViewportConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled());399 400 VisibleContentRectUpdateInfo visibleContentRectUpdateInfo(399 WebCore::FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, unobscuredContentRectRespectingInputViewBounds, _page->customFixedPositionRect(), zoomScale, WebCore::FrameView::LayoutViewportConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled()); 400 401 WebKit::VisibleContentRectUpdateInfo visibleContentRectUpdateInfo( 401 402 visibleContentRect, 402 403 unobscuredContentRect, … … 416 417 velocityData.verticalVelocity, 417 418 velocityData.scaleChangeRate, 418 downcast< RemoteLayerTreeDrawingAreaProxy>(*drawingArea).lastCommittedLayerTreeTransactionID());419 downcast<WebKit::RemoteLayerTreeDrawingAreaProxy>(*drawingArea).lastCommittedLayerTreeTransactionID()); 419 420 420 421 LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView didUpdateVisibleRect]" << visibleContentRectUpdateInfo.dump()); … … 425 426 _sizeChangedSinceLastVisibleContentRectUpdate = NO; 426 427 427 FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), zoomScale,FrameView::LayoutViewportConstraint::Unconstrained, scrollingCoordinator->visualViewportEnabled());428 WebCore::FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), zoomScale, WebCore::FrameView::LayoutViewportConstraint::Unconstrained, scrollingCoordinator->visualViewportEnabled()); 428 429 scrollingCoordinator->viewportChangedViaDelegatedScrolling(scrollingCoordinator->rootScrollingNodeID(), fixedPositionRect, zoomScale); 429 430 … … 477 478 { 478 479 ASSERT(screen); 479 _page->setIntrinsicDeviceScaleFactor( screenScaleFactor(screen));480 _page->setIntrinsicDeviceScaleFactor(WebCore::screenScaleFactor(screen)); 480 481 [self _accessibilityRegisterUIProcessTokens]; 481 482 } … … 498 499 { 499 500 auto uuid = [NSUUID UUID]; 500 NSData *remoteElementToken = newAccessibilityRemoteToken(uuid);501 NSData *remoteElementToken = WebKit::newAccessibilityRemoteToken(uuid); 501 502 502 503 // Store information about the WebProcess that can later be retrieved by the iOS Accessibility runtime. 503 if (_page->process().state() == Web ProcessProxy::State::Running) {504 if (_page->process().state() == WebKit::WebProcessProxy::State::Running) { 504 505 IPC::Connection* connection = _page->process().connection(); 505 506 storeAccessibilityRemoteConnectionInformation(self, _page->process().processIdentifier(), connection->identifier().port, uuid); … … 517 518 #pragma mark PageClientImpl methods 518 519 519 - (std::unique_ptr< DrawingAreaProxy>)_createDrawingAreaProxy520 { 521 return std::make_unique< RemoteLayerTreeDrawingAreaProxy>(*_page);520 - (std::unique_ptr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy 521 { 522 return std::make_unique<WebKit::RemoteLayerTreeDrawingAreaProxy>(*_page); 522 523 } 523 524 … … 555 556 CGRect contentBounds = { scrollOrigin, contentsSize }; 556 557 557 LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView _didCommitLayerTree:] transactionID " << layerTreeTransaction.transactionID() << " contentBounds " << FloatRect(contentBounds));558 LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView _didCommitLayerTree:] transactionID " << layerTreeTransaction.transactionID() << " contentBounds " << WebCore::FloatRect(contentBounds)); 558 559 559 560 BOOL boundsChanged = !CGRectEqualToRect([self bounds], contentBounds); … … 564 565 565 566 if (_interactionViewsContainerView) { 566 FloatPoint scaledOrigin = layerTreeTransaction.scrollOrigin();567 WebCore::FloatPoint scaledOrigin = layerTreeTransaction.scrollOrigin(); 567 568 float scale = [[_webView scrollView] zoomScale]; 568 569 scaledOrigin.scale(scale); … … 572 573 if (boundsChanged) { 573 574 // FIXME: factor computeCustomFixedPositionRect() into something that gives us this rect. 574 FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), [[_webView scrollView] zoomScale]);575 WebCore::FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), [[_webView scrollView] zoomScale]); 575 576 [self updateFixedClippingView:fixedPositionRect]; 576 577 … … 673 674 return 0; 674 675 675 PrintInfo printInfo;676 WebKit::PrintInfo printInfo; 676 677 printInfo.pageSetupScaleFactor = 1; 677 678 printInfo.snapshotFirstPage = printFormatter.snapshotFirstPage; … … 687 688 _isPrintingToPDF = YES; 688 689 auto retainedSelf = retainPtr(self); 689 return _page->computePagesForPrintingAndDrawToPDF(frameID, printInfo, [retainedSelf](const IPC::DataReference& pdfData, CallbackBase::Error error) {690 return _page->computePagesForPrintingAndDrawToPDF(frameID, printInfo, [retainedSelf](const IPC::DataReference& pdfData, WebKit::CallbackBase::Error error) { 690 691 retainedSelf->_isPrintingToPDF = NO; 691 if (error != CallbackBase::Error::None)692 if (error != WebKit::CallbackBase::Error::None) 692 693 return; 693 694 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r239052 r239071 143 143 #endif 144 144 145 namespace WebKit { 145 146 using namespace WebCore; 146 147 using namespace WebKit; 147 148 namespace WebKit {149 148 150 149 WKSelectionDrawingInfo::WKSelectionDrawingInfo() … … 283 282 284 283 @interface WKFocusedElementInfo : NSObject <_WKFocusedElementInfo> 285 - (instancetype)initWithAssistedNodeInformation:(const AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject;284 - (instancetype)initWithAssistedNodeInformation:(const WebKit::AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject; 286 285 @end 287 286 … … 443 442 } 444 443 445 - (instancetype)initWithAssistedNodeInformation:(const AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject444 - (instancetype)initWithAssistedNodeInformation:(const WebKit::AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject 446 445 { 447 446 if (!(self = [super init])) … … 613 612 static inline bool hasAssistedNode(WebKit::AssistedNodeInformation assistedNodeInformation) 614 613 { 615 return (assistedNodeInformation.elementType != InputType::None);614 return (assistedNodeInformation.elementType != WebKit::InputType::None); 616 615 } 617 616 … … 730 729 _actionSheetAssistant = adoptNS([[WKActionSheetAssistant alloc] initWithView:self]); 731 730 [_actionSheetAssistant setDelegate:self]; 732 _smartMagnificationController = std::make_unique< SmartMagnificationController>(self);731 _smartMagnificationController = std::make_unique<WebKit::SmartMagnificationController>(self); 733 732 _isExpectingFastSingleTapCommit = NO; 734 733 _potentialTapInProgress = NO; … … 978 977 } 979 978 980 - (const InteractionInformationAtPosition&)positionInformation979 - (const WebKit::InteractionInformationAtPosition&)positionInformation 981 980 { 982 981 return _positionInformation; … … 1110 1109 _lastInteractionLocation = lastTouchEvent->locationInDocumentCoordinates; 1111 1110 if (lastTouchEvent->type == UIWebTouchEventTouchBegin) 1112 _layerTreeTransactionIdAtLastTouchStart = downcast< RemoteLayerTreeDrawingAreaProxy>(*_page->drawingArea()).lastCommittedLayerTreeTransactionID();1111 _layerTreeTransactionIdAtLastTouchStart = downcast<WebKit::RemoteLayerTreeDrawingAreaProxy>(*_page->drawingArea()).lastCommittedLayerTreeTransactionID(); 1113 1112 1114 1113 #if ENABLE(TOUCH_EVENTS) 1115 NativeWebTouchEvent nativeWebTouchEvent(lastTouchEvent);1114 WebKit::NativeWebTouchEvent nativeWebTouchEvent(lastTouchEvent); 1116 1115 nativeWebTouchEvent.setCanPreventNativeGestures(!_canSendTouchEventsAsynchronously || [gestureRecognizer isDefaultPrevented]); 1117 1116 … … 1146 1145 } 1147 1146 1148 static FloatQuad inflateQuad(constFloatQuad& quad, float inflateSize)1147 static WebCore::FloatQuad inflateQuad(const WebCore::FloatQuad& quad, float inflateSize) 1149 1148 { 1150 1149 // We sort the output points like this (as expected by the highlight view): … … 1154 1153 1155 1154 // 1) Sort the points horizontally. 1156 FloatPoint points[4] = { quad.p1(), quad.p4(), quad.p2(), quad.p3() };1155 WebCore::FloatPoint points[4] = { quad.p1(), quad.p4(), quad.p2(), quad.p3() }; 1157 1156 if (points[0].x() > points[1].x()) 1158 1157 std::swap(points[0], points[1]); … … 1180 1179 points[3].move(inflateSize, inflateSize); 1181 1180 1182 return FloatQuad(points[1], points[0], points[2], points[3]);1181 return WebCore::FloatQuad(points[1], points[0], points[2], points[3]); 1183 1182 } 1184 1183 … … 1217 1216 RetainPtr<NSMutableArray> rects = adoptNS([[NSMutableArray alloc] initWithCapacity:static_cast<const NSUInteger>(quadCount)]); 1218 1217 for (size_t i = 0; i < quadCount; ++i) { 1219 const FloatQuad& quad = highlightedQuads[i];1218 const WebCore::FloatQuad& quad = highlightedQuads[i]; 1220 1219 if (quad.isRectilinear()) { 1221 FloatRect boundingBox = quad.boundingBox();1220 WebCore::FloatRect boundingBox = quad.boundingBox(); 1222 1221 boundingBox.scale(selfScale); 1223 1222 boundingBox.inflate(minimumTapHighlightRadius); … … 1236 1235 RetainPtr<NSMutableArray> quads = adoptNS([[NSMutableArray alloc] initWithCapacity:static_cast<const NSUInteger>(quadCount)]); 1237 1236 for (size_t i = 0; i < quadCount; ++i) { 1238 FloatQuad quad = highlightedQuads[i];1237 WebCore::FloatQuad quad = highlightedQuads[i]; 1239 1238 quad.scale(selfScale); 1240 FloatQuad extendedQuad = inflateQuad(quad, minimumTapHighlightRadius);1239 WebCore::FloatQuad extendedQuad = inflateQuad(quad, minimumTapHighlightRadius); 1241 1240 [quads addObject:[NSValue valueWithCGPoint:extendedQuad.p1()]]; 1242 1241 [quads addObject:[NSValue valueWithCGPoint:extendedQuad.p2()]]; … … 1257 1256 - (void)_showTapHighlight 1258 1257 { 1259 auto shouldPaintTapHighlight = [&](const FloatRect& rect) {1258 auto shouldPaintTapHighlight = [&](const WebCore::FloatRect& rect) { 1260 1259 static const float highlightPaintThreshold = 0.3; // 30% 1261 1260 float highlightArea = 0; … … 1361 1360 // FIXME: We should add the logic to handle keyboard visibility during focus redirects. 1362 1361 switch (_assistedNodeInformation.elementType) { 1363 case InputType::None:1362 case WebKit::InputType::None: 1364 1363 return NO; 1365 case InputType::Select:1364 case WebKit::InputType::Select: 1366 1365 #if ENABLE(INPUT_TYPE_COLOR) 1367 case InputType::Color:1368 #endif 1369 case InputType::Date:1370 case InputType::Month:1371 case InputType::DateTimeLocal:1372 case InputType::Time:1366 case WebKit::InputType::Color: 1367 #endif 1368 case WebKit::InputType::Date: 1369 case WebKit::InputType::Month: 1370 case WebKit::InputType::DateTimeLocal: 1371 case WebKit::InputType::Time: 1373 1372 return !currentUserInterfaceIdiomIsPad(); 1374 case InputType::Drawing:1373 case WebKit::InputType::Drawing: 1375 1374 return YES; 1376 1375 default: … … 1387 1386 - (void)_displayFormNodeInputView 1388 1387 { 1389 if (!_suppressSelectionAssistantReasons.contains( FocusedElementIsTransparent)) {1388 if (!_suppressSelectionAssistantReasons.contains(WebKit::FocusedElementIsTransparent)) { 1390 1389 // In case user scaling is force enabled, do not use that scaling when zooming in with an input field. 1391 1390 // Zooming above the page's default scale factor should only happen when the user performs it. 1392 1391 [self _zoomToFocusRect:_assistedNodeInformation.elementRect 1393 selectionRect:_didAccessoryTabInitiateFocus ? IntRect() : _assistedNodeInformation.selectionRect1392 selectionRect:_didAccessoryTabInitiateFocus ? WebCore::IntRect() : _assistedNodeInformation.selectionRect 1394 1393 insideFixed:_assistedNodeInformation.insideFixedPosition 1395 1394 fontSize:_assistedNodeInformation.nodeFontSize … … 1397 1396 maximumScale:_assistedNodeInformation.maximumScaleFactorIgnoringAlwaysScalable 1398 1397 allowScaling:_assistedNodeInformation.allowsUserScalingIgnoringAlwaysScalable && !currentUserInterfaceIdiomIsPad() 1399 forceScroll:(_assistedNodeInformation.inputMode == InputMode::None) ? !currentUserInterfaceIdiomIsPad() : [self requiresAccessoryView]];1398 forceScroll:(_assistedNodeInformation.inputMode == WebCore::InputMode::None) ? !currentUserInterfaceIdiomIsPad() : [self requiresAccessoryView]]; 1400 1399 } 1401 1400 … … 1410 1409 return nil; 1411 1410 1412 if (_assistedNodeInformation.inputMode == InputMode::None)1411 if (_assistedNodeInformation.inputMode == WebCore::InputMode::None) 1413 1412 return [[UIView new] autorelease]; 1414 1413 1415 1414 if (!_inputPeripheral) { 1416 1415 switch (_assistedNodeInformation.elementType) { 1417 case InputType::Select:1416 case WebKit::InputType::Select: 1418 1417 _inputPeripheral = adoptNS([[WKFormSelectControl alloc] initWithView:self]); 1419 1418 break; 1420 1419 #if ENABLE(INPUT_TYPE_COLOR) 1421 case InputType::Color:1420 case WebKit::InputType::Color: 1422 1421 _inputPeripheral = adoptNS([[WKFormColorControl alloc] initWithView:self]); 1423 1422 break; 1424 1423 #endif 1425 case InputType::Drawing:1424 case WebKit::InputType::Drawing: 1426 1425 #if HAVE(PENCILKIT) 1427 1426 _inputPeripheral = adoptNS([[WKInkPickerControl alloc] initWithDrawingView:_page->editableImageController().editableImage(_assistedNodeInformation.embeddedViewID)->drawingView.get()]); … … 1561 1560 } 1562 1561 1563 - (SEL)_actionForLongPressFromPositionInformation:(const InteractionInformationAtPosition&)positionInformation1562 - (SEL)_actionForLongPressFromPositionInformation:(const WebKit::InteractionInformationAtPosition&)positionInformation 1564 1563 { 1565 1564 if (!_webView.configuration._longPressActionsEnabled) … … 1574 1573 if (positionInformation.isLink) { 1575 1574 #if ENABLE(DATA_DETECTION) 1576 if ( DataDetection::canBePresentedByDataDetectors(positionInformation.url))1575 if (WebCore::DataDetection::canBePresentedByDataDetectors(positionInformation.url)) 1577 1576 return @selector(_showDataDetectorsSheet); 1578 1577 #endif … … 1590 1589 } 1591 1590 1592 - ( InteractionInformationAtPosition)currentPositionInformation1591 - (WebKit::InteractionInformationAtPosition)currentPositionInformation 1593 1592 { 1594 1593 return _positionInformation; 1595 1594 } 1596 1595 1597 - (void)doAfterPositionInformationUpdate:(void (^)( InteractionInformationAtPosition))action forRequest:(InteractionInformationRequest)request1596 - (void)doAfterPositionInformationUpdate:(void (^)(WebKit::InteractionInformationAtPosition))action forRequest:(WebKit::InteractionInformationRequest)request 1598 1597 { 1599 1598 if ([self _currentPositionInformationIsValidForRequest:request]) { … … 1640 1639 } 1641 1640 1642 - (BOOL)_currentPositionInformationIsValidForRequest:(const InteractionInformationRequest&)request1641 - (BOOL)_currentPositionInformationIsValidForRequest:(const WebKit::InteractionInformationRequest&)request 1643 1642 { 1644 1643 return _hasValidPositionInformation && _positionInformation.request.isValidForRequest(request); 1645 1644 } 1646 1645 1647 - (BOOL)_hasValidOutstandingPositionInformationRequest:(const InteractionInformationRequest&)request1646 - (BOOL)_hasValidOutstandingPositionInformationRequest:(const WebKit::InteractionInformationRequest&)request 1648 1647 { 1649 1648 return _outstandingPositionInformationRequest && _outstandingPositionInformationRequest->isValidForRequest(request); 1650 1649 } 1651 1650 1652 - (BOOL)_currentPositionInformationIsApproximatelyValidForRequest:(const InteractionInformationRequest&)request1651 - (BOOL)_currentPositionInformationIsApproximatelyValidForRequest:(const WebKit::InteractionInformationRequest&)request 1653 1652 { 1654 1653 return _hasValidPositionInformation && _positionInformation.request.isApproximatelyValidForRequest(request); … … 1716 1715 // Request information about the position with sync message. 1717 1716 // If the assisted node is the same, prevent the gesture. 1718 if (![self ensurePositionInformationIsUpToDate: InteractionInformationRequest(roundedIntPoint(point))])1717 if (![self ensurePositionInformationIsUpToDate:WebKit::InteractionInformationRequest(WebCore::roundedIntPoint(point))]) 1719 1718 return NO; 1720 1719 if (_positionInformation.nodeAtPositionIsAssistedNode) … … 1735 1734 // Send an async message to find out. 1736 1735 _hasValidPositionInformation = NO; 1737 InteractionInformationRequest request(roundedIntPoint(point));1736 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 1738 1737 1739 1738 // If 3D Touch is enabled, asynchronously collect snapshots in the hopes that … … 1754 1753 // to gestureRecognizerShouldBegin. 1755 1754 // Force a sync call if not ready yet. 1756 InteractionInformationRequest request(roundedIntPoint(point));1755 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 1757 1756 if (![self ensurePositionInformationIsUpToDate:request]) 1758 1757 return NO; … … 1811 1810 return NO; 1812 1811 1813 InteractionInformationRequest request(roundedIntPoint(point));1812 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 1814 1813 if (![self ensurePositionInformationIsUpToDate:request]) 1815 1814 return NO; … … 1834 1833 return NO; 1835 1834 1836 InteractionInformationRequest request(roundedIntPoint(point));1835 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 1837 1836 if (![self ensurePositionInformationIsUpToDate:request]) 1838 1837 return NO; … … 1848 1847 return NO; 1849 1848 1850 InteractionInformationRequest request(roundedIntPoint(point));1849 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 1851 1850 if (![self ensurePositionInformationIsUpToDate:request]) 1852 1851 return NO; … … 1892 1891 WebSelectionRect *webRect = [WebSelectionRect selectionRect]; 1893 1892 webRect.rect = coreRect.rect(); 1894 webRect.writingDirection = coreRect.direction() == TextDirection::LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft;1893 webRect.writingDirection = coreRect.direction() == WebCore::TextDirection::LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft; 1895 1894 webRect.isLineBreak = coreRect.isLineBreak(); 1896 1895 webRect.isFirstOnLine = coreRect.isFirstOnLine(); … … 1949 1948 _isTapHighlightIDValid = YES; 1950 1949 _isExpectingFastSingleTapCommit = YES; 1951 _page->handleTwoFingerTapAtPoint( roundedIntPoint(gestureRecognizer.centroid), ++_latestTapID);1950 _page->handleTwoFingerTapAtPoint(WebCore::roundedIntPoint(gestureRecognizer.centroid), ++_latestTapID); 1952 1951 } 1953 1952 … … 1958 1957 1959 1958 ASSERT(gestureRecognizer == _stylusSingleTapGestureRecognizer); 1960 _page->handleStylusSingleTapAtPoint( roundedIntPoint(gestureRecognizer.location), ++_latestTapID);1959 _page->handleStylusSingleTapAtPoint(WebCore::roundedIntPoint(gestureRecognizer.location), ++_latestTapID); 1961 1960 } 1962 1961 … … 2050 2049 if (![self isFirstResponder]) { 2051 2050 if (!_inputViewUpdateDeferrer) 2052 _inputViewUpdateDeferrer = std::make_unique< InputViewUpdateDeferrer>();2051 _inputViewUpdateDeferrer = std::make_unique<WebKit::InputViewUpdateDeferrer>(); 2053 2052 [self becomeFirstResponder]; 2054 2053 } … … 2109 2108 if (![self isFirstResponder]) { 2110 2109 if (!_inputViewUpdateDeferrer) 2111 _inputViewUpdateDeferrer = std::make_unique< InputViewUpdateDeferrer>();2110 _inputViewUpdateDeferrer = std::make_unique<WebKit::InputViewUpdateDeferrer>(); 2112 2111 [self becomeFirstResponder]; 2113 2112 } … … 2133 2132 } 2134 2133 2135 - (void)_positionInformationDidChange:(const InteractionInformationAtPosition&)info2134 - (void)_positionInformationDidChange:(const WebKit::InteractionInformationAtPosition&)info 2136 2135 { 2137 2136 _outstandingPositionInformationRequest = std::nullopt; 2138 2137 2139 InteractionInformationAtPosition newInfo = info;2138 WebKit::InteractionInformationAtPosition newInfo = info; 2140 2139 newInfo.mergeCompatibleOptionalInformation(_positionInformation); 2141 2140 … … 2186 2185 return YES; 2187 2186 2188 if (_assistedNodeInformation.inputMode == InputMode::None)2187 if (_assistedNodeInformation.inputMode == WebCore::InputMode::None) 2189 2188 return NO; 2190 2189 2191 2190 switch (_assistedNodeInformation.elementType) { 2192 case InputType::None:2191 case WebKit::InputType::None: 2193 2192 return NO; 2194 case InputType::Text:2195 case InputType::Password:2196 case InputType::Search:2197 case InputType::Email:2198 case InputType::URL:2199 case InputType::Phone:2200 case InputType::Number:2201 case InputType::NumberPad:2202 case InputType::ContentEditable:2203 case InputType::TextArea:2204 case InputType::Select:2205 case InputType::Date:2206 case InputType::DateTime:2207 case InputType::DateTimeLocal:2208 case InputType::Month:2209 case InputType::Week:2210 case InputType::Time:2193 case WebKit::InputType::Text: 2194 case WebKit::InputType::Password: 2195 case WebKit::InputType::Search: 2196 case WebKit::InputType::Email: 2197 case WebKit::InputType::URL: 2198 case WebKit::InputType::Phone: 2199 case WebKit::InputType::Number: 2200 case WebKit::InputType::NumberPad: 2201 case WebKit::InputType::ContentEditable: 2202 case WebKit::InputType::TextArea: 2203 case WebKit::InputType::Select: 2204 case WebKit::InputType::Date: 2205 case WebKit::InputType::DateTime: 2206 case WebKit::InputType::DateTimeLocal: 2207 case WebKit::InputType::Month: 2208 case WebKit:: InputType::Week: 2209 case WebKit::InputType::Time: 2211 2210 #if ENABLE(INPUT_TYPE_COLOR) 2212 case InputType::Color:2211 case WebKit::InputType::Color: 2213 2212 #endif 2214 2213 return !currentUserInterfaceIdiomIsPad(); 2215 case InputType::Drawing:2214 case WebKit::InputType::Drawing: 2216 2215 return YES; 2217 2216 } … … 2258 2257 2259 2258 richTypes = [[NSMutableArray alloc] init]; 2260 [richTypes addObject:Web ArchivePboardType];2259 [richTypes addObject:WebCore::WebArchivePboardType]; 2261 2260 [richTypes addObjectsFromArray:UIPasteboardTypeListImage]; 2262 2261 [richTypes addObjectsFromArray:plainTextTypes]; … … 2280 2279 { 2281 2280 RetainPtr<WKContentView> view = self; 2282 _page->getSelectionContext([view](const String& selectedText, const String& textBefore, const String& textAfter, CallbackBase::Error error) {2283 if (error != CallbackBase::Error::None)2281 _page->getSelectionContext([view](const String& selectedText, const String& textBefore, const String& textAfter, WebKit::CallbackBase::Error error) { 2282 if (error != WebKit::CallbackBase::Error::None) 2284 2283 return; 2285 2284 if (!selectedText) … … 2305 2304 { 2306 2305 RetainPtr<WKContentView> view = self; 2307 _page->getSelectionOrContentsAsString([view](const String& string, CallbackBase::Error error) {2308 if (error != CallbackBase::Error::None)2306 _page->getSelectionOrContentsAsString([view](const String& string, WebKit::CallbackBase::Error error) { 2307 if (error != WebKit::CallbackBase::Error::None) 2309 2308 return; 2310 2309 if (!string) … … 2466 2465 auto typingAttributes = _page->editorState().postLayoutData().typingAttributes; 2467 2466 CTFontSymbolicTraits symbolicTraits = 0; 2468 if (typingAttributes & AttributeBold)2467 if (typingAttributes & WebKit::AttributeBold) 2469 2468 symbolicTraits |= kCTFontBoldTrait; 2470 if (typingAttributes & AttributeItalics)2469 if (typingAttributes & WebKit::AttributeItalics) 2471 2470 symbolicTraits |= kCTFontTraitItalic; 2472 2471 … … 2482 2481 [result setObject:(id)font.get() forKey:NSFontAttributeName]; 2483 2482 2484 if (typingAttributes & AttributeUnderline)2483 if (typingAttributes & WebKit::AttributeUnderline) 2485 2484 [result setObject:[NSNumber numberWithInt:NSUnderlineStyleSingle] forKey:NSUnderlineStyleAttributeName]; 2486 2485 … … 2575 2574 return NO; 2576 2575 2577 NSArray *allCustomPasteboardData = [pasteboard dataForPasteboardType:@( PasteboardCustomData::cocoaType()) inItemSet:indices];2576 NSArray *allCustomPasteboardData = [pasteboard dataForPasteboardType:@(WebCore::PasteboardCustomData::cocoaType()) inItemSet:indices]; 2578 2577 for (NSData *data in allCustomPasteboardData) { 2579 auto buffer = SharedBuffer::create(data);2580 if ( PasteboardCustomData::fromSharedBuffer(buffer.get()).origin == focusedDocumentOrigin)2578 auto buffer = WebCore::SharedBuffer::create(data); 2579 if (WebCore::PasteboardCustomData::fromSharedBuffer(buffer.get()).origin == focusedDocumentOrigin) 2581 2580 return YES; 2582 2581 } … … 2714 2713 [_textSelectionAssistant selectWord]; 2715 2714 // We cannot use selectWord command, because we want to be able to select the word even when it is the last in the paragraph. 2716 _page->extendSelection(W ordGranularity);2715 _page->extendSelection(WebCore::WordGranularity); 2717 2716 } 2718 2717 … … 2794 2793 { 2795 2794 RetainPtr<WKContentView> view = self; 2796 _page->requestRectsForGranularityWithSelectionOffset(toWKTextGranularity(granularity), offset , [view, offset, granularity](const Vector<WebCore::SelectionRect>& selectionRects, CallbackBase::Error error) {2795 _page->requestRectsForGranularityWithSelectionOffset(toWKTextGranularity(granularity), offset , [view, offset, granularity](const Vector<WebCore::SelectionRect>& selectionRects, WebKit::CallbackBase::Error error) { 2797 2796 if (error != WebKit::CallbackBase::Error::None) 2798 2797 return; … … 2807 2806 } 2808 2807 2809 - (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text completionHandler:(void (^)(const Vector< SelectionRect>& rects))completionHandler2808 - (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text completionHandler:(void (^)(const Vector<WebCore::SelectionRect>& rects))completionHandler 2810 2809 { 2811 2810 RetainPtr<WKContentView> view = self; 2812 _page->requestRectsAtSelectionOffsetWithText(offset, text, [view, offset, capturedCompletionHandler = makeBlockPtr(completionHandler)](const Vector< SelectionRect>& selectionRects,CallbackBase::Error error) {2811 _page->requestRectsAtSelectionOffsetWithText(offset, text, [view, offset, capturedCompletionHandler = makeBlockPtr(completionHandler)](const Vector<WebCore::SelectionRect>& selectionRects, WebKit::CallbackBase::Error error) { 2813 2812 if (capturedCompletionHandler) 2814 2813 capturedCompletionHandler(selectionRects); … … 2833 2832 // UIWKInteractionViewProtocol 2834 2833 2835 static inline GestureType toGestureType(UIWKGestureType gestureType)2834 static inline WebKit::GestureType toGestureType(UIWKGestureType gestureType) 2836 2835 { 2837 2836 switch (gestureType) { 2838 2837 case UIWKGestureLoupe: 2839 return GestureType::Loupe;2838 return WebKit::GestureType::Loupe; 2840 2839 case UIWKGestureOneFingerTap: 2841 return GestureType::OneFingerTap;2840 return WebKit::GestureType::OneFingerTap; 2842 2841 case UIWKGestureTapAndAHalf: 2843 return GestureType::TapAndAHalf;2842 return WebKit::GestureType::TapAndAHalf; 2844 2843 case UIWKGestureDoubleTap: 2845 return GestureType::DoubleTap;2844 return WebKit::GestureType::DoubleTap; 2846 2845 case UIWKGestureTapAndHalf: 2847 return GestureType::TapAndHalf;2846 return WebKit::GestureType::TapAndHalf; 2848 2847 case UIWKGestureDoubleTapInUneditable: 2849 return GestureType::DoubleTapInUneditable;2848 return WebKit::GestureType::DoubleTapInUneditable; 2850 2849 case UIWKGestureOneFingerTapInUneditable: 2851 return GestureType::OneFingerTapInUneditable;2850 return WebKit::GestureType::OneFingerTapInUneditable; 2852 2851 case UIWKGestureOneFingerTapSelectsAll: 2853 return GestureType::OneFingerTapSelectsAll;2852 return WebKit::GestureType::OneFingerTapSelectsAll; 2854 2853 case UIWKGestureOneFingerDoubleTap: 2855 return GestureType::OneFingerDoubleTap;2854 return WebKit::GestureType::OneFingerDoubleTap; 2856 2855 case UIWKGestureOneFingerTripleTap: 2857 return GestureType::OneFingerTripleTap;2856 return WebKit::GestureType::OneFingerTripleTap; 2858 2857 case UIWKGestureTwoFingerSingleTap: 2859 return GestureType::TwoFingerSingleTap;2858 return WebKit::GestureType::TwoFingerSingleTap; 2860 2859 case UIWKGestureTwoFingerRangedSelectGesture: 2861 return GestureType::TwoFingerRangedSelectGesture;2860 return WebKit::GestureType::TwoFingerRangedSelectGesture; 2862 2861 case UIWKGestureTapOnLinkWithGesture: 2863 return GestureType::TapOnLinkWithGesture;2862 return WebKit::GestureType::TapOnLinkWithGesture; 2864 2863 case UIWKGestureMakeWebSelection: 2865 return GestureType::MakeWebSelection;2864 return WebKit::GestureType::MakeWebSelection; 2866 2865 case UIWKGesturePhraseBoundary: 2867 return GestureType::PhraseBoundary;2866 return WebKit::GestureType::PhraseBoundary; 2868 2867 } 2869 2868 ASSERT_NOT_REACHED(); 2870 return GestureType::Loupe;2871 } 2872 2873 static inline UIWKGestureType toUIWKGestureType( GestureType gestureType)2869 return WebKit::GestureType::Loupe; 2870 } 2871 2872 static inline UIWKGestureType toUIWKGestureType(WebKit::GestureType gestureType) 2874 2873 { 2875 2874 switch (gestureType) { 2876 case GestureType::Loupe:2875 case WebKit::GestureType::Loupe: 2877 2876 return UIWKGestureLoupe; 2878 case GestureType::OneFingerTap:2877 case WebKit::GestureType::OneFingerTap: 2879 2878 return UIWKGestureOneFingerTap; 2880 case GestureType::TapAndAHalf:2879 case WebKit::GestureType::TapAndAHalf: 2881 2880 return UIWKGestureTapAndAHalf; 2882 case GestureType::DoubleTap:2881 case WebKit::GestureType::DoubleTap: 2883 2882 return UIWKGestureDoubleTap; 2884 case GestureType::TapAndHalf:2883 case WebKit::GestureType::TapAndHalf: 2885 2884 return UIWKGestureTapAndHalf; 2886 case GestureType::DoubleTapInUneditable:2885 case WebKit::GestureType::DoubleTapInUneditable: 2887 2886 return UIWKGestureDoubleTapInUneditable; 2888 case GestureType::OneFingerTapInUneditable:2887 case WebKit::GestureType::OneFingerTapInUneditable: 2889 2888 return UIWKGestureOneFingerTapInUneditable; 2890 case GestureType::OneFingerTapSelectsAll:2889 case WebKit::GestureType::OneFingerTapSelectsAll: 2891 2890 return UIWKGestureOneFingerTapSelectsAll; 2892 case GestureType::OneFingerDoubleTap:2891 case WebKit::GestureType::OneFingerDoubleTap: 2893 2892 return UIWKGestureOneFingerDoubleTap; 2894 case GestureType::OneFingerTripleTap:2893 case WebKit::GestureType::OneFingerTripleTap: 2895 2894 return UIWKGestureOneFingerTripleTap; 2896 case GestureType::TwoFingerSingleTap:2895 case WebKit::GestureType::TwoFingerSingleTap: 2897 2896 return UIWKGestureTwoFingerSingleTap; 2898 case GestureType::TwoFingerRangedSelectGesture:2897 case WebKit::GestureType::TwoFingerRangedSelectGesture: 2899 2898 return UIWKGestureTwoFingerRangedSelectGesture; 2900 case GestureType::TapOnLinkWithGesture:2899 case WebKit::GestureType::TapOnLinkWithGesture: 2901 2900 return UIWKGestureTapOnLinkWithGesture; 2902 case GestureType::MakeWebSelection:2901 case WebKit::GestureType::MakeWebSelection: 2903 2902 return UIWKGestureMakeWebSelection; 2904 case GestureType::PhraseBoundary:2903 case WebKit::GestureType::PhraseBoundary: 2905 2904 return UIWKGesturePhraseBoundary; 2906 2905 } 2907 2906 } 2908 2907 2909 static inline SelectionTouch toSelectionTouch(UIWKSelectionTouch touch)2908 static inline WebKit::SelectionTouch toSelectionTouch(UIWKSelectionTouch touch) 2910 2909 { 2911 2910 switch (touch) { 2912 2911 case UIWKSelectionTouchStarted: 2913 return SelectionTouch::Started;2912 return WebKit::SelectionTouch::Started; 2914 2913 case UIWKSelectionTouchMoved: 2915 return SelectionTouch::Moved;2914 return WebKit::SelectionTouch::Moved; 2916 2915 case UIWKSelectionTouchEnded: 2917 return SelectionTouch::Ended;2916 return WebKit::SelectionTouch::Ended; 2918 2917 case UIWKSelectionTouchEndedMovingForward: 2919 return SelectionTouch::EndedMovingForward;2918 return WebKit::SelectionTouch::EndedMovingForward; 2920 2919 case UIWKSelectionTouchEndedMovingBackward: 2921 return SelectionTouch::EndedMovingBackward;2920 return WebKit::SelectionTouch::EndedMovingBackward; 2922 2921 case UIWKSelectionTouchEndedNotMoving: 2923 return SelectionTouch::EndedNotMoving;2922 return WebKit::SelectionTouch::EndedNotMoving; 2924 2923 } 2925 2924 ASSERT_NOT_REACHED(); 2926 return SelectionTouch::Ended;2927 } 2928 2929 static inline UIWKSelectionTouch toUIWKSelectionTouch( SelectionTouch touch)2925 return WebKit::SelectionTouch::Ended; 2926 } 2927 2928 static inline UIWKSelectionTouch toUIWKSelectionTouch(WebKit::SelectionTouch touch) 2930 2929 { 2931 2930 switch (touch) { 2932 case SelectionTouch::Started:2931 case WebKit::SelectionTouch::Started: 2933 2932 return UIWKSelectionTouchStarted; 2934 case SelectionTouch::Moved:2933 case WebKit::SelectionTouch::Moved: 2935 2934 return UIWKSelectionTouchMoved; 2936 case SelectionTouch::Ended:2935 case WebKit::SelectionTouch::Ended: 2937 2936 return UIWKSelectionTouchEnded; 2938 case SelectionTouch::EndedMovingForward:2937 case WebKit::SelectionTouch::EndedMovingForward: 2939 2938 return UIWKSelectionTouchEndedMovingForward; 2940 case SelectionTouch::EndedMovingBackward:2939 case WebKit::SelectionTouch::EndedMovingBackward: 2941 2940 return UIWKSelectionTouchEndedMovingBackward; 2942 case SelectionTouch::EndedNotMoving:2941 case WebKit::SelectionTouch::EndedNotMoving: 2943 2942 return UIWKSelectionTouchEndedNotMoving; 2944 2943 } 2945 2944 } 2946 2945 2947 static inline GestureRecognizerState toGestureRecognizerState(UIGestureRecognizerState state)2946 static inline WebKit::GestureRecognizerState toGestureRecognizerState(UIGestureRecognizerState state) 2948 2947 { 2949 2948 switch (state) { 2950 2949 case UIGestureRecognizerStatePossible: 2951 return GestureRecognizerState::Possible;2950 return WebKit::GestureRecognizerState::Possible; 2952 2951 case UIGestureRecognizerStateBegan: 2953 return GestureRecognizerState::Began;2952 return WebKit::GestureRecognizerState::Began; 2954 2953 case UIGestureRecognizerStateChanged: 2955 return GestureRecognizerState::Changed;2954 return WebKit::GestureRecognizerState::Changed; 2956 2955 case UIGestureRecognizerStateCancelled: 2957 return GestureRecognizerState::Cancelled;2956 return WebKit::GestureRecognizerState::Cancelled; 2958 2957 case UIGestureRecognizerStateEnded: 2959 return GestureRecognizerState::Ended;2958 return WebKit::GestureRecognizerState::Ended; 2960 2959 case UIGestureRecognizerStateFailed: 2961 return GestureRecognizerState::Failed;2962 } 2963 } 2964 2965 static inline UIGestureRecognizerState toUIGestureRecognizerState( GestureRecognizerState state)2960 return WebKit::GestureRecognizerState::Failed; 2961 } 2962 } 2963 2964 static inline UIGestureRecognizerState toUIGestureRecognizerState(WebKit::GestureRecognizerState state) 2966 2965 { 2967 2966 switch (state) { 2968 case GestureRecognizerState::Possible:2967 case WebKit::GestureRecognizerState::Possible: 2969 2968 return UIGestureRecognizerStatePossible; 2970 case GestureRecognizerState::Began:2969 case WebKit::GestureRecognizerState::Began: 2971 2970 return UIGestureRecognizerStateBegan; 2972 case GestureRecognizerState::Changed:2971 case WebKit::GestureRecognizerState::Changed: 2973 2972 return UIGestureRecognizerStateChanged; 2974 case GestureRecognizerState::Cancelled:2973 case WebKit::GestureRecognizerState::Cancelled: 2975 2974 return UIGestureRecognizerStateCancelled; 2976 case GestureRecognizerState::Ended:2975 case WebKit::GestureRecognizerState::Ended: 2977 2976 return UIGestureRecognizerStateEnded; 2978 case GestureRecognizerState::Failed:2977 case WebKit::GestureRecognizerState::Failed: 2979 2978 return UIGestureRecognizerStateFailed; 2980 2979 } 2981 2980 } 2982 2981 2983 static inline UIWKSelectionFlags toUIWKSelectionFlags( SelectionFlags flags)2982 static inline UIWKSelectionFlags toUIWKSelectionFlags(WebKit::SelectionFlags flags) 2984 2983 { 2985 2984 NSInteger uiFlags = UIWKNone; 2986 if (flags & W ordIsNearTap)2985 if (flags & WebKit::WordIsNearTap) 2987 2986 uiFlags |= UIWKWordIsNearTap; 2988 if (flags & PhraseBoundaryChanged)2987 if (flags & WebKit::PhraseBoundaryChanged) 2989 2988 uiFlags |= UIWKPhraseBoundaryChanged; 2990 2989 … … 2996 2995 switch (granularity) { 2997 2996 case UITextGranularityCharacter: 2998 return CharacterGranularity;2997 return WebCore::CharacterGranularity; 2999 2998 case UITextGranularityWord: 3000 return W ordGranularity;2999 return WebCore::WordGranularity; 3001 3000 case UITextGranularitySentence: 3002 return SentenceGranularity;3001 return WebCore::SentenceGranularity; 3003 3002 case UITextGranularityParagraph: 3004 return ParagraphGranularity;3003 return WebCore::ParagraphGranularity; 3005 3004 case UITextGranularityLine: 3006 return LineGranularity;3005 return WebCore::LineGranularity; 3007 3006 case UITextGranularityDocument: 3008 return DocumentGranularity;3007 return WebCore::DocumentGranularity; 3009 3008 } 3010 3009 } … … 3015 3014 case UITextLayoutDirectionDown: 3016 3015 case UITextLayoutDirectionRight: 3017 return DirectionRight;3016 return WebCore::DirectionRight; 3018 3017 case UITextLayoutDirectionUp: 3019 3018 case UITextLayoutDirectionLeft: 3020 return DirectionLeft;3019 return WebCore::DirectionLeft; 3021 3020 default: 3022 3021 // UITextDirection is not an enum, but we only want to accept values from UITextLayoutDirection. 3023 3022 ASSERT_NOT_REACHED(); 3024 return DirectionRight;3023 return WebCore::DirectionRight; 3025 3024 } 3026 3025 } … … 3032 3031 return; 3033 3032 } 3034 [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithGestureAt:(CGPoint)point withGesture:toUIWKGestureType(( GestureType)gestureType) withState:toUIGestureRecognizerState(static_cast<GestureRecognizerState>(gestureState)) withFlags:(toUIWKSelectionFlags((SelectionFlags)flags))];3033 [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithGestureAt:(CGPoint)point withGesture:toUIWKGestureType((WebKit::GestureType)gestureType) withState:toUIGestureRecognizerState(static_cast<WebKit::GestureRecognizerState>(gestureState)) withFlags:(toUIWKSelectionFlags((WebKit::SelectionFlags)flags))]; 3035 3034 } 3036 3035 … … 3041 3040 return; 3042 3041 } 3043 [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:toUIWKSelectionTouch(( SelectionTouch)touch) withFlags:static_cast<UIWKSelectionFlags>(flags)];3042 [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:toUIWKSelectionTouch((WebKit::SelectionTouch)touch) withFlags:static_cast<UIWKSelectionFlags>(flags)]; 3044 3043 } 3045 3044 … … 3057 3056 { 3058 3057 _usingGestureForSelection = YES; 3059 _page->selectWithGesture(WebCore::IntPoint(point), CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), [self _isInteractingWithAssistedNode], [self, state, flags](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t innerFlags, WebKit::CallbackBase::Error error) {3058 _page->selectWithGesture(WebCore::IntPoint(point), WebCore::CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), [self _isInteractingWithAssistedNode], [self, state, flags](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t innerFlags, WebKit::CallbackBase::Error error) { 3060 3059 selectionChangedWithGesture(self, point, gestureType, gestureState, flags | innerFlags, error); 3061 3060 if (state == UIGestureRecognizerStateEnded || state == UIGestureRecognizerStateCancelled) … … 3096 3095 } 3097 3096 3098 - (const W KAutoCorrectionData&)autocorrectionData3097 - (const WebKit::WKAutoCorrectionData&)autocorrectionData 3099 3098 { 3100 3099 return _autocorrectionData; … … 3111 3110 RetainPtr<WKContentView> view = self; 3112 3111 _autocorrectionData.autocorrectionHandler = [completionHandler copy]; 3113 _page->requestAutocorrectionData(input, [view](const Vector< FloatRect>& rects, const String& fontName, double fontSize, uint64_t traits, WebKit::CallbackBase::Error) {3112 _page->requestAutocorrectionData(input, [view](const Vector<WebCore::FloatRect>& rects, const String& fontName, double fontSize, uint64_t traits, WebKit::CallbackBase::Error) { 3114 3113 CGRect firstRect = CGRectZero; 3115 3114 CGRect lastRect = CGRectZero; … … 3351 3350 RetainPtr<WKContentView> view = self; 3352 3351 _page->setInitialFocus(selectingForward, false, WebKit::WebKeyboardEvent(), [view, completionHandlerCopy](WebKit::CallbackBase::Error) { 3353 BOOL didBecomeFirstResponder = view->_assistedNodeInformation.elementType != InputType::None && [view becomeFirstResponder];3352 BOOL didBecomeFirstResponder = view->_assistedNodeInformation.elementType != WebKit::InputType::None && [view becomeFirstResponder]; 3354 3353 completionHandlerCopy(didBecomeFirstResponder); 3355 3354 Block_release(completionHandlerCopy); … … 3402 3401 else { 3403 3402 switch (_assistedNodeInformation.elementType) { 3404 case InputType::Date:3405 case InputType::Month:3406 case InputType::DateTimeLocal:3407 case InputType::Time:3403 case WebKit::InputType::Date: 3404 case WebKit::InputType::Month: 3405 case WebKit::InputType::DateTimeLocal: 3406 case WebKit::InputType::Time: 3408 3407 [_formAccessoryView setClearVisible:YES]; 3409 3408 break; … … 3471 3470 3472 3471 auto& postLayoutEditorStateData = _page->editorState().postLayoutData(); 3473 FloatRect startRect = postLayoutEditorStateData.caretRectAtStart;3474 FloatRect endRect = postLayoutEditorStateData.caretRectAtEnd;3472 WebCore::FloatRect startRect = postLayoutEditorStateData.caretRectAtStart; 3473 WebCore::FloatRect endRect = postLayoutEditorStateData.caretRectAtEnd; 3475 3474 double inverseScale = [self inverseScale]; 3476 3475 // We want to keep the original caret width, while the height scales with … … 3551 3550 { 3552 3551 _markedText = markedText; 3553 _page->setCompositionAsync(markedText, Vector<WebCore::CompositionUnderline>(), selectedRange, EditingRange());3552 _page->setCompositionAsync(markedText, Vector<WebCore::CompositionUnderline>(), selectedRange, WebKit::EditingRange()); 3554 3553 } 3555 3554 … … 3615 3614 } 3616 3615 3617 static W ritingDirection coreWritingDirection(NSWritingDirection direction)3616 static WebKit::WritingDirection coreWritingDirection(NSWritingDirection direction) 3618 3617 { 3619 3618 switch (direction) { 3620 3619 case NSWritingDirectionNatural: 3621 return W ritingDirection::Natural;3620 return WebCore::WritingDirection::Natural; 3622 3621 case NSWritingDirectionLeftToRight: 3623 return W ritingDirection::LeftToRight;3622 return WebCore::WritingDirection::LeftToRight; 3624 3623 case NSWritingDirectionRightToLeft: 3625 return W ritingDirection::RightToLeft;3624 return WebCore::WritingDirection::RightToLeft; 3626 3625 default: 3627 3626 ASSERT_NOT_REACHED(); 3628 return W ritingDirection::Natural;3627 return WebCore::WritingDirection::Natural; 3629 3628 } 3630 3629 } … … 3648 3647 { 3649 3648 #if PLATFORM(IOSMAC) 3650 InteractionInformationRequest request(roundedIntPoint(point));3649 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); 3651 3650 [self requestAsynchronousPositionInformationUpdate:request]; 3652 3651 if ([self _currentPositionInformationIsApproximatelyValidForRequest:request] && _positionInformation.isSelectable) … … 3674 3673 - (void)insertText:(NSString *)aStringValue 3675 3674 { 3676 _page->insertTextAsync(aStringValue, EditingRange());3675 _page->insertTextAsync(aStringValue, WebKit::EditingRange()); 3677 3676 } 3678 3677 … … 3794 3793 _traits = adoptNS([[UITextInputTraits alloc] init]); 3795 3794 3796 [_traits setSecureTextEntry:_assistedNodeInformation.elementType == InputType::Password || [_formInputSession forceSecureTextEntry]];3797 [_traits setShortcutConversionType:_assistedNodeInformation.elementType == InputType::Password ? UITextShortcutConversionTypeNo : UITextShortcutConversionTypeDefault];3795 [_traits setSecureTextEntry:_assistedNodeInformation.elementType == WebKit::InputType::Password || [_formInputSession forceSecureTextEntry]]; 3796 [_traits setShortcutConversionType:_assistedNodeInformation.elementType == WebKit::InputType::Password ? UITextShortcutConversionTypeNo : UITextShortcutConversionTypeDefault]; 3798 3797 3799 3798 if (!_assistedNodeInformation.formAction.isEmpty()) 3800 [_traits setReturnKeyType:(_assistedNodeInformation.elementType == InputType::Search) ? UIReturnKeySearch : UIReturnKeyGo];3801 3802 if (_assistedNodeInformation.elementType == InputType::Password || _assistedNodeInformation.elementType == InputType::Email || _assistedNodeInformation.elementType ==InputType::URL || _assistedNodeInformation.formAction.contains("login")) {3799 [_traits setReturnKeyType:(_assistedNodeInformation.elementType == WebKit::InputType::Search) ? UIReturnKeySearch : UIReturnKeyGo]; 3800 3801 if (_assistedNodeInformation.elementType == WebKit::InputType::Password || _assistedNodeInformation.elementType == WebKit::InputType::Email || _assistedNodeInformation.elementType == WebKit::InputType::URL || _assistedNodeInformation.formAction.contains("login")) { 3803 3802 [_traits setAutocapitalizationType:UITextAutocapitalizationTypeNone]; 3804 3803 [_traits setAutocorrectionType:UITextAutocorrectionTypeNo]; … … 3809 3808 3810 3809 switch (_assistedNodeInformation.inputMode) { 3811 case InputMode::Unspecified:3810 case WebCore::InputMode::Unspecified: 3812 3811 switch (_assistedNodeInformation.elementType) { 3813 case InputType::Phone:3812 case WebKit::InputType::Phone: 3814 3813 [_traits setKeyboardType:UIKeyboardTypePhonePad]; 3815 3814 break; 3816 case InputType::URL:3815 case WebKit::InputType::URL: 3817 3816 [_traits setKeyboardType:UIKeyboardTypeURL]; 3818 3817 break; 3819 case InputType::Email:3818 case WebKit::InputType::Email: 3820 3819 [_traits setKeyboardType:UIKeyboardTypeEmailAddress]; 3821 3820 break; 3822 case InputType::Number:3821 case WebKit::InputType::Number: 3823 3822 [_traits setKeyboardType:UIKeyboardTypeNumbersAndPunctuation]; 3824 3823 break; 3825 case InputType::NumberPad:3824 case WebKit::InputType::NumberPad: 3826 3825 [_traits setKeyboardType:UIKeyboardTypeNumberPad]; 3827 3826 break; 3828 case InputType::None:3829 case InputType::ContentEditable:3830 case InputType::Text:3831 case InputType::Password:3832 case InputType::TextArea:3833 case InputType::Search:3834 case InputType::Date:3835 case InputType::DateTime:3836 case InputType::DateTimeLocal:3837 case InputType::Month:3838 case InputType::Week:3839 case InputType::Time:3840 case InputType::Select:3841 case InputType::Drawing:3827 case WebKit::InputType::None: 3828 case WebKit::InputType::ContentEditable: 3829 case WebKit::InputType::Text: 3830 case WebKit::InputType::Password: 3831 case WebKit::InputType::TextArea: 3832 case WebKit::InputType::Search: 3833 case WebKit::InputType::Date: 3834 case WebKit::InputType::DateTime: 3835 case WebKit::InputType::DateTimeLocal: 3836 case WebKit::InputType::Month: 3837 case WebKit::InputType::Week: 3838 case WebKit::InputType::Time: 3839 case WebKit::InputType::Select: 3840 case WebKit::InputType::Drawing: 3842 3841 #if ENABLE(INPUT_TYPE_COLOR) 3843 case InputType::Color:3842 case WebKit::InputType::Color: 3844 3843 #endif 3845 3844 [_traits setKeyboardType:UIKeyboardTypeDefault]; 3846 3845 } 3847 3846 break; 3848 case InputMode::None:3847 case WebCore::InputMode::None: 3849 3848 break; 3850 case InputMode::Text:3849 case WebCore::InputMode::Text: 3851 3850 [_traits setKeyboardType:UIKeyboardTypeDefault]; 3852 3851 break; 3853 case InputMode::Telephone:3852 case WebCore::InputMode::Telephone: 3854 3853 [_traits setKeyboardType:UIKeyboardTypePhonePad]; 3855 3854 break; 3856 case InputMode::Url:3855 case WebCore::InputMode::Url: 3857 3856 [_traits setKeyboardType:UIKeyboardTypeURL]; 3858 3857 break; 3859 case InputMode::Email:3858 case WebCore::InputMode::Email: 3860 3859 [_traits setKeyboardType:UIKeyboardTypeEmailAddress]; 3861 3860 break; 3862 case InputMode::Numeric:3861 case WebCore::InputMode::Numeric: 3863 3862 [_traits setKeyboardType:UIKeyboardTypeNumbersAndPunctuation]; 3864 3863 break; 3865 case InputMode::Decimal:3864 case WebCore::InputMode::Decimal: 3866 3865 [_traits setKeyboardType:UIKeyboardTypeDecimalPad]; 3867 3866 break; 3868 case InputMode::Search:3867 case WebCore::InputMode::Search: 3869 3868 [_traits setKeyboardType:UIKeyboardTypeWebSearch]; 3870 3869 break; … … 3960 3959 - (void)handleKeyWebEvent:(::WebEvent *)theEvent 3961 3960 { 3962 _page->handleKeyboardEvent( NativeWebKeyboardEvent(theEvent));3961 _page->handleKeyboardEvent(WebKit::NativeWebKeyboardEvent(theEvent)); 3963 3962 } 3964 3963 … … 3966 3965 { 3967 3966 _keyWebEventHandler = makeBlockPtr(completionHandler); 3968 _page->handleKeyboardEvent( NativeWebKeyboardEvent(theEvent));3967 _page->handleKeyboardEvent(WebKit::NativeWebKeyboardEvent(theEvent)); 3969 3968 } 3970 3969 … … 4070 4069 return NO; 4071 4070 4072 if (_assistedNodeInformation.elementType == InputType::Select)4071 if (_assistedNodeInformation.elementType == WebKit::InputType::Select) 4073 4072 return NO; 4074 4073 … … 4076 4075 } 4077 4076 4078 - (CGFloat)keyboardScrollViewAnimator:(WKKeyboardScrollViewAnimator *)animator distanceForIncrement:( ScrollingIncrement)increment4077 - (CGFloat)keyboardScrollViewAnimator:(WKKeyboardScrollViewAnimator *)animator distanceForIncrement:(WebKit::ScrollingIncrement)increment 4079 4078 { 4080 4079 switch (increment) { 4081 case ScrollingIncrement::Document:4080 case WebKit::ScrollingIncrement::Document: 4082 4081 return [self convertRect:self.bounds toView:_webView].size.height; 4083 case ScrollingIncrement::Page:4082 case WebKit::ScrollingIncrement::Page: 4084 4083 return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pageStep(_page->unobscuredContentRect().height(), self.bounds.size.height)) toView:_webView].height; 4085 case ScrollingIncrement::Line:4084 case WebKit::ScrollingIncrement::Line: 4086 4085 return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pixelsPerLineStep()) toView:_webView].height; 4087 4086 } … … 4339 4338 } 4340 4339 4341 - (const AssistedNodeInformation&)assistedNodeInformation4340 - (const WebKit::AssistedNodeInformation&)assistedNodeInformation 4342 4341 { 4343 4342 return _assistedNodeInformation; 4344 4343 } 4345 4344 4346 - (Vector< OptionItem>&)assistedNodeSelectOptions4345 - (Vector<WebKit::OptionItem>&)assistedNodeSelectOptions 4347 4346 { 4348 4347 return _assistedNodeInformation.selectOptions; … … 4355 4354 } 4356 4355 4357 static bool isAssistableInputType( InputType type)4356 static bool isAssistableInputType(WebKit::InputType type) 4358 4357 { 4359 4358 switch (type) { 4360 case InputType::ContentEditable:4361 case InputType::Text:4362 case InputType::Password:4363 case InputType::TextArea:4364 case InputType::Search:4365 case InputType::Email:4366 case InputType::URL:4367 case InputType::Phone:4368 case InputType::Number:4369 case InputType::NumberPad:4370 case InputType::Date:4371 case InputType::DateTime:4372 case InputType::DateTimeLocal:4373 case InputType::Month:4374 case InputType::Week:4375 case InputType::Time:4376 case InputType::Select:4377 case InputType::Drawing:4359 case WebKit::InputType::ContentEditable: 4360 case WebKit::InputType::Text: 4361 case WebKit::InputType::Password: 4362 case WebKit::InputType::TextArea: 4363 case WebKit::InputType::Search: 4364 case WebKit::InputType::Email: 4365 case WebKit::InputType::URL: 4366 case WebKit::InputType::Phone: 4367 case WebKit::InputType::Number: 4368 case WebKit::InputType::NumberPad: 4369 case WebKit::InputType::Date: 4370 case WebKit::InputType::DateTime: 4371 case WebKit::InputType::DateTimeLocal: 4372 case WebKit::InputType::Month: 4373 case WebKit::InputType::Week: 4374 case WebKit::InputType::Time: 4375 case WebKit::InputType::Select: 4376 case WebKit::InputType::Drawing: 4378 4377 #if ENABLE(INPUT_TYPE_COLOR) 4379 case InputType::Color:4378 case WebKit::InputType::Color: 4380 4379 #endif 4381 4380 return true; 4382 4381 4383 case InputType::None:4382 case WebKit::InputType::None: 4384 4383 return false; 4385 4384 } … … 4389 4388 } 4390 4389 4391 - (void)_startAssistingNode:(const AssistedNodeInformation&)information userIsInteracting:(BOOL)userIsInteracting blurPreviousNode:(BOOL)blurPreviousNode changingActivityState:(BOOL)changingActivityState userObject:(NSObject <NSSecureCoding> *)userObject4390 - (void)_startAssistingNode:(const WebKit::AssistedNodeInformation&)information userIsInteracting:(BOOL)userIsInteracting blurPreviousNode:(BOOL)blurPreviousNode changingActivityState:(BOOL)changingActivityState userObject:(NSObject <NSSecureCoding> *)userObject 4392 4391 { 4393 4392 SetForScope<BOOL> isChangingFocusForScope { _isChangingFocus, hasAssistedNode(_assistedNodeInformation) }; … … 4411 4410 4412 4411 if (information.elementIsTransparent) 4413 [self _beginSuppressingSelectionAssistantForReason: FocusedElementIsTransparent];4412 [self _beginSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; 4414 4413 else 4415 [self _stopSuppressingSelectionAssistantForReason: FocusedElementIsTransparent];4414 [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; 4416 4415 4417 4416 switch (startInputSessionPolicy) { … … 4489 4488 4490 4489 switch (information.elementType) { 4491 case InputType::Select:4492 case InputType::DateTimeLocal:4493 case InputType::Time:4494 case InputType::Month:4495 case InputType::Date:4490 case WebKit::InputType::Select: 4491 case WebKit::InputType::DateTimeLocal: 4492 case WebKit::InputType::Time: 4493 case WebKit::InputType::Month: 4494 case WebKit::InputType::Date: 4496 4495 #if ENABLE(INPUT_TYPE_COLOR) 4497 case InputType::Color:4496 case WebKit::InputType::Color: 4498 4497 #endif 4499 4498 break; … … 4537 4536 BOOL editableChanged = [self setIsEditable:NO]; 4538 4537 4539 _assistedNodeInformation.elementType = InputType::None;4538 _assistedNodeInformation.elementType = WebKit::InputType::None; 4540 4539 _inputPeripheral = nil; 4541 4540 _focusRequiresStrongPasswordAssistance = NO; … … 4558 4557 [_webView didEndFormControlInteraction]; 4559 4558 4560 [self _stopSuppressingSelectionAssistantForReason: FocusedElementIsTransparent];4559 [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; 4561 4560 } 4562 4561 … … 4583 4582 auto identifierBeforeUpdate = _assistedNodeInformation.assistedNodeIdentifier; 4584 4583 _page->requestAssistedNodeInformation([callback = WTFMove(callback), identifierBeforeUpdate, weakSelf] (auto& info, auto error) { 4585 if (!weakSelf || error != CallbackBase::Error::None || info.assistedNodeIdentifier != identifierBeforeUpdate) {4584 if (!weakSelf || error != WebKit::CallbackBase::Error::None || info.assistedNodeIdentifier != identifierBeforeUpdate) { 4586 4585 // If the assisted node may have changed in the meantime, don't overwrite assisted node information. 4587 4586 callback(false); … … 4642 4641 4643 4642 switch (_assistedNodeInformation.elementType) { 4644 case InputType::Select:4643 case WebKit::InputType::Select: 4645 4644 _presentedFullScreenInputViewController = adoptNS([[WKSelectMenuListViewController alloc] initWithDelegate:self]); 4646 4645 break; 4647 case InputType::Time:4646 case WebKit::InputType::Time: 4648 4647 // Time inputs are special, in that the only UI affordances for dismissal are push buttons rather than status bar chevrons. 4649 4648 // As such, modal presentation and dismissal is preferred even if a navigation stack exists. … … 4651 4650 _presentedFullScreenInputViewController = adoptNS([[WKTimePickerViewController alloc] initWithDelegate:self]); 4652 4651 break; 4653 case InputType::Date:4652 case WebKit::InputType::Date: 4654 4653 _presentedFullScreenInputViewController = adoptNS([[WKDatePickerViewController alloc] initWithDelegate:self]); 4655 4654 break; 4656 case InputType::None:4655 case WebKit::InputType::None: 4657 4656 break; 4658 4657 default: … … 4773 4772 4774 4773 switch (_assistedNodeInformation.elementType) { 4775 case InputType::Select:4776 case InputType::Time:4777 case InputType::Date:4774 case WebKit::InputType::Select: 4775 case WebKit::InputType::Time: 4776 case WebKit::InputType::Date: 4778 4777 #if ENABLE(INPUT_TYPE_COLOR) 4779 case InputType::Color:4778 case WebKit::InputType::Color: 4780 4779 #endif 4781 4780 return nil; 4782 case InputType::Search:4781 case WebKit::InputType::Search: 4783 4782 return WebCore::formControlSearchButtonTitle(); 4784 4783 default: … … 4898 4897 - (void)selectWordForReplacement 4899 4898 { 4900 _page->extendSelection(W ordGranularity);4899 _page->extendSelection(WebCore::WordGranularity); 4901 4900 } 4902 4901 … … 4915 4914 if (hasAssistedNode(_assistedNodeInformation)) { 4916 4915 if (postLayoutData.elementIsTransparent) 4917 [self _beginSuppressingSelectionAssistantForReason: FocusedElementIsTransparent];4916 [self _beginSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; 4918 4917 else 4919 [self _stopSuppressingSelectionAssistantForReason: FocusedElementIsTransparent];4920 } 4921 4922 W KSelectionDrawingInfo selectionDrawingInfo(_page->editorState());4918 [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; 4919 } 4920 4921 WebKit::WKSelectionDrawingInfo selectionDrawingInfo(_page->editorState()); 4923 4922 if (force || selectionDrawingInfo != _lastSelectionDrawingInfo) { 4924 4923 LOG_WITH_STREAM(Selection, stream << "_updateChangedSelection " << selectionDrawingInfo); … … 4957 4956 } 4958 4957 4959 - (void)_beginSuppressingSelectionAssistantForReason:( SuppressSelectionAssistantReason)reason4958 - (void)_beginSuppressingSelectionAssistantForReason:(WebKit::SuppressSelectionAssistantReason)reason 4960 4959 { 4961 4960 bool wasSuppressingSelectionAssistant = !!_suppressSelectionAssistantReasons; … … 4966 4965 } 4967 4966 4968 - (void)_stopSuppressingSelectionAssistantForReason:( SuppressSelectionAssistantReason)reason4967 - (void)_stopSuppressingSelectionAssistantForReason:(WebKit::SuppressSelectionAssistantReason)reason 4969 4968 { 4970 4969 bool wasSuppressingSelectionAssistant = !!_suppressSelectionAssistantReasons; … … 5031 5030 } 5032 5031 5033 - (void)_showPlaybackTargetPicker:(BOOL)hasVideo fromRect:(const IntRect&)elementRect routeSharingPolicy:(WebCore::RouteSharingPolicy)routeSharingPolicy routingContextUID:(NSString *)routingContextUID5032 - (void)_showPlaybackTargetPicker:(BOOL)hasVideo fromRect:(const WebCore::IntRect&)elementRect routeSharingPolicy:(WebCore::RouteSharingPolicy)routeSharingPolicy routingContextUID:(NSString *)routingContextUID 5034 5033 { 5035 5034 #if ENABLE(AIRPLAY_PICKER) … … 5046 5045 } 5047 5046 5048 - (void)_showRunOpenPanel:(API::OpenPanelParameters*)parameters resultListener:(Web OpenPanelResultListenerProxy*)listener5047 - (void)_showRunOpenPanel:(API::OpenPanelParameters*)parameters resultListener:(WebKit::WebOpenPanelResultListenerProxy*)listener 5049 5048 { 5050 5049 ASSERT(!_fileUploadPanel); … … 5072 5071 } 5073 5072 5074 - (void)_showShareSheet:(const ShareDataWithParsedURL&)data completionHandler:(CompletionHandler<void(bool)>&&)completionHandler5073 - (void)_showShareSheet:(const WebCore::ShareDataWithParsedURL&)data completionHandler:(CompletionHandler<void(bool)>&&)completionHandler 5075 5074 { 5076 5075 #if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) … … 5151 5150 - (std::optional<WebKit::InteractionInformationAtPosition>)positionInformationForActionSheetAssistant:(WKActionSheetAssistant *)assistant 5152 5151 { 5153 InteractionInformationRequest request(_positionInformation.request.point);5152 WebKit::InteractionInformationRequest request(_positionInformation.request.point); 5154 5153 request.includeSnapshot = true; 5155 5154 request.includeLinkIndicator = assistant.needsLinkIndicator; … … 5163 5162 { 5164 5163 _hasValidPositionInformation = NO; 5165 InteractionInformationRequest request(_positionInformation.request.point);5164 WebKit::InteractionInformationRequest request(_positionInformation.request.point); 5166 5165 request.includeSnapshot = true; 5167 5166 request.includeLinkIndicator = assistant.needsLinkIndicator; … … 5325 5324 } 5326 5325 5327 - (void)_startDrag:(RetainPtr<CGImageRef>)image item:(const DragItem&)item5328 { 5329 ASSERT(item.sourceAction != DragSourceActionNone);5326 - (void)_startDrag:(RetainPtr<CGImageRef>)image item:(const WebCore::DragItem&)item 5327 { 5328 ASSERT(item.sourceAction != WebCore::DragSourceActionNone); 5330 5329 5331 5330 if (item.promisedAttachmentInfo) … … 5353 5352 5354 5353 RELEASE_LOG(DragAndDrop, "Drag session: %p adding %tu items", _dragDropInteractionState.dragSession(), dragItemsToAdd.count); 5355 _dragDropInteractionState.clearStagedDragSource(dragItemsToAdd.count ? DragDropInteractionState::DidBecomeActive::Yes :DragDropInteractionState::DidBecomeActive::No);5354 _dragDropInteractionState.clearStagedDragSource(dragItemsToAdd.count ? WebKit::DragDropInteractionState::DidBecomeActive::Yes : WebKit::DragDropInteractionState::DidBecomeActive::No); 5356 5355 5357 5356 completion(dragItemsToAdd); … … 5371 5370 5372 5371 if (!_dragDropInteractionState.dragSession().items.count) { 5373 auto positionForDragEnd = roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd());5372 auto positionForDragEnd = WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); 5374 5373 [self cleanUpDragSourceSessionState]; 5375 5374 if (started) { 5376 5375 // A client of the Objective C SPI or UIKit might have prevented the drag from beginning entirely in the UI process, in which case 5377 5376 // we need to balance the `dragstart` event with a `dragend`. 5378 _page->dragEnded(positionForDragEnd, positionForDragEnd, DragOperationNone);5377 _page->dragEnded(positionForDragEnd, positionForDragEnd, WebCore::DragOperationNone); 5379 5378 } 5380 5379 } … … 5394 5393 } 5395 5394 5396 static UIDropOperation dropOperationForWebCoreDragOperation( DragOperation operation)5397 { 5398 if (operation & DragOperationMove)5395 static UIDropOperation dropOperationForWebCoreDragOperation(WebCore::DragOperation operation) 5396 { 5397 if (operation & WebCore::DragOperationMove) 5399 5398 return UIDropOperationMove; 5400 5399 5401 if (operation & DragOperationCopy)5400 if (operation & WebCore::DragOperationCopy) 5402 5401 return UIDropOperationCopy; 5403 5402 … … 5405 5404 } 5406 5405 5407 - ( DragData)dragDataForDropSession:(id <UIDropSession>)session dragDestinationAction:(WKDragDestinationAction)dragDestinationAction5406 - (WebCore::DragData)dragDataForDropSession:(id <UIDropSession>)session dragDestinationAction:(WKDragDestinationAction)dragDestinationAction 5408 5407 { 5409 5408 CGPoint global; … … 5411 5410 [self computeClientAndGlobalPointsForDropSession:session outClientPoint:&client outGlobalPoint:&global]; 5412 5411 5413 DragOperation dragOperationMask = static_cast<DragOperation>(session.allowsMoveOperation ? DragOperationEvery : (DragOperationEvery & ~DragOperationMove));5414 return { session, roundedIntPoint(client), roundedIntPoint(global), dragOperationMask, DragApplicationNone, static_cast<DragDestinationAction>(dragDestinationAction) };5412 WebCore::DragOperation dragOperationMask = static_cast<WebCore::DragOperation>(session.allowsMoveOperation ? WebCore::DragOperationEvery : (WebCore::DragOperationEvery & ~WebCore::DragOperationMove)); 5413 return { session, WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), dragOperationMask, WebCore::DragApplicationNone, static_cast<WebCore::DragDestinationAction>(dragDestinationAction) }; 5415 5414 } 5416 5415 … … 5455 5454 } 5456 5455 5457 - (void)_didConcludeEditDataInteraction:(std::optional< TextIndicatorData>)data5456 - (void)_didConcludeEditDataInteraction:(std::optional<WebCore::TextIndicatorData>)data 5458 5457 { 5459 5458 if (!data) … … 5482 5481 [visibleContentViewSnapshot removeFromSuperview]; 5483 5482 [UIView animateWithDuration:0.25 animations:^() { 5484 [protectedSelf _stopSuppressingSelectionAssistantForReason: DropAnimationIsRunning];5483 [protectedSelf _stopSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; 5485 5484 [unselectedContentSnapshot setAlpha:0]; 5486 5485 } completion:^(BOOL completed) { … … 5499 5498 5500 5499 if (!_isAnimatingConcludeEditDrag) 5501 [self _stopSuppressingSelectionAssistantForReason: DropAnimationIsRunning];5500 [self _stopSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; 5502 5501 5503 5502 CGPoint global; … … 5505 5504 [self computeClientAndGlobalPointsForDropSession:dropSession outClientPoint:&client outGlobalPoint:&global]; 5506 5505 [self cleanUpDragSourceSessionState]; 5507 _page->dragEnded( roundedIntPoint(client),roundedIntPoint(global), _page->currentDragOperation());5506 _page->dragEnded(WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), _page->currentDragOperation()); 5508 5507 } 5509 5508 … … 5530 5529 } 5531 5530 5532 - (void)_prepareToDragPromisedAttachment:(const PromisedAttachmentInfo&)info5531 - (void)_prepareToDragPromisedAttachment:(const WebCore::PromisedAttachmentInfo&)info 5533 5532 { 5534 5533 auto session = retainPtr(_dragDropInteractionState.dragSession()); … … 5568 5567 } 5569 5568 5570 NSString *temporaryBlobDirectory = FileSystem::createTemporaryDirectory(@"blobs");5569 NSString *temporaryBlobDirectory = WebCore::FileSystem::createTemporaryDirectory(@"blobs"); 5571 5570 NSURL *destinationURL = [NSURL fileURLWithPath:[temporaryBlobDirectory stringByAppendingPathComponent:[NSUUID UUID].UUIDString] isDirectory:NO]; 5572 5571 … … 5624 5623 } 5625 5624 5626 - (NSArray<UIDragItem *> *)_itemsForBeginningOrAddingToSessionWithRegistrationList:(WebItemProviderRegistrationInfoList *)registrationList stagedDragSource:(const DragSourceState&)stagedDragSource5625 - (NSArray<UIDragItem *> *)_itemsForBeginningOrAddingToSessionWithRegistrationList:(WebItemProviderRegistrationInfoList *)registrationList stagedDragSource:(const WebKit::DragSourceState&)stagedDragSource 5627 5626 { 5628 5627 NSItemProvider *defaultItemProvider = registrationList.itemProvider; … … 5657 5656 - (NSDictionary *)_autofillContext 5658 5657 { 5659 BOOL provideStrongPasswordAssistance = _focusRequiresStrongPasswordAssistance && _assistedNodeInformation.elementType == InputType::Password;5658 BOOL provideStrongPasswordAssistance = _focusRequiresStrongPasswordAssistance && _assistedNodeInformation.elementType == WebKit::InputType::Password; 5660 5659 if (!hasAssistedNode(_assistedNodeInformation) || (!_assistedNodeInformation.acceptsAutofilledLoginCredentials && !provideStrongPasswordAssistance)) 5661 5660 return nil; … … 5702 5701 5703 5702 _dragDropInteractionState.dragSessionWillRequestAdditionalItem(completion); 5704 _page->requestAdditionalItemsForDragSession( roundedIntPoint(point),roundedIntPoint(point));5703 _page->requestAdditionalItemsForDragSession(WebCore::roundedIntPoint(point), WebCore::roundedIntPoint(point)); 5705 5704 } 5706 5705 … … 5721 5720 _dragDropInteractionState.prepareForDragSession(session, completion); 5722 5721 5723 auto dragOrigin = roundedIntPoint([session locationInView:self]);5724 _page->requestStartDataInteraction(dragOrigin, roundedIntPoint([self convertPoint:dragOrigin toView:self.window]));5722 auto dragOrigin = WebCore::roundedIntPoint([session locationInView:self]); 5723 _page->requestStartDataInteraction(dragOrigin, WebCore::roundedIntPoint([self convertPoint:dragOrigin toView:self.window])); 5725 5724 5726 5725 RELEASE_LOG(DragAndDrop, "Drag session requested: %p at origin: {%d, %d}", session, dragOrigin.x(), dragOrigin.y()); … … 5748 5747 5749 5748 RELEASE_LOG(DragAndDrop, "Drag session: %p starting with %tu items", session, [dragItems count]); 5750 _dragDropInteractionState.clearStagedDragSource([dragItems count] ? DragDropInteractionState::DidBecomeActive::Yes :DragDropInteractionState::DidBecomeActive::No);5749 _dragDropInteractionState.clearStagedDragSource([dragItems count] ? WebKit::DragDropInteractionState::DidBecomeActive::Yes : WebKit::DragDropInteractionState::DidBecomeActive::No); 5751 5750 5752 5751 return dragItems; … … 5766 5765 - (void)dragInteraction:(UIDragInteraction *)interaction willAnimateLiftWithAnimator:(id <UIDragAnimating>)animator session:(id <UIDragSession>)session 5767 5766 { 5768 if (!_shouldRestoreCalloutBarAfterDrop && _dragDropInteractionState.anyActiveDragSourceIs( DragSourceActionSelection)) {5767 if (!_shouldRestoreCalloutBarAfterDrop && _dragDropInteractionState.anyActiveDragSourceIs(WebCore::DragSourceActionSelection)) { 5769 5768 // FIXME: This SPI should be renamed in UIKit to reflect a more general purpose of hiding interaction assistant controls. 5770 5769 [_textSelectionAssistant willStartScrollingOverflow]; … … 5772 5771 } 5773 5772 5774 auto positionForDragEnd = roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd());5773 auto positionForDragEnd = WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); 5775 5774 RetainPtr<WKContentView> protectedSelf(self); 5776 5775 [animator addCompletion:[session, positionForDragEnd, protectedSelf, page = _page] (UIViewAnimatingPosition finalPosition) { … … 5782 5781 // The lift was canceled, so -dropInteraction:sessionDidEnd: will never be invoked. This is the last chance to clean up. 5783 5782 [protectedSelf cleanUpDragSourceSessionState]; 5784 page->dragEnded(positionForDragEnd, positionForDragEnd, DragOperationNone);5783 page->dragEnded(positionForDragEnd, positionForDragEnd, WebCore::DragOperationNone); 5785 5784 } 5786 5785 }]; … … 5813 5812 5814 5813 [self cleanUpDragSourceSessionState]; 5815 _page->dragEnded( roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()),roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), operation);5814 _page->dragEnded(WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), operation); 5816 5815 } 5817 5816 … … 5838 5837 page->dragCancelled(); 5839 5838 if (auto completion = protectedSelf->_dragDropInteractionState.takeDragCancelSetDownBlock()) { 5840 page->callAfterNextPresentationUpdate([completion] ( CallbackBase::Error) {5839 page->callAfterNextPresentationUpdate([completion] (WebKit::CallbackBase::Error) { 5841 5840 completion(); 5842 5841 }); … … 5949 5948 capturedDragData.setFileNames(filenames); 5950 5949 5951 SandboxExtension::Handle sandboxExtensionHandle;5952 SandboxExtension::HandleArray sandboxExtensionForUpload;5950 WebKit::SandboxExtension::Handle sandboxExtensionHandle; 5951 WebKit::SandboxExtension::HandleArray sandboxExtensionForUpload; 5953 5952 retainedSelf->_page->createSandboxExtensionsIfNeeded(filenames, sandboxExtensionHandle, sandboxExtensionForUpload); 5954 5953 retainedSelf->_page->performDragOperation(capturedDragData, "data interaction pasteboard", WTFMove(sandboxExtensionHandle), WTFMove(sandboxExtensionForUpload)); 5955 5954 5956 5955 retainedSelf->_visibleContentViewSnapshot = [retainedSelf snapshotViewAfterScreenUpdates:NO]; 5957 [retainedSelf _beginSuppressingSelectionAssistantForReason: DropAnimationIsRunning];5956 [retainedSelf _beginSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; 5958 5957 [UIView performWithoutAnimation:[retainedSelf] { 5959 5958 [retainedSelf->_visibleContentViewSnapshot setFrame:[retainedSelf bounds]]; … … 5995 5994 [self computeClientAndGlobalPointsForDropSession:session outClientPoint:&client outGlobalPoint:&global]; 5996 5995 [self cleanUpDragSourceSessionState]; 5997 _page->dragEnded( roundedIntPoint(client), roundedIntPoint(global),DragOperationNone);5996 _page->dragEnded(WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), WebCore::DragOperationNone); 5998 5997 } 5999 5998 … … 6060 6059 { 6061 6060 switch (_assistedNodeInformation.elementType) { 6062 case InputType::ContentEditable:6063 case InputType::Text:6064 case InputType::TextArea:6065 case InputType::Search:6066 case InputType::Email:6067 case InputType::URL:6061 case WebKit::InputType::ContentEditable: 6062 case WebKit::InputType::Text: 6063 case WebKit::InputType::TextArea: 6064 case WebKit::InputType::Search: 6065 case WebKit::InputType::Email: 6066 case WebKit::InputType::URL: 6068 6067 return YES; 6069 6068 default: … … 6103 6102 { 6104 6103 switch (_assistedNodeInformation.elementType) { 6105 case InputType::ContentEditable:6106 case InputType::Text:6107 case InputType::Password:6108 case InputType::TextArea:6109 case InputType::Search:6110 case InputType::Email:6111 case InputType::URL:6112 case InputType::Phone:6104 case WebKit::InputType::ContentEditable: 6105 case WebKit::InputType::Text: 6106 case WebKit::InputType::Password: 6107 case WebKit::InputType::TextArea: 6108 case WebKit::InputType::Search: 6109 case WebKit::InputType::Email: 6110 case WebKit::InputType::URL: 6111 case WebKit::InputType::Phone: 6113 6112 return YES; 6114 6113 default: … … 6122 6121 { 6123 6122 switch (_assistedNodeInformation.elementType) { 6124 case InputType::Phone:6123 case WebKit::InputType::Phone: 6125 6124 return WKNumberPadInputModeTelephone; 6126 case InputType::Number:6125 case WebKit::InputType::Number: 6127 6126 return WKNumberPadInputModeNumbersAndSymbols; 6128 case InputType::NumberPad:6127 case WebKit::InputType::NumberPad: 6129 6128 return WKNumberPadInputModeNumbersOnly; 6130 6129 default: … … 6136 6135 { 6137 6136 switch (_assistedNodeInformation.elementType) { 6138 case InputType::Password:6137 case WebKit::InputType::Password: 6139 6138 return UITextContentTypePassword; 6140 case InputType::URL:6139 case WebKit::InputType::URL: 6141 6140 return UITextContentTypeURL; 6142 case InputType::Email:6141 case WebKit::InputType::Email: 6143 6142 return UITextContentTypeEmailAddress; 6144 case InputType::Phone:6143 case WebKit::InputType::Phone: 6145 6144 return UITextContentTypeTelephoneNumber; 6146 6145 default: … … 6169 6168 - (BOOL)allowsDictationInputForListViewController:(PUICQuickboardViewController *)controller 6170 6169 { 6171 return _assistedNodeInformation.elementType != InputType::Password;6170 return _assistedNodeInformation.elementType != WebKit::InputType::Password; 6172 6171 } 6173 6172 … … 6231 6230 { 6232 6231 RetainPtr<WKContentView> protectedSelf = self; 6233 [self doAfterPositionInformationUpdate:[protectedSelf] ( InteractionInformationAtPosition) {6232 [self doAfterPositionInformationUpdate:[protectedSelf] (WebKit::InteractionInformationAtPosition) { 6234 6233 if (SEL action = [protectedSelf _actionForLongPress]) 6235 6234 [protectedSelf performSelector:action]; 6236 } forRequest: InteractionInformationRequest(roundedIntPoint(location))];6235 } forRequest:WebKit::InteractionInformationRequest(WebCore::roundedIntPoint(location))]; 6237 6236 } 6238 6237 … … 6328 6327 return NO; 6329 6328 6330 InteractionInformationRequest request(roundedIntPoint(position));6329 WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(position)); 6331 6330 request.includeSnapshot = true; 6332 6331 request.includeLinkIndicator = true; … … 6348 6347 return YES; 6349 6348 #if ENABLE(DATA_DETECTION) 6350 if ( DataDetection::canBePresentedByDataDetectors(linkURL))6349 if (WebCore::DataDetection::canBePresentedByDataDetectors(linkURL)) 6351 6350 return YES; 6352 6351 #endif … … 6619 6618 6620 6619 if (_positionInformation.linkIndicator.contentImage) { 6621 FloatPoint origin = _positionInformation.linkIndicator.textBoundingRectInRootViewCoordinates.location();6622 for ( FloatRect& rect : _positionInformation.linkIndicator.textRectsInBoundingRectCoordinates) {6620 WebCore::FloatPoint origin = _positionInformation.linkIndicator.textBoundingRectInRootViewCoordinates.location(); 6621 for (WebCore::FloatRect& rect : _positionInformation.linkIndicator.textRectsInBoundingRectCoordinates) { 6623 6622 CGRect cgRect = rect; 6624 6623 cgRect.origin.x += origin.x(); -
trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm
r239047 r239071 41 41 #import <wtf/RetainPtr.h> 42 42 43 using namespace WebCore;44 using namespace WebKit;45 46 43 static const NSTimeInterval showHideAnimationDuration = 0.1; 47 44 static const NSTimeInterval pipHideAnimationDuration = 0.2; … … 57 54 @end 58 55 59 class WKFullScreenViewControllerPlaybackSessionModelClient : PlaybackSessionModelClient {56 class WKFullScreenViewControllerPlaybackSessionModelClient : WebCore::PlaybackSessionModelClient { 60 57 public: 61 58 void setParent(WKFullScreenViewController *parent) { m_parent = parent; } … … 75 72 } 76 73 77 void setInterface( PlaybackSessionInterfaceAVKit* interface)74 void setInterface(WebCore::PlaybackSessionInterfaceAVKit* interface) 78 75 { 79 76 if (m_interface == interface) … … 89 86 private: 90 87 WKFullScreenViewController *m_parent { nullptr }; 91 RefPtr< PlaybackSessionInterfaceAVKit> m_interface;88 RefPtr<WebCore::PlaybackSessionInterfaceAVKit> m_interface; 92 89 }; 93 90 94 class WKFullScreenViewControllerVideoFullscreenModelClient : VideoFullscreenModelClient {91 class WKFullScreenViewControllerVideoFullscreenModelClient : WebCore::VideoFullscreenModelClient { 95 92 public: 96 93 void setParent(WKFullScreenViewController *parent) { m_parent = parent; } 97 94 98 void setInterface( VideoFullscreenInterfaceAVKit* interface)95 void setInterface(WebCore::VideoFullscreenInterfaceAVKit* interface) 99 96 { 100 97 if (m_interface == interface) … … 108 105 } 109 106 110 VideoFullscreenInterfaceAVKit* interface() const { return m_interface.get(); }107 WebCore::VideoFullscreenInterfaceAVKit* interface() const { return m_interface.get(); } 111 108 112 109 void willEnterPictureInPicture() final … … 127 124 private: 128 125 WKFullScreenViewController *m_parent { nullptr }; 129 RefPtr< VideoFullscreenInterfaceAVKit> m_interface;126 RefPtr<WebCore::VideoFullscreenInterfaceAVKit> m_interface; 130 127 }; 131 128 … … 153 150 @interface WKFullScreenViewController () <UIGestureRecognizerDelegate, UIToolbarDelegate> 154 151 @property (weak, nonatomic) WKWebView *_webView; // Cannot be retained, see <rdar://problem/14884666>. 155 @property (readonly, nonatomic) Web FullScreenManagerProxy* _manager;152 @property (readonly, nonatomic) WebKit::WebFullScreenManagerProxy* _manager; 156 153 @property (readonly, nonatomic) WebCore::FloatBoxExtent _effectiveFullscreenInsets; 157 154 @end … … 261 258 - (void)videoControlsManagerDidChange 262 259 { 263 Web PageProxy* page = [self._webView _page];260 WebKit::WebPageProxy* page = [self._webView _page]; 264 261 auto* videoFullscreenManager = page ? page->videoFullscreenManager() : nullptr; 265 262 auto* videoFullscreenInterface = videoFullscreenManager ? videoFullscreenManager->controlsManagerInterface() : nullptr; … … 269 266 _videoFullscreenClient.setInterface(videoFullscreenInterface); 270 267 271 PlaybackSessionModel* playbackSessionModel = playbackSessionInterface ? playbackSessionInterface->playbackSessionModel() : nullptr;268 WebCore::PlaybackSessionModel* playbackSessionModel = playbackSessionInterface ? playbackSessionInterface->playbackSessionModel() : nullptr; 272 269 self.playing = playbackSessionModel ? playbackSessionModel->isPlaying() : NO; 273 270 [_pipButton setHidden:!playbackSessionModel]; … … 482 479 483 480 @dynamic _manager; 484 - (Web FullScreenManagerProxy*)_manager481 - (WebKit::WebFullScreenManagerProxy*)_manager 485 482 { 486 483 if (auto* page = [self._webView _page]) … … 508 505 - (void)_togglePiPAction:(id)sender 509 506 { 510 Web PageProxy* page = [self._webView _page];507 WebKit::WebPageProxy* page = [self._webView _page]; 511 508 if (!page) 512 509 return; 513 510 514 PlaybackSessionManagerProxy* playbackSessionManager = page->playbackSessionManager();511 WebKit::PlaybackSessionManagerProxy* playbackSessionManager = page->playbackSessionManager(); 515 512 if (!playbackSessionManager) 516 513 return; … … 520 517 return; 521 518 522 PlaybackSessionModel* playbackSessionModel = playbackSessionInterface->playbackSessionModel();519 WebCore::PlaybackSessionModel* playbackSessionModel = playbackSessionInterface->playbackSessionModel(); 523 520 if (!playbackSessionModel) 524 521 return; -
trunk/Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm
r239047 r239071 54 54 #import <wtf/spi/cocoa/SecuritySPI.h> 55 55 56 using namespace WebKit;57 using namespace WebCore;58 56 59 57 #if !HAVE(URL_FORMATTING) … … 62 60 63 61 namespace WebKit { 62 using namespace WebKit; 63 using namespace WebCore; 64 64 65 65 static CGSize sizeExpandedToSize(CGSize initial, CGSize other) … … 213 213 _animatingView = _animatingIn ? toView : fromView; 214 214 215 CGRect boundsRect = largestRectWithAspectRatioInsideRect(FloatRect(inlineFrame).size().aspectRatio(), fullscreenFrame);215 CGRect boundsRect = WebCore::largestRectWithAspectRatioInsideRect(WebCore::FloatRect(inlineFrame).size().aspectRatio(), fullscreenFrame); 216 216 boundsRect.origin = CGPointZero; 217 217 … … 221 221 _finalMaskViewCenter = CGPointMake(CGRectGetMidX([_animatingView bounds]), CGRectGetMidY([_animatingView bounds])); 222 222 223 FloatRect scaleRect = smallestRectWithAspectRatioAroundRect(FloatRect(fullscreenFrame).size().aspectRatio(), inlineFrame);223 WebCore::FloatRect scaleRect = WebCore::smallestRectWithAspectRatioAroundRect(WebCore::FloatRect(fullscreenFrame).size().aspectRatio(), inlineFrame); 224 224 CGAffineTransform scaleTransform = CGAffineTransformMakeScale(scaleRect.width() / fullscreenFrame.size.width, scaleRect.height() / fullscreenFrame.size.height); 225 225 CGAffineTransform translateTransform = CGAffineTransformMakeTranslation(CGRectGetMidX(inlineFrame) - CGRectGetMidX(fullscreenFrame), CGRectGetMidY(inlineFrame) - CGRectGetMidY(fullscreenFrame)); … … 426 426 RetainPtr<WKFullScreenPlaceholderView> _webViewPlaceholder; 427 427 428 FullScreenState _fullScreenState;429 W KWebViewState _viewState;428 WebKit::FullScreenState _fullScreenState; 429 WebKit::WKWebViewState _viewState; 430 430 431 431 RetainPtr<UIWindow> _window; … … 475 475 - (BOOL)isFullScreen 476 476 { 477 return _fullScreenState == W aitingToEnterFullScreen478 || _fullScreenState == EnteringFullScreen479 || _fullScreenState == InFullScreen;477 return _fullScreenState == WebKit::WaitingToEnterFullScreen 478 || _fullScreenState == WebKit::EnteringFullScreen 479 || _fullScreenState == WebKit::InFullScreen; 480 480 } 481 481 … … 501 501 [self _invalidateEVOrganizationName]; 502 502 503 _fullScreenState = W aitingToEnterFullScreen;503 _fullScreenState = WebKit::WaitingToEnterFullScreen; 504 504 505 505 _window = adoptNS([[UIWindow alloc] init]); … … 564 564 565 565 [[_webViewPlaceholder layer] setContents:(id)[snapshotImage CGImage]]; 566 replaceViewWithView(webView.get(), _webViewPlaceholder.get());567 568 W KWebViewState().applyTo(webView.get());566 WebKit::replaceViewWithView(webView.get(), _webViewPlaceholder.get()); 567 568 WebKit::WKWebViewState().applyTo(webView.get()); 569 569 570 570 [webView setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; … … 578 578 manager->setAnimatingFullScreen(true); 579 579 580 ViewportArguments arguments {ViewportArguments::CSSDeviceAdaptation };580 WebCore::ViewportArguments arguments { WebCore::ViewportArguments::CSSDeviceAdaptation }; 581 581 arguments.zoom = 1; 582 582 arguments.minZoom = 1; … … 585 585 page->setOverrideViewportArguments(arguments); 586 586 587 _repaintCallback = VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) {587 _repaintCallback = WebKit::VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { 588 588 _repaintCallback = nullptr; 589 589 if (auto* manager = [protectedSelf _manager]) { … … 603 603 - (void)beganEnterFullScreenWithInitialFrame:(CGRect)initialFrame finalFrame:(CGRect)finalFrame 604 604 { 605 if (_fullScreenState != W aitingToEnterFullScreen)606 return; 607 _fullScreenState = EnteringFullScreen;605 if (_fullScreenState != WebKit::WaitingToEnterFullScreen) 606 return; 607 _fullScreenState = WebKit::EnteringFullScreen; 608 608 609 609 _initialFrame = initialFrame; 610 610 _finalFrame = finalFrame; 611 611 612 _initialFrame.size = sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1));613 _finalFrame.size = sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1));614 _initialFrame = safeInlineRect(_initialFrame, [_rootViewController view].frame.size);612 _initialFrame.size = WebKit::sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); 613 _finalFrame.size = WebKit::sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); 614 _initialFrame = WebKit::safeInlineRect(_initialFrame, [_rootViewController view].frame.size); 615 615 616 616 [CATransaction begin]; … … 628 628 629 629 [_rootViewController presentViewController:_fullscreenViewController.get() animated:YES completion:^{ 630 _fullScreenState = InFullScreen;630 _fullScreenState = WebKit::InFullScreen; 631 631 632 632 auto* page = [self._webView _page]; … … 660 660 if (!self.isFullScreen) 661 661 return; 662 _fullScreenState = W aitingToExitFullScreen;662 _fullScreenState = WebKit::WaitingToExitFullScreen; 663 663 664 664 if (auto* manager = self._manager) { … … 674 674 - (void)beganExitFullScreenWithInitialFrame:(CGRect)initialFrame finalFrame:(CGRect)finalFrame 675 675 { 676 if (_fullScreenState != W aitingToExitFullScreen)677 return; 678 _fullScreenState = ExitingFullScreen;676 if (_fullScreenState != WebKit::WaitingToExitFullScreen) 677 return; 678 _fullScreenState = WebKit::ExitingFullScreen; 679 679 680 680 _initialFrame = initialFrame; 681 681 _finalFrame = finalFrame; 682 682 683 _initialFrame.size = sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1));684 _finalFrame.size = sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1));685 _finalFrame = safeInlineRect(_finalFrame, [_rootViewController view].frame.size);683 _initialFrame.size = WebKit::sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); 684 _finalFrame.size = WebKit::sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); 685 _finalFrame = WebKit::safeInlineRect(_finalFrame, [_rootViewController view].frame.size); 686 686 687 687 if (auto* page = [self._webView _page]) … … 701 701 - (void)_completedExitFullScreen 702 702 { 703 if (_fullScreenState != ExitingFullScreen)704 return; 705 _fullScreenState = NotInFullScreen;703 if (_fullScreenState != WebKit::ExitingFullScreen) 704 return; 705 _fullScreenState = WebKit::NotInFullScreen; 706 706 707 707 [CATransaction begin]; … … 738 738 } 739 739 740 _repaintCallback = VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) {740 _repaintCallback = WebKit::VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { 741 741 _repaintCallback = nullptr; 742 742 _webViewPlaceholder.get().parent = nil; … … 764 764 - (void)webViewDidRemoveFromSuperviewWhileInFullscreen 765 765 { 766 if (_fullScreenState == InFullScreen && self._webView.window != _window.get())766 if (_fullScreenState == WebKit::InFullScreen && self._webView.window != _window.get()) 767 767 [self _exitFullscreenImmediately]; 768 768 } … … 856 856 manager->requestExitFullScreen(); 857 857 [self exitFullScreen]; 858 _fullScreenState = ExitingFullScreen;858 _fullScreenState = WebKit::ExitingFullScreen; 859 859 [self _completedExitFullScreen]; 860 860 RetainPtr<WKWebView> webView = self._webView; 861 861 _webViewPlaceholder.get().parent = nil; 862 replaceViewWithView(_webViewPlaceholder.get(), webView.get());862 WebKit::replaceViewWithView(_webViewPlaceholder.get(), webView.get()); 863 863 if (auto* page = [webView _page]) 864 864 page->setSuppressVisibilityUpdates(false); … … 962 962 } 963 963 964 - (Web FullScreenManagerProxy*)_manager964 - (WebKit::WebFullScreenManagerProxy*)_manager 965 965 { 966 966 if (auto* page = [self._webView _page]) … … 1050 1050 @end 1051 1051 1052 1052 1053 #endif // PLATFORM(IOS_FAMILY) && ENABLE(FULLSCREEN_API) -
trunk/Source/WebKit/UIProcess/mac/WebPageProxyMac.mm
r239047 r239071 68 68 #define MESSAGE_CHECK_URL(url) MESSAGE_CHECK_BASE(m_process->checkURLReceivedFromWebProcess(url), m_process->connection()) 69 69 70 using namespace WebCore;71 72 70 @interface NSApplication () 73 71 - (BOOL)isSpeaking; … … 108 106 109 107 namespace WebKit { 110 108 using namespace WebCore; 109 111 110 static inline bool expectsLegacyImplicitRubberBandControl() 112 111 { -
trunk/Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp
r239047 r239071 36 36 #include <wtf/MainThread.h> 37 37 38 namespace WebKit { 38 39 using namespace WebCore::DOMCacheEngine; 39 using namespace WebKit::CacheStorage; 40 41 namespace WebKit { 40 using namespace CacheStorage; 42 41 43 42 WebCacheStorageConnection::WebCacheStorageConnection(WebCacheStorageProvider& provider, PAL::SessionID sessionID) -
trunk/Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm
r239047 r239071 41 41 #import <wtf/text/TextStream.h> 42 42 43 using namespace WTF;44 using namespace WebCore;45 46 43 static MonotonicTime mediaTimeToCurrentTime(CFTimeInterval t) 47 44 { 48 return MonotonicTime::now() + Seconds(t - CACurrentMediaTime());45 return WTF::MonotonicTime::now() + Seconds(t - CACurrentMediaTime()); 49 46 } 50 47 … … 56 53 @implementation WKAnimationDelegate 57 54 58 - (instancetype)initWithLayerID:( GraphicsLayer::PlatformLayerID)layerID layerTreeHost:(WebKit::RemoteLayerTreeHost*)layerTreeHost55 - (instancetype)initWithLayerID:(WebCore::GraphicsLayer::PlatformLayerID)layerID layerTreeHost:(WebKit::RemoteLayerTreeHost*)layerTreeHost 59 56 { 60 57 if ((self = [super init])) { … … 99 96 100 97 namespace WebKit { 98 using namespace WebCore; 101 99 102 100 void PlatformCAAnimationRemote::KeyframeValue::encode(IPC::Encoder& encoder) const -
trunk/Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm
r239047 r239071 49 49 #import <wtf/ObjCRuntimeExtras.h> 50 50 51 using namespace WebCore;52 using namespace WebKit;53 51 54 52 @implementation WKAccessibilityWebPageObject … … 219 217 // Some plugins may be able to figure out the scroll position and inset on their own. 220 218 bool applyContentOffset = true; 221 if (auto pluginView = Web Page::pluginViewForFrame(m_page->mainFrame()))219 if (auto pluginView = WebKit::WebPage::pluginViewForFrame(m_page->mainFrame())) 222 220 applyContentOffset = !pluginView->plugin()->pluginHandlesContentOffsetForAccessibilityHitTest(); 223 221
Note: See TracChangeset
for help on using the changeset viewer.