26 #ifndef PageClientImpl_h 27 #define PageClientImpl_h 31 #include "CorrectionPanel.h" 34 #include <wtf/RetainPtr.h> 36 @class WKEditorUndoTargetObjC;
41 class AlternativeTextUIController;
48 class PageClientImpl
final :
public PageClient
49 #if ENABLE(FULLSCREEN_API) 50 ,
public WebFullScreenManagerProxyClient
54 PageClientImpl(
NSView *, WKWebView *);
55 virtual ~PageClientImpl();
58 void setImpl(WebViewImpl& impl) { m_impl = &impl; }
60 void viewWillMoveToAnotherWindow();
64 std::unique_ptr<DrawingAreaProxy> createDrawingAreaProxy()
override;
69 bool isViewWindowActive()
override;
70 bool isViewFocused()
override;
71 bool isViewVisible()
override;
72 bool isViewVisibleOrOccluded()
override;
73 bool isViewInWindow()
override;
74 bool isVisuallyIdle()
override;
76 ColorSpaceData colorSpace()
override;
77 void setAcceleratedCompositingRootLayer(
LayerOrView *)
override;
78 LayerOrView *acceleratedCompositingRootLayer()
const override;
80 void processDidExit()
override;
81 void pageClosed()
override;
82 void didRelaunchProcess()
override;
83 void preferencesDidChange()
override;
84 void toolTipChanged(
const String& oldToolTip,
const String& newToolTip)
override;
85 void didCommitLoadForMainFrame(
const String& mimeType,
bool useCustomContentProvider)
override;
86 void didFinishLoadingDataForCustomContentProvider(
const String& suggestedFilename,
const IPC::DataReference&)
override;
87 void handleDownloadRequest(DownloadProxy*)
override;
90 void setCursorHiddenUntilMouseMoves(
bool)
override;
93 void registerEditCommand(PassRefPtr<WebEditCommandProxy>, WebPageProxy::UndoOrRedo)
override;
94 void clearAllEditCommands()
override;
95 bool canUndoRedo(WebPageProxy::UndoOrRedo)
override;
96 void executeUndoRedo(WebPageProxy::UndoOrRedo)
override;
97 bool executeSavedCommandBySelector(
const String& selector)
override;
99 void setPromisedDataForImage(
const String& pasteboardName, PassRefPtr<WebCore::SharedBuffer> imageBuffer,
const String&
filename,
const String&
extension,
const String&
title,
100 const String&
url,
const String& visibleUrl, PassRefPtr<WebCore::SharedBuffer> archiveBuffer)
override;
101 #if ENABLE(ATTACHMENT_ELEMENT) 102 void setPromisedDataForAttachment(
const String& pasteboardName,
const String&
filename,
const String&
extension,
const String&
title,
const String&
url,
const String& visibleUrl)
override;
104 void updateSecureInputState()
override;
105 void resetSecureInputState()
override;
106 void notifyInputContextAboutDiscardedComposition()
override;
107 void selectionDidChange()
override;
123 void doneWithKeyEvent(
const NativeWebKeyboardEvent&,
bool wasEventHandled)
override;
125 RefPtr<WebPopupMenuProxy> createPopupMenuProxy(WebPageProxy&)
override;
126 #if ENABLE(CONTEXT_MENUS) 127 std::unique_ptr<WebContextMenuProxy> createContextMenuProxy(WebPageProxy&,
const ContextMenuContextData&,
const UserData&)
override;
130 #if ENABLE(INPUT_TYPE_COLOR) 138 void setTextIndicatorAnimationProgress(
float)
override;
140 void enterAcceleratedCompositingMode(
const LayerTreeContext&)
override;
141 void exitAcceleratedCompositingMode()
override;
142 void updateAcceleratedCompositingMode(
const LayerTreeContext&)
override;
144 PassRefPtr<ViewSnapshot> takeViewSnapshot()
override;
145 void wheelEventWasNotHandledByWebCore(
const NativeWebWheelEvent&)
override;
146 #if ENABLE(MAC_GESTURE_EVENTS) 147 void gestureEventWasNotHandledByWebCore(
const NativeWebGestureEvent&)
override;
152 void pluginFocusOrWindowFocusChanged(
uint64_t pluginComplexTextInputIdentifier,
bool pluginHasFocusAndWindowHasFocus)
override;
155 void makeFirstResponder()
override;
158 void dismissContentRelativeChildWindows(
bool withAnimation =
true)
override;
160 void showCorrectionPanel(
WebCore::AlternativeTextType,
const WebCore::FloatRect& boundingBoxOfReplacedString,
const String& replacedString,
const String& replacementString,
const Vector<String>& alternativeReplacementStrings)
override;
167 void intrinsicContentSizeDidChange(
const WebCore::IntSize& intrinsicContentSize)
override;
169 #if USE(DICTATION_ALTERNATIVES) 170 uint64_t addDictationAlternatives(
const RetainPtr<NSTextAlternatives>&)
override;
171 void removeDictationAlternatives(
uint64_t dictationContext)
override;
173 Vector<String> dictationAlternatives(
uint64_t dictationContext)
override;
175 void setEditableElementIsFocused(
bool)
override;
177 #if USE(INSERTION_UNDO_GROUPING) 178 void registerInsertionUndoGrouping()
override;
182 #if ENABLE(FULLSCREEN_API) 183 WebFullScreenManagerProxyClient& fullScreenManagerProxyClient()
override;
186 #if ENABLE(FULLSCREEN_API) 188 void closeFullScreenManager()
override;
189 bool isFullScreen()
override;
190 void enterFullScreen()
override;
191 void exitFullScreen()
override;
196 void navigationGestureDidBegin()
override;
197 void navigationGestureWillEnd(
bool willNavigate, WebBackForwardListItem&)
override;
198 void navigationGestureDidEnd(
bool willNavigate, WebBackForwardListItem&)
override;
199 void navigationGestureDidEnd()
override;
200 void willRecordNavigationSnapshot(WebBackForwardListItem&)
override;
201 void didRemoveNavigationGestureSnapshot()
override;
203 NSView *activeView()
const;
206 void didFirstVisuallyNonEmptyLayoutForMainFrame()
override;
207 void didFinishLoadForMainFrame()
override;
208 void didFailLoadForMainFrame()
override;
210 void removeNavigationGestureSnapshot()
override;
211 void handleControlledElementIDResponse(
const String&)
override;
212 void handleActiveNowPlayingSessionInfoResponse(
bool hasActiveSession,
const String&
title,
double duration,
double elapsedTime)
override;
214 void didPerformImmediateActionHitTest(
const WebHitTestResultData&,
bool contentPreventsDefault,
API::Object*)
override;
215 void* immediateActionAnimationControllerForHitTestResult(RefPtr<API::HitTestResult>,
uint64_t, RefPtr<API::Object>)
override;
217 void didHandleAcceptedCandidate()
override;
219 void videoControlsManagerDidChange()
override;
223 void didChangeBackgroundColor()
override;
225 void startWindowDrag()
override;
226 NSWindow *platformWindow()
override;
231 NSView *inspectorAttachmentView()
override;
236 WKWebView *m_webView;
237 WebViewImpl* m_impl {
nullptr };
238 #if USE(AUTOCORRECTION_PANEL) 239 CorrectionPanel m_correctionPanel;
241 #if USE(DICTATION_ALTERNATIVES) 242 std::unique_ptr<WebCore::AlternativeTextUIController> m_alternativeTextUIController;
245 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 246 WebCore::WebMediaSessionManager& mediaSessionManager()
override;
249 void refView()
override;
250 void derefView()
override;
252 void didRestoreScrollPosition()
override;
253 bool windowIsFrontWindowUnderMouse(
const NativeWebMouseEvent&)
override;
258 #endif // PLATFORM(MAC) 260 #endif // PageClientImpl_h Definition: MemoryMeasure.h:29
unsigned long long uint64_t
Definition: ptypes.h:120
OBJC_CLASS NSView
Definition: TextIndicatorWindow.h:34
Definition: IntPoint.h:67
LayerHostingMode
Definition: LayerTreeContext.h:38
OBJC_CLASS NSWindow
Definition: WebCoreSystemInterface.h:113
OBJC_CLASS _WKRemoteObjectRegistry
Definition: RemoteObjectRegistry.h:31
EGLOutputLayerEXT layer
Definition: eglext.h:695
Definition: FloatPoint.h:63
Definition: FloatRect.h:59
DragSourceAction
Definition: DragActions.h:42
USVString filename
Definition: ErrorEvent.idl:46
Definition: ViewportArguments.h:44
ScrollbarStyle
Definition: ScrollTypes.h:159
UserInterfaceLayoutDirection
Definition: UserInterfaceLayoutDirection.h:31
PluginComplexTextInputState
Definition: PluginComplexTextInputState.h:31
AutocorrectionResponse
Definition: AlternativeTextClient.h:53
JNIEnv jlong jstring jint duration
Definition: peerconnection_jni.cc:2704
TextIndicatorWindowDismissalAnimation
Definition: TextIndicatorWindow.h:47
TextIndicatorWindowLifetime
Definition: TextIndicatorWindow.h:39
Definition: ApplePayLineItem.idl:30
Definition: APIObject.h:49
struct CGRect CGRect
Definition: WebCoreSystemInterface.h:36
ReasonForDismissingAlternativeText
Definition: AlternativeTextClient.h:40
Definition: DataReference.h:37
OBJC_CLASS NSMenu
Definition: WebCoreSystemInterface.h:104
url
Definition: setup.py:223
Definition: ValidationBubble.h:58
CALayer LayerOrView
Definition: LayerRepresentation.h:40
AlternativeTextType
Definition: AlternativeTextClient.h:46
SameDocumentNavigationType
Definition: SameDocumentNavigationType.h:31
OBJC_CLASS CALayer
Definition: WebCoreSystemInterface.h:90
double elapsedTime
Definition: AnimationEvent.idl:38
const char * extension
Definition: MIMETypeRegistry.cpp:58
GLuint GLsizei const GLchar * message
Definition: gl2ext.h:137
This file is generated by create-http-header-name-table, do not edit.
Definition: CharsetData.cpp:6