1/*
2 * Copyright (C) 2010-2018 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
17 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
20 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include "config.h"
26
27#include "WebPageProxy.h"
28
29#include "ArgumentCoders.h"
30#if PLATFORM(MAC)
31#include "AttributedString.h"
32#endif
33#include "CallbackID.h"
34#if ENABLE(CONTEXT_MENUS)
35#include "ContextMenuContextData.h"
36#endif
37#if ENABLE(DATA_DETECTION)
38#include "DataDetectionResult.h"
39#endif
40#include "DataReference.h"
41#include "Decoder.h"
42#include "DownloadID.h"
43#include "EditingRange.h"
44#include "EditorState.h"
45#if PLATFORM(IOS_FAMILY)
46#include "FocusedElementInformation.h"
47#endif
48#include "FormDataReference.h"
49#include "FrameInfoData.h"
50#include "HandleMessage.h"
51#if PLATFORM(IOS_FAMILY)
52#include "InteractionInformationAtPosition.h"
53#endif
54#if HAVE(VISIBILITY_PROPAGATION_VIEW)
55#include "LayerHostingContext.h"
56#endif
57#include "NavigationActionData.h"
58#if ENABLE(PDFKIT_PLUGIN)
59#include "PDFContextMenu.h"
60#endif
61#include "PlatformPopupMenuData.h"
62#if USE(QUICK_LOOK)
63#include "QuickLookDocumentData.h"
64#endif
65#include "SandboxExtension.h"
66#include "SessionState.h"
67#include "ShareableBitmap.h"
68#include "SharedBufferDataReference.h"
69#if PLATFORM(IOS_FAMILY) || PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
70#include "SharedMemory.h"
71#endif
72#if PLATFORM(COCOA)
73#include "TouchBarMenuData.h"
74#endif
75#if PLATFORM(COCOA)
76#include "TouchBarMenuItemData.h"
77#endif
78#include "URLSchemeTaskParameters.h"
79#include "UndoOrRedo.h"
80#include "UserData.h"
81#if PLATFORM(IOS_FAMILY)
82#include "WebAutocorrectionContext.h"
83#endif
84#include "WebCoreArgumentCoders.h"
85#include "WebHitTestResultData.h"
86#include "WebNavigationDataStore.h"
87#include "WebPageCreationParameters.h"
88#include "WebPageProxyMessages.h"
89#include "WebPopupItem.h"
90#if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
91#include "WebSelectionData.h"
92#endif
93#if ENABLE(SPEECH_SYNTHESIS)
94#include "WebSpeechSynthesisVoice.h"
95#endif
96#include "WebsitePoliciesData.h"
97#include <JavaScriptCore/InspectorTarget.h>
98#if PLATFORM(IOS_FAMILY)
99#include <WebCore/ActivityState.h>
100#endif
101#if ENABLE(APPLICATION_MANIFEST)
102#include <WebCore/ApplicationManifest.h>
103#endif
104#if PLATFORM(IOS_FAMILY)
105#include <WebCore/AudioSession.h>
106#endif
107#include <WebCore/AutoplayEvent.h>
108#include <WebCore/BackForwardItemIdentifier.h>
109#include <WebCore/CertificateInfo.h>
110#include <WebCore/Color.h>
111#if ENABLE(CONTENT_FILTERING)
112#include <WebCore/ContentFilterUnblockHandler.h>
113#endif
114#include <WebCore/ContentRuleListResults.h>
115#if !PLATFORM(IOS_FAMILY)
116#include <WebCore/Cursor.h>
117#endif
118#include <WebCore/DOMPasteAccess.h>
119#if ENABLE(DATALIST_ELEMENT)
120#include <WebCore/DataListSuggestionInformation.h>
121#endif
122#if ENABLE(DEVICE_ORIENTATION)
123#include <WebCore/DeviceOrientationOrMotionPermissionState.h>
124#endif
125#include <WebCore/DiagnosticLoggingClient.h>
126#if PLATFORM(COCOA)
127#include <WebCore/DictionaryPopupInfo.h>
128#endif
129#if ENABLE(DRAG_SUPPORT)
130#include <WebCore/DragActions.h>
131#endif
132#if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
133#include <WebCore/DragItem.h>
134#endif
135#include <WebCore/FileChooser.h>
136#if PLATFORM(IOS_FAMILY)
137#include <WebCore/FloatPoint.h>
138#endif
139#if PLATFORM(IOS_FAMILY)
140#include <WebCore/FloatQuad.h>
141#endif
142#include <WebCore/FloatRect.h>
143#include <WebCore/FontAttributes.h>
144#include <WebCore/FrameLoaderTypes.h>
145#include <WebCore/GlobalWindowIdentifier.h>
146#if PLATFORM(IOS_FAMILY)
147#include <WebCore/InputMode.h>
148#endif
149#if PLATFORM(IOS_FAMILY)
150#include <WebCore/InspectorOverlay.h>
151#endif
152#include <WebCore/IntPoint.h>
153#include <WebCore/IntRect.h>
154#include <WebCore/IntSize.h>
155#include <WebCore/JSDOMExceptionHandling.h>
156#include <WebCore/LayoutMilestone.h>
157#include <WebCore/LinkIcon.h>
158#if ENABLE(MEDIA_SESSION)
159#include <WebCore/MediaSessionMetadata.h>
160#endif
161#if ENABLE(MEDIA_STREAM)
162#include <WebCore/MediaStreamRequest.h>
163#endif
164#include <WebCore/NotificationDirection.h>
165#include <WebCore/PageIdentifier.h>
166#include <WebCore/RectEdges.h>
167#include <WebCore/ResourceError.h>
168#include <WebCore/ResourceRequest.h>
169#include <WebCore/ResourceResponse.h>
170#include <WebCore/SearchPopupMenu.h>
171#include <WebCore/SecurityOriginData.h>
172#if ENABLE(ATTACHMENT_ELEMENT)
173#include <WebCore/SerializedAttachmentData.h>
174#endif
175#include <WebCore/ShareData.h>
176#include <WebCore/TextCheckerClient.h>
177#include <WebCore/TextChecking.h>
178#include <WebCore/TextIndicator.h>
179#include <WebCore/ViewportArguments.h>
180#include <WebCore/WindowFeatures.h>
181#include <utility>
182#if PLATFORM(COCOA)
183#include <wtf/MachSendRight.h>
184#endif
185#include <wtf/MonotonicTime.h>
186#include <wtf/OptionSet.h>
187#include <wtf/Optional.h>
188#include <wtf/Vector.h>
189#include <wtf/text/WTFString.h>
190
191namespace Messages {
192
193namespace WebPageProxy {
194
195void CreateNewPage::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Optional<WebCore::PageIdentifier>& newPageID, const Optional<WebKit::WebPageCreationParameters>& newPageParameters)
196{
197 *encoder << newPageID;
198 *encoder << newPageParameters;
199 connection.sendSyncReply(WTFMove(encoder));
200}
201
202void RunJavaScriptAlert::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
203{
204 connection.sendSyncReply(WTFMove(encoder));
205}
206
207void RunJavaScriptConfirm::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool result)
208{
209 *encoder << result;
210 connection.sendSyncReply(WTFMove(encoder));
211}
212
213void RunJavaScriptPrompt::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const String& result)
214{
215 *encoder << result;
216 connection.sendSyncReply(WTFMove(encoder));
217}
218
219#if ENABLE(WEBGL)
220
221void WebGLPolicyForURL::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint32_t loadPolicy)
222{
223 *encoder << loadPolicy;
224 connection.sendSyncReply(WTFMove(encoder));
225}
226
227#endif
228
229#if ENABLE(WEBGL)
230
231void ResolveWebGLPolicyForURL::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint32_t loadPolicy)
232{
233 *encoder << loadPolicy;
234 connection.sendSyncReply(WTFMove(encoder));
235}
236
237#endif
238
239void GetToolbarsAreVisible::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool toolbarsAreVisible)
240{
241 *encoder << toolbarsAreVisible;
242 connection.sendSyncReply(WTFMove(encoder));
243}
244
245void GetMenuBarIsVisible::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool menuBarIsVisible)
246{
247 *encoder << menuBarIsVisible;
248 connection.sendSyncReply(WTFMove(encoder));
249}
250
251void GetStatusBarIsVisible::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool statusBarIsVisible)
252{
253 *encoder << statusBarIsVisible;
254 connection.sendSyncReply(WTFMove(encoder));
255}
256
257void GetWindowFrame::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::FloatRect& windowFrame)
258{
259 *encoder << windowFrame;
260 connection.sendSyncReply(WTFMove(encoder));
261}
262
263void ScreenToRootView::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::IntPoint& windowPoint)
264{
265 *encoder << windowPoint;
266 connection.sendSyncReply(WTFMove(encoder));
267}
268
269void RootViewToScreen::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::IntRect& screenFrame)
270{
271 *encoder << screenFrame;
272 connection.sendSyncReply(WTFMove(encoder));
273}
274
275void AccessibilityScreenToRootView::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::IntPoint& windowPoint)
276{
277 *encoder << windowPoint;
278 connection.sendSyncReply(WTFMove(encoder));
279}
280
281void RootViewToAccessibilityScreen::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::IntRect& screenFrame)
282{
283 *encoder << screenFrame;
284 connection.sendSyncReply(WTFMove(encoder));
285}
286
287void RunBeforeUnloadConfirmPanel::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool shouldClose)
288{
289 *encoder << shouldClose;
290 connection.sendSyncReply(WTFMove(encoder));
291}
292
293void PrintFrame::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
294{
295 connection.sendSyncReply(WTFMove(encoder));
296}
297
298void DecidePolicyForNavigationActionSync::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::PolicyCheckIdentifier& policyCheckIdentifier, WebCore::PolicyAction policyAction, uint64_t newNavigationID, const WebKit::DownloadID& downloadID, const Optional<WebKit::WebsitePoliciesData>& websitePolicies)
299{
300 *encoder << policyCheckIdentifier;
301 *encoder << policyAction;
302 *encoder << newNavigationID;
303 *encoder << downloadID;
304 *encoder << websitePolicies;
305 connection.sendSyncReply(WTFMove(encoder));
306}
307
308void HasInsecureContent::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, WebCore::HasInsecureContent hasInsecureContent)
309{
310 *encoder << hasInsecureContent;
311 connection.sendSyncReply(WTFMove(encoder));
312}
313
314#if PLATFORM(IOS_FAMILY)
315
316void InterpretKeyEvent::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool handled)
317{
318 *encoder << handled;
319 connection.sendSyncReply(WTFMove(encoder));
320}
321
322#endif
323
324void BackForwardGoToItem::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::SandboxExtension::Handle& sandboxExtensionHandle)
325{
326 *encoder << sandboxExtensionHandle;
327 connection.sendSyncReply(WTFMove(encoder));
328}
329
330void BackForwardItemAtIndex::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Optional<WebCore::BackForwardItemIdentifier>& itemID)
331{
332 *encoder << itemID;
333 connection.sendSyncReply(WTFMove(encoder));
334}
335
336void BackForwardBackListCount::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint32_t count)
337{
338 *encoder << count;
339 connection.sendSyncReply(WTFMove(encoder));
340}
341
342void BackForwardForwardListCount::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint32_t count)
343{
344 *encoder << count;
345 connection.sendSyncReply(WTFMove(encoder));
346}
347
348void CanUndoRedo::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool result)
349{
350 *encoder << result;
351 connection.sendSyncReply(WTFMove(encoder));
352}
353
354void ExecuteUndoRedo::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
355{
356 connection.sendSyncReply(WTFMove(encoder));
357}
358
359void RequestDOMPasteAccess::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, WebCore::DOMPasteAccessResponse response)
360{
361 *encoder << response;
362 connection.sendSyncReply(WTFMove(encoder));
363}
364
365void ExceededDatabaseQuota::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint64_t newQuota)
366{
367 *encoder << newQuota;
368 connection.sendSyncReply(WTFMove(encoder));
369}
370
371void ReachedApplicationCacheOriginQuota::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint64_t newQuota)
372{
373 *encoder << newQuota;
374 connection.sendSyncReply(WTFMove(encoder));
375}
376
377#if USE(UNIFIED_TEXT_CHECKING)
378
379void CheckTextOfParagraph::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebCore::TextCheckingResult>& results)
380{
381 *encoder << results;
382 connection.sendSyncReply(WTFMove(encoder));
383}
384
385#endif
386
387void CheckSpellingOfString::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, int32_t misspellingLocation, int32_t misspellingLength)
388{
389 *encoder << misspellingLocation;
390 *encoder << misspellingLength;
391 connection.sendSyncReply(WTFMove(encoder));
392}
393
394void CheckGrammarOfString::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebCore::GrammarDetail>& results, int32_t badGrammarLocation, int32_t badGrammarLength)
395{
396 *encoder << results;
397 *encoder << badGrammarLocation;
398 *encoder << badGrammarLength;
399 connection.sendSyncReply(WTFMove(encoder));
400}
401
402void SpellingUIIsShowing::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool isShowing)
403{
404 *encoder << isShowing;
405 connection.sendSyncReply(WTFMove(encoder));
406}
407
408void GetGuessesForWord::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<String>& guesses)
409{
410 *encoder << guesses;
411 connection.sendSyncReply(WTFMove(encoder));
412}
413
414#if PLATFORM(COCOA)
415
416void ExecuteSavedCommandBySelector::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool handled)
417{
418 *encoder << handled;
419 connection.sendSyncReply(WTFMove(encoder));
420}
421
422#endif
423
424#if PLATFORM(COCOA)
425
426void GetIsSpeaking::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool isSpeaking)
427{
428 *encoder << isSpeaking;
429 connection.sendSyncReply(WTFMove(encoder));
430}
431
432#endif
433
434#if USE(APPKIT)
435
436void SubstitutionsPanelIsShowing::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool isShowing)
437{
438 *encoder << isShowing;
439 connection.sendSyncReply(WTFMove(encoder));
440}
441
442#endif
443
444#if PLATFORM(MAC)
445
446void DismissCorrectionPanelSoon::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const String& result)
447{
448 *encoder << result;
449 connection.sendSyncReply(WTFMove(encoder));
450}
451
452#endif
453
454#if USE(DICTATION_ALTERNATIVES)
455
456void DictationAlternatives::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<String>& alternatives)
457{
458 *encoder << alternatives;
459 connection.sendSyncReply(WTFMove(encoder));
460}
461
462#endif
463
464#if PLATFORM(X11)
465
466void CreatePluginContainer::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint64_t windowID)
467{
468 *encoder << windowID;
469 connection.sendSyncReply(WTFMove(encoder));
470}
471
472#endif
473
474void LoadRecentSearches::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebCore::RecentSearch>& result)
475{
476 *encoder << result;
477 connection.sendSyncReply(WTFMove(encoder));
478}
479
480#if ENABLE(PDFKIT_PLUGIN)
481
482void ShowPDFContextMenu::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Optional<int32_t>& selectedItem)
483{
484 *encoder << selectedItem;
485 connection.sendSyncReply(WTFMove(encoder));
486}
487
488#endif
489
490#if ENABLE(NETSCAPE_PLUGIN_API)
491
492void FindPlugin::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint64_t pluginProcessToken, const String& newMIMEType, uint32_t pluginLoadPolicy, const String& unavailabilityDescription, bool isUnsupported)
493{
494 *encoder << pluginProcessToken;
495 *encoder << newMIMEType;
496 *encoder << pluginLoadPolicy;
497 *encoder << unavailabilityDescription;
498 *encoder << isUnsupported;
499 connection.sendSyncReply(WTFMove(encoder));
500}
501
502#endif
503
504#if ENABLE(WEB_CRYPTO)
505
506void WrapCryptoKey::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool succeeded, const Vector<uint8_t>& wrappedKey)
507{
508 *encoder << succeeded;
509 *encoder << wrappedKey;
510 connection.sendSyncReply(WTFMove(encoder));
511}
512
513#endif
514
515#if ENABLE(WEB_CRYPTO)
516
517void UnwrapCryptoKey::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool succeeded, const Vector<uint8_t>& key)
518{
519 *encoder << succeeded;
520 *encoder << key;
521 connection.sendSyncReply(WTFMove(encoder));
522}
523
524#endif
525
526void HandleSynchronousMessage::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::UserData& returnData)
527{
528 *encoder << returnData;
529 connection.sendSyncReply(WTFMove(encoder));
530}
531
532void LoadSynchronousURLSchemeTask::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::ResourceResponse& response, const WebCore::ResourceError& error, const IPC::DataReference& data)
533{
534 *encoder << response;
535 *encoder << error;
536 *encoder << data;
537 connection.sendSyncReply(WTFMove(encoder));
538}
539
540#if ENABLE(DEVICE_ORIENTATION)
541
542void ShouldAllowDeviceOrientationAndMotionAccess::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState&&)>&& completionHandler)
543{
544 Optional<WebCore::DeviceOrientationOrMotionPermissionState> permissionState;
545 decoder >> permissionState;
546 if (!permissionState) {
547 ASSERT_NOT_REACHED();
548 cancelReply(WTFMove(completionHandler));
549 return;
550 }
551 completionHandler(WTFMove(*permissionState));
552}
553
554void ShouldAllowDeviceOrientationAndMotionAccess::cancelReply(CompletionHandler<void(WebCore::DeviceOrientationOrMotionPermissionState&&)>&& completionHandler)
555{
556 completionHandler(IPC::AsyncReplyError<WebCore::DeviceOrientationOrMotionPermissionState>::create());
557}
558
559void ShouldAllowDeviceOrientationAndMotionAccess::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, WebCore::DeviceOrientationOrMotionPermissionState permissionState)
560{
561 *encoder << permissionState;
562 connection.sendSyncReply(WTFMove(encoder));
563}
564
565#endif
566
567#if ENABLE(ATTACHMENT_ELEMENT)
568
569void SerializedAttachmentDataForIdentifiers::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebCore::SerializedAttachmentData>& seralizedData)
570{
571 *encoder << seralizedData;
572 connection.sendSyncReply(WTFMove(encoder));
573}
574
575#endif
576
577void SignedPublicKeyAndChallengeString::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const String& result)
578{
579 *encoder << result;
580 connection.sendSyncReply(WTFMove(encoder));
581}
582
583#if ENABLE(SPEECH_SYNTHESIS)
584
585void SpeechSynthesisVoiceList::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebKit::WebSpeechSynthesisVoice>& voiceList)
586{
587 *encoder << voiceList;
588 connection.sendSyncReply(WTFMove(encoder));
589}
590
591#endif
592
593#if ENABLE(SPEECH_SYNTHESIS)
594
595void SpeechSynthesisSpeak::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler)
596{
597 completionHandler();
598}
599
600void SpeechSynthesisSpeak::cancelReply(CompletionHandler<void()>&& completionHandler)
601{
602 completionHandler();
603}
604
605void SpeechSynthesisSpeak::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
606{
607 connection.sendSyncReply(WTFMove(encoder));
608}
609
610#endif
611
612#if ENABLE(SPEECH_SYNTHESIS)
613
614void SpeechSynthesisPause::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler)
615{
616 completionHandler();
617}
618
619void SpeechSynthesisPause::cancelReply(CompletionHandler<void()>&& completionHandler)
620{
621 completionHandler();
622}
623
624void SpeechSynthesisPause::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
625{
626 connection.sendSyncReply(WTFMove(encoder));
627}
628
629#endif
630
631#if ENABLE(SPEECH_SYNTHESIS)
632
633void SpeechSynthesisResume::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler)
634{
635 completionHandler();
636}
637
638void SpeechSynthesisResume::cancelReply(CompletionHandler<void()>&& completionHandler)
639{
640 completionHandler();
641}
642
643void SpeechSynthesisResume::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
644{
645 connection.sendSyncReply(WTFMove(encoder));
646}
647
648#endif
649
650#if PLATFORM(GTK)
651
652void ShowEmojiPicker::callReply(IPC::Decoder& decoder, CompletionHandler<void(String&&)>&& completionHandler)
653{
654 Optional<String> result;
655 decoder >> result;
656 if (!result) {
657 ASSERT_NOT_REACHED();
658 cancelReply(WTFMove(completionHandler));
659 return;
660 }
661 completionHandler(WTFMove(*result));
662}
663
664void ShowEmojiPicker::cancelReply(CompletionHandler<void(String&&)>&& completionHandler)
665{
666 completionHandler(IPC::AsyncReplyError<String>::create());
667}
668
669void ShowEmojiPicker::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const String& result)
670{
671 *encoder << result;
672 connection.sendSyncReply(WTFMove(encoder));
673}
674
675#endif
676
677} // namespace WebPageProxy
678
679} // namespace Messages
680
681namespace WebKit {
682
683void WebPageProxy::didReceiveMessage(IPC::Connection& connection, IPC::Decoder& decoder)
684{
685 if (decoder.messageName() == Messages::WebPageProxy::ShowPage::name()) {
686 IPC::handleMessage<Messages::WebPageProxy::ShowPage>(decoder, this, &WebPageProxy::showPage);
687 return;
688 }
689 if (decoder.messageName() == Messages::WebPageProxy::ClosePage::name()) {
690 IPC::handleMessage<Messages::WebPageProxy::ClosePage>(decoder, this, &WebPageProxy::closePage);
691 return;
692 }
693 if (decoder.messageName() == Messages::WebPageProxy::MouseDidMoveOverElement::name()) {
694 IPC::handleMessage<Messages::WebPageProxy::MouseDidMoveOverElement>(decoder, this, &WebPageProxy::mouseDidMoveOverElement);
695 return;
696 }
697#if ENABLE(NETSCAPE_PLUGIN_API)
698 if (decoder.messageName() == Messages::WebPageProxy::UnavailablePluginButtonClicked::name()) {
699 IPC::handleMessage<Messages::WebPageProxy::UnavailablePluginButtonClicked>(decoder, this, &WebPageProxy::unavailablePluginButtonClicked);
700 return;
701 }
702#endif
703 if (decoder.messageName() == Messages::WebPageProxy::DidChangeViewportProperties::name()) {
704 IPC::handleMessage<Messages::WebPageProxy::DidChangeViewportProperties>(decoder, this, &WebPageProxy::didChangeViewportProperties);
705 return;
706 }
707 if (decoder.messageName() == Messages::WebPageProxy::DidReceiveEvent::name()) {
708 IPC::handleMessage<Messages::WebPageProxy::DidReceiveEvent>(decoder, this, &WebPageProxy::didReceiveEvent);
709 return;
710 }
711#if !PLATFORM(IOS_FAMILY)
712 if (decoder.messageName() == Messages::WebPageProxy::SetCursor::name()) {
713 IPC::handleMessage<Messages::WebPageProxy::SetCursor>(decoder, this, &WebPageProxy::setCursor);
714 return;
715 }
716#endif
717#if !PLATFORM(IOS_FAMILY)
718 if (decoder.messageName() == Messages::WebPageProxy::SetCursorHiddenUntilMouseMoves::name()) {
719 IPC::handleMessage<Messages::WebPageProxy::SetCursorHiddenUntilMouseMoves>(decoder, this, &WebPageProxy::setCursorHiddenUntilMouseMoves);
720 return;
721 }
722#endif
723 if (decoder.messageName() == Messages::WebPageProxy::SetStatusText::name()) {
724 IPC::handleMessage<Messages::WebPageProxy::SetStatusText>(decoder, this, &WebPageProxy::setStatusText);
725 return;
726 }
727 if (decoder.messageName() == Messages::WebPageProxy::SetToolTip::name()) {
728 IPC::handleMessage<Messages::WebPageProxy::SetToolTip>(decoder, this, &WebPageProxy::setToolTip);
729 return;
730 }
731 if (decoder.messageName() == Messages::WebPageProxy::SetFocus::name()) {
732 IPC::handleMessage<Messages::WebPageProxy::SetFocus>(decoder, this, &WebPageProxy::setFocus);
733 return;
734 }
735 if (decoder.messageName() == Messages::WebPageProxy::TakeFocus::name()) {
736 IPC::handleMessage<Messages::WebPageProxy::TakeFocus>(decoder, this, &WebPageProxy::takeFocus);
737 return;
738 }
739 if (decoder.messageName() == Messages::WebPageProxy::FocusedFrameChanged::name()) {
740 IPC::handleMessage<Messages::WebPageProxy::FocusedFrameChanged>(decoder, this, &WebPageProxy::focusedFrameChanged);
741 return;
742 }
743 if (decoder.messageName() == Messages::WebPageProxy::FrameSetLargestFrameChanged::name()) {
744 IPC::handleMessage<Messages::WebPageProxy::FrameSetLargestFrameChanged>(decoder, this, &WebPageProxy::frameSetLargestFrameChanged);
745 return;
746 }
747 if (decoder.messageName() == Messages::WebPageProxy::SetRenderTreeSize::name()) {
748 IPC::handleMessage<Messages::WebPageProxy::SetRenderTreeSize>(decoder, this, &WebPageProxy::setRenderTreeSize);
749 return;
750 }
751 if (decoder.messageName() == Messages::WebPageProxy::SetToolbarsAreVisible::name()) {
752 IPC::handleMessage<Messages::WebPageProxy::SetToolbarsAreVisible>(decoder, this, &WebPageProxy::setToolbarsAreVisible);
753 return;
754 }
755 if (decoder.messageName() == Messages::WebPageProxy::SetMenuBarIsVisible::name()) {
756 IPC::handleMessage<Messages::WebPageProxy::SetMenuBarIsVisible>(decoder, this, &WebPageProxy::setMenuBarIsVisible);
757 return;
758 }
759 if (decoder.messageName() == Messages::WebPageProxy::SetStatusBarIsVisible::name()) {
760 IPC::handleMessage<Messages::WebPageProxy::SetStatusBarIsVisible>(decoder, this, &WebPageProxy::setStatusBarIsVisible);
761 return;
762 }
763 if (decoder.messageName() == Messages::WebPageProxy::SetIsResizable::name()) {
764 IPC::handleMessage<Messages::WebPageProxy::SetIsResizable>(decoder, this, &WebPageProxy::setIsResizable);
765 return;
766 }
767 if (decoder.messageName() == Messages::WebPageProxy::SetWindowFrame::name()) {
768 IPC::handleMessage<Messages::WebPageProxy::SetWindowFrame>(decoder, this, &WebPageProxy::setWindowFrame);
769 return;
770 }
771#if PLATFORM(COCOA)
772 if (decoder.messageName() == Messages::WebPageProxy::ShowValidationMessage::name()) {
773 IPC::handleMessage<Messages::WebPageProxy::ShowValidationMessage>(decoder, this, &WebPageProxy::showValidationMessage);
774 return;
775 }
776#endif
777#if PLATFORM(COCOA)
778 if (decoder.messageName() == Messages::WebPageProxy::HideValidationMessage::name()) {
779 IPC::handleMessage<Messages::WebPageProxy::HideValidationMessage>(decoder, this, &WebPageProxy::hideValidationMessage);
780 return;
781 }
782#endif
783 if (decoder.messageName() == Messages::WebPageProxy::PageDidScroll::name()) {
784 IPC::handleMessage<Messages::WebPageProxy::PageDidScroll>(decoder, this, &WebPageProxy::pageDidScroll);
785 return;
786 }
787 if (decoder.messageName() == Messages::WebPageProxy::RunOpenPanel::name()) {
788 IPC::handleMessage<Messages::WebPageProxy::RunOpenPanel>(decoder, this, &WebPageProxy::runOpenPanel);
789 return;
790 }
791 if (decoder.messageName() == Messages::WebPageProxy::ShowShareSheet::name()) {
792 IPC::handleMessage<Messages::WebPageProxy::ShowShareSheet>(decoder, this, &WebPageProxy::showShareSheet);
793 return;
794 }
795 if (decoder.messageName() == Messages::WebPageProxy::RunModal::name()) {
796 IPC::handleMessage<Messages::WebPageProxy::RunModal>(decoder, this, &WebPageProxy::runModal);
797 return;
798 }
799 if (decoder.messageName() == Messages::WebPageProxy::NotifyScrollerThumbIsVisibleInRect::name()) {
800 IPC::handleMessage<Messages::WebPageProxy::NotifyScrollerThumbIsVisibleInRect>(decoder, this, &WebPageProxy::notifyScrollerThumbIsVisibleInRect);
801 return;
802 }
803 if (decoder.messageName() == Messages::WebPageProxy::RecommendedScrollbarStyleDidChange::name()) {
804 IPC::handleMessage<Messages::WebPageProxy::RecommendedScrollbarStyleDidChange>(decoder, this, &WebPageProxy::recommendedScrollbarStyleDidChange);
805 return;
806 }
807 if (decoder.messageName() == Messages::WebPageProxy::DidChangeScrollbarsForMainFrame::name()) {
808 IPC::handleMessage<Messages::WebPageProxy::DidChangeScrollbarsForMainFrame>(decoder, this, &WebPageProxy::didChangeScrollbarsForMainFrame);
809 return;
810 }
811 if (decoder.messageName() == Messages::WebPageProxy::DidChangeScrollOffsetPinningForMainFrame::name()) {
812 IPC::handleMessage<Messages::WebPageProxy::DidChangeScrollOffsetPinningForMainFrame>(decoder, this, &WebPageProxy::didChangeScrollOffsetPinningForMainFrame);
813 return;
814 }
815 if (decoder.messageName() == Messages::WebPageProxy::DidChangePageCount::name()) {
816 IPC::handleMessage<Messages::WebPageProxy::DidChangePageCount>(decoder, this, &WebPageProxy::didChangePageCount);
817 return;
818 }
819 if (decoder.messageName() == Messages::WebPageProxy::PageExtendedBackgroundColorDidChange::name()) {
820 IPC::handleMessage<Messages::WebPageProxy::PageExtendedBackgroundColorDidChange>(decoder, this, &WebPageProxy::pageExtendedBackgroundColorDidChange);
821 return;
822 }
823#if ENABLE(NETSCAPE_PLUGIN_API)
824 if (decoder.messageName() == Messages::WebPageProxy::DidFailToInitializePlugin::name()) {
825 IPC::handleMessage<Messages::WebPageProxy::DidFailToInitializePlugin>(decoder, this, &WebPageProxy::didFailToInitializePlugin);
826 return;
827 }
828#endif
829#if ENABLE(NETSCAPE_PLUGIN_API)
830 if (decoder.messageName() == Messages::WebPageProxy::DidBlockInsecurePluginVersion::name()) {
831 IPC::handleMessage<Messages::WebPageProxy::DidBlockInsecurePluginVersion>(decoder, this, &WebPageProxy::didBlockInsecurePluginVersion);
832 return;
833 }
834#endif
835 if (decoder.messageName() == Messages::WebPageProxy::SetCanShortCircuitHorizontalWheelEvents::name()) {
836 IPC::handleMessage<Messages::WebPageProxy::SetCanShortCircuitHorizontalWheelEvents>(decoder, this, &WebPageProxy::setCanShortCircuitHorizontalWheelEvents);
837 return;
838 }
839 if (decoder.messageName() == Messages::WebPageProxy::DidChangeContentSize::name()) {
840 IPC::handleMessage<Messages::WebPageProxy::DidChangeContentSize>(decoder, this, &WebPageProxy::didChangeContentSize);
841 return;
842 }
843 if (decoder.messageName() == Messages::WebPageProxy::DidChangeIntrinsicContentSize::name()) {
844 IPC::handleMessage<Messages::WebPageProxy::DidChangeIntrinsicContentSize>(decoder, this, &WebPageProxy::didChangeIntrinsicContentSize);
845 return;
846 }
847#if ENABLE(INPUT_TYPE_COLOR)
848 if (decoder.messageName() == Messages::WebPageProxy::ShowColorPicker::name()) {
849 IPC::handleMessage<Messages::WebPageProxy::ShowColorPicker>(decoder, this, &WebPageProxy::showColorPicker);
850 return;
851 }
852#endif
853#if ENABLE(INPUT_TYPE_COLOR)
854 if (decoder.messageName() == Messages::WebPageProxy::SetColorPickerColor::name()) {
855 IPC::handleMessage<Messages::WebPageProxy::SetColorPickerColor>(decoder, this, &WebPageProxy::setColorPickerColor);
856 return;
857 }
858#endif
859#if ENABLE(INPUT_TYPE_COLOR)
860 if (decoder.messageName() == Messages::WebPageProxy::EndColorPicker::name()) {
861 IPC::handleMessage<Messages::WebPageProxy::EndColorPicker>(decoder, this, &WebPageProxy::endColorPicker);
862 return;
863 }
864#endif
865#if ENABLE(DATALIST_ELEMENT)
866 if (decoder.messageName() == Messages::WebPageProxy::ShowDataListSuggestions::name()) {
867 IPC::handleMessage<Messages::WebPageProxy::ShowDataListSuggestions>(decoder, this, &WebPageProxy::showDataListSuggestions);
868 return;
869 }
870#endif
871#if ENABLE(DATALIST_ELEMENT)
872 if (decoder.messageName() == Messages::WebPageProxy::HandleKeydownInDataList::name()) {
873 IPC::handleMessage<Messages::WebPageProxy::HandleKeydownInDataList>(decoder, this, &WebPageProxy::handleKeydownInDataList);
874 return;
875 }
876#endif
877#if ENABLE(DATALIST_ELEMENT)
878 if (decoder.messageName() == Messages::WebPageProxy::EndDataListSuggestions::name()) {
879 IPC::handleMessage<Messages::WebPageProxy::EndDataListSuggestions>(decoder, this, &WebPageProxy::endDataListSuggestions);
880 return;
881 }
882#endif
883 if (decoder.messageName() == Messages::WebPageProxy::DecidePolicyForResponse::name()) {
884 IPC::handleMessage<Messages::WebPageProxy::DecidePolicyForResponse>(decoder, this, &WebPageProxy::decidePolicyForResponse);
885 return;
886 }
887 if (decoder.messageName() == Messages::WebPageProxy::DecidePolicyForNavigationActionAsync::name()) {
888 IPC::handleMessage<Messages::WebPageProxy::DecidePolicyForNavigationActionAsync>(decoder, this, &WebPageProxy::decidePolicyForNavigationActionAsync);
889 return;
890 }
891 if (decoder.messageName() == Messages::WebPageProxy::DecidePolicyForNewWindowAction::name()) {
892 IPC::handleMessage<Messages::WebPageProxy::DecidePolicyForNewWindowAction>(decoder, this, &WebPageProxy::decidePolicyForNewWindowAction);
893 return;
894 }
895 if (decoder.messageName() == Messages::WebPageProxy::UnableToImplementPolicy::name()) {
896 IPC::handleMessage<Messages::WebPageProxy::UnableToImplementPolicy>(decoder, this, &WebPageProxy::unableToImplementPolicy);
897 return;
898 }
899 if (decoder.messageName() == Messages::WebPageProxy::DidChangeProgress::name()) {
900 IPC::handleMessage<Messages::WebPageProxy::DidChangeProgress>(decoder, this, &WebPageProxy::didChangeProgress);
901 return;
902 }
903 if (decoder.messageName() == Messages::WebPageProxy::DidFinishProgress::name()) {
904 IPC::handleMessage<Messages::WebPageProxy::DidFinishProgress>(decoder, this, &WebPageProxy::didFinishProgress);
905 return;
906 }
907 if (decoder.messageName() == Messages::WebPageProxy::DidStartProgress::name()) {
908 IPC::handleMessage<Messages::WebPageProxy::DidStartProgress>(decoder, this, &WebPageProxy::didStartProgress);
909 return;
910 }
911 if (decoder.messageName() == Messages::WebPageProxy::SetNetworkRequestsInProgress::name()) {
912 IPC::handleMessage<Messages::WebPageProxy::SetNetworkRequestsInProgress>(decoder, this, &WebPageProxy::setNetworkRequestsInProgress);
913 return;
914 }
915 if (decoder.messageName() == Messages::WebPageProxy::DidCreateMainFrame::name()) {
916 IPC::handleMessage<Messages::WebPageProxy::DidCreateMainFrame>(decoder, this, &WebPageProxy::didCreateMainFrame);
917 return;
918 }
919 if (decoder.messageName() == Messages::WebPageProxy::DidCreateSubframe::name()) {
920 IPC::handleMessage<Messages::WebPageProxy::DidCreateSubframe>(decoder, this, &WebPageProxy::didCreateSubframe);
921 return;
922 }
923 if (decoder.messageName() == Messages::WebPageProxy::DidCreateWindow::name()) {
924 IPC::handleMessage<Messages::WebPageProxy::DidCreateWindow>(decoder, this, &WebPageProxy::didCreateWindow);
925 return;
926 }
927 if (decoder.messageName() == Messages::WebPageProxy::DidStartProvisionalLoadForFrame::name()) {
928 IPC::handleMessage<Messages::WebPageProxy::DidStartProvisionalLoadForFrame>(decoder, this, &WebPageProxy::didStartProvisionalLoadForFrame);
929 return;
930 }
931 if (decoder.messageName() == Messages::WebPageProxy::DidReceiveServerRedirectForProvisionalLoadForFrame::name()) {
932 IPC::handleMessage<Messages::WebPageProxy::DidReceiveServerRedirectForProvisionalLoadForFrame>(decoder, this, &WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame);
933 return;
934 }
935 if (decoder.messageName() == Messages::WebPageProxy::WillPerformClientRedirectForFrame::name()) {
936 IPC::handleMessage<Messages::WebPageProxy::WillPerformClientRedirectForFrame>(decoder, this, &WebPageProxy::willPerformClientRedirectForFrame);
937 return;
938 }
939 if (decoder.messageName() == Messages::WebPageProxy::DidCancelClientRedirectForFrame::name()) {
940 IPC::handleMessage<Messages::WebPageProxy::DidCancelClientRedirectForFrame>(decoder, this, &WebPageProxy::didCancelClientRedirectForFrame);
941 return;
942 }
943 if (decoder.messageName() == Messages::WebPageProxy::DidChangeProvisionalURLForFrame::name()) {
944 IPC::handleMessage<Messages::WebPageProxy::DidChangeProvisionalURLForFrame>(decoder, this, &WebPageProxy::didChangeProvisionalURLForFrame);
945 return;
946 }
947 if (decoder.messageName() == Messages::WebPageProxy::DidFailProvisionalLoadForFrame::name()) {
948 IPC::handleMessage<Messages::WebPageProxy::DidFailProvisionalLoadForFrame>(decoder, this, &WebPageProxy::didFailProvisionalLoadForFrame);
949 return;
950 }
951 if (decoder.messageName() == Messages::WebPageProxy::DidCommitLoadForFrame::name()) {
952 IPC::handleMessage<Messages::WebPageProxy::DidCommitLoadForFrame>(decoder, this, &WebPageProxy::didCommitLoadForFrame);
953 return;
954 }
955 if (decoder.messageName() == Messages::WebPageProxy::DidFailLoadForFrame::name()) {
956 IPC::handleMessage<Messages::WebPageProxy::DidFailLoadForFrame>(decoder, this, &WebPageProxy::didFailLoadForFrame);
957 return;
958 }
959 if (decoder.messageName() == Messages::WebPageProxy::DidFinishDocumentLoadForFrame::name()) {
960 IPC::handleMessage<Messages::WebPageProxy::DidFinishDocumentLoadForFrame>(decoder, this, &WebPageProxy::didFinishDocumentLoadForFrame);
961 return;
962 }
963 if (decoder.messageName() == Messages::WebPageProxy::DidFinishLoadForFrame::name()) {
964 IPC::handleMessage<Messages::WebPageProxy::DidFinishLoadForFrame>(decoder, this, &WebPageProxy::didFinishLoadForFrame);
965 return;
966 }
967 if (decoder.messageName() == Messages::WebPageProxy::DidFirstLayoutForFrame::name()) {
968 IPC::handleMessage<Messages::WebPageProxy::DidFirstLayoutForFrame>(decoder, this, &WebPageProxy::didFirstLayoutForFrame);
969 return;
970 }
971 if (decoder.messageName() == Messages::WebPageProxy::DidFirstVisuallyNonEmptyLayoutForFrame::name()) {
972 IPC::handleMessage<Messages::WebPageProxy::DidFirstVisuallyNonEmptyLayoutForFrame>(decoder, this, &WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame);
973 return;
974 }
975 if (decoder.messageName() == Messages::WebPageProxy::DidReachLayoutMilestone::name()) {
976 IPC::handleMessage<Messages::WebPageProxy::DidReachLayoutMilestone>(decoder, this, &WebPageProxy::didReachLayoutMilestone);
977 return;
978 }
979 if (decoder.messageName() == Messages::WebPageProxy::DidReceiveTitleForFrame::name()) {
980 IPC::handleMessage<Messages::WebPageProxy::DidReceiveTitleForFrame>(decoder, this, &WebPageProxy::didReceiveTitleForFrame);
981 return;
982 }
983 if (decoder.messageName() == Messages::WebPageProxy::DidDisplayInsecureContentForFrame::name()) {
984 IPC::handleMessage<Messages::WebPageProxy::DidDisplayInsecureContentForFrame>(decoder, this, &WebPageProxy::didDisplayInsecureContentForFrame);
985 return;
986 }
987 if (decoder.messageName() == Messages::WebPageProxy::DidRunInsecureContentForFrame::name()) {
988 IPC::handleMessage<Messages::WebPageProxy::DidRunInsecureContentForFrame>(decoder, this, &WebPageProxy::didRunInsecureContentForFrame);
989 return;
990 }
991 if (decoder.messageName() == Messages::WebPageProxy::DidDetectXSSForFrame::name()) {
992 IPC::handleMessage<Messages::WebPageProxy::DidDetectXSSForFrame>(decoder, this, &WebPageProxy::didDetectXSSForFrame);
993 return;
994 }
995 if (decoder.messageName() == Messages::WebPageProxy::DidSameDocumentNavigationForFrame::name()) {
996 IPC::handleMessage<Messages::WebPageProxy::DidSameDocumentNavigationForFrame>(decoder, this, &WebPageProxy::didSameDocumentNavigationForFrame);
997 return;
998 }
999 if (decoder.messageName() == Messages::WebPageProxy::DidChangeMainDocument::name()) {
1000 IPC::handleMessage<Messages::WebPageProxy::DidChangeMainDocument>(decoder, this, &WebPageProxy::didChangeMainDocument);
1001 return;
1002 }
1003 if (decoder.messageName() == Messages::WebPageProxy::DidExplicitOpenForFrame::name()) {
1004 IPC::handleMessage<Messages::WebPageProxy::DidExplicitOpenForFrame>(decoder, this, &WebPageProxy::didExplicitOpenForFrame);
1005 return;
1006 }
1007 if (decoder.messageName() == Messages::WebPageProxy::DidDestroyNavigation::name()) {
1008 IPC::handleMessage<Messages::WebPageProxy::DidDestroyNavigation>(decoder, this, &WebPageProxy::didDestroyNavigation);
1009 return;
1010 }
1011 if (decoder.messageName() == Messages::WebPageProxy::MainFramePluginHandlesPageScaleGestureDidChange::name()) {
1012 IPC::handleMessage<Messages::WebPageProxy::MainFramePluginHandlesPageScaleGestureDidChange>(decoder, this, &WebPageProxy::mainFramePluginHandlesPageScaleGestureDidChange);
1013 return;
1014 }
1015 if (decoder.messageName() == Messages::WebPageProxy::FrameDidBecomeFrameSet::name()) {
1016 IPC::handleMessage<Messages::WebPageProxy::FrameDidBecomeFrameSet>(decoder, this, &WebPageProxy::frameDidBecomeFrameSet);
1017 return;
1018 }
1019 if (decoder.messageName() == Messages::WebPageProxy::DidNavigateWithNavigationData::name()) {
1020 IPC::handleMessage<Messages::WebPageProxy::DidNavigateWithNavigationData>(decoder, this, &WebPageProxy::didNavigateWithNavigationData);
1021 return;
1022 }
1023 if (decoder.messageName() == Messages::WebPageProxy::DidPerformClientRedirect::name()) {
1024 IPC::handleMessage<Messages::WebPageProxy::DidPerformClientRedirect>(decoder, this, &WebPageProxy::didPerformClientRedirect);
1025 return;
1026 }
1027 if (decoder.messageName() == Messages::WebPageProxy::DidPerformServerRedirect::name()) {
1028 IPC::handleMessage<Messages::WebPageProxy::DidPerformServerRedirect>(decoder, this, &WebPageProxy::didPerformServerRedirect);
1029 return;
1030 }
1031 if (decoder.messageName() == Messages::WebPageProxy::DidUpdateHistoryTitle::name()) {
1032 IPC::handleMessage<Messages::WebPageProxy::DidUpdateHistoryTitle>(decoder, this, &WebPageProxy::didUpdateHistoryTitle);
1033 return;
1034 }
1035 if (decoder.messageName() == Messages::WebPageProxy::DidFinishLoadingDataForCustomContentProvider::name()) {
1036 IPC::handleMessage<Messages::WebPageProxy::DidFinishLoadingDataForCustomContentProvider>(decoder, this, &WebPageProxy::didFinishLoadingDataForCustomContentProvider);
1037 return;
1038 }
1039 if (decoder.messageName() == Messages::WebPageProxy::WillSubmitForm::name()) {
1040 IPC::handleMessage<Messages::WebPageProxy::WillSubmitForm>(decoder, this, &WebPageProxy::willSubmitForm);
1041 return;
1042 }
1043 if (decoder.messageName() == Messages::WebPageProxy::VoidCallback::name()) {
1044 IPC::handleMessage<Messages::WebPageProxy::VoidCallback>(decoder, this, &WebPageProxy::voidCallback);
1045 return;
1046 }
1047 if (decoder.messageName() == Messages::WebPageProxy::DataCallback::name()) {
1048 IPC::handleMessage<Messages::WebPageProxy::DataCallback>(decoder, this, &WebPageProxy::dataCallback);
1049 return;
1050 }
1051 if (decoder.messageName() == Messages::WebPageProxy::ImageCallback::name()) {
1052 IPC::handleMessage<Messages::WebPageProxy::ImageCallback>(decoder, this, &WebPageProxy::imageCallback);
1053 return;
1054 }
1055 if (decoder.messageName() == Messages::WebPageProxy::StringCallback::name()) {
1056 IPC::handleMessage<Messages::WebPageProxy::StringCallback>(decoder, this, &WebPageProxy::stringCallback);
1057 return;
1058 }
1059 if (decoder.messageName() == Messages::WebPageProxy::InvalidateStringCallback::name()) {
1060 IPC::handleMessage<Messages::WebPageProxy::InvalidateStringCallback>(decoder, this, &WebPageProxy::invalidateStringCallback);
1061 return;
1062 }
1063 if (decoder.messageName() == Messages::WebPageProxy::ScriptValueCallback::name()) {
1064 IPC::handleMessage<Messages::WebPageProxy::ScriptValueCallback>(decoder, this, &WebPageProxy::scriptValueCallback);
1065 return;
1066 }
1067 if (decoder.messageName() == Messages::WebPageProxy::ComputedPagesCallback::name()) {
1068 IPC::handleMessage<Messages::WebPageProxy::ComputedPagesCallback>(decoder, this, &WebPageProxy::computedPagesCallback);
1069 return;
1070 }
1071 if (decoder.messageName() == Messages::WebPageProxy::ValidateCommandCallback::name()) {
1072 IPC::handleMessage<Messages::WebPageProxy::ValidateCommandCallback>(decoder, this, &WebPageProxy::validateCommandCallback);
1073 return;
1074 }
1075 if (decoder.messageName() == Messages::WebPageProxy::EditingRangeCallback::name()) {
1076 IPC::handleMessage<Messages::WebPageProxy::EditingRangeCallback>(decoder, this, &WebPageProxy::editingRangeCallback);
1077 return;
1078 }
1079 if (decoder.messageName() == Messages::WebPageProxy::UnsignedCallback::name()) {
1080 IPC::handleMessage<Messages::WebPageProxy::UnsignedCallback>(decoder, this, &WebPageProxy::unsignedCallback);
1081 return;
1082 }
1083 if (decoder.messageName() == Messages::WebPageProxy::RectForCharacterRangeCallback::name()) {
1084 IPC::handleMessage<Messages::WebPageProxy::RectForCharacterRangeCallback>(decoder, this, &WebPageProxy::rectForCharacterRangeCallback);
1085 return;
1086 }
1087#if ENABLE(APPLICATION_MANIFEST)
1088 if (decoder.messageName() == Messages::WebPageProxy::ApplicationManifestCallback::name()) {
1089 IPC::handleMessage<Messages::WebPageProxy::ApplicationManifestCallback>(decoder, this, &WebPageProxy::applicationManifestCallback);
1090 return;
1091 }
1092#endif
1093#if PLATFORM(MAC)
1094 if (decoder.messageName() == Messages::WebPageProxy::AttributedStringForCharacterRangeCallback::name()) {
1095 IPC::handleMessage<Messages::WebPageProxy::AttributedStringForCharacterRangeCallback>(decoder, this, &WebPageProxy::attributedStringForCharacterRangeCallback);
1096 return;
1097 }
1098#endif
1099#if PLATFORM(MAC)
1100 if (decoder.messageName() == Messages::WebPageProxy::FontAtSelectionCallback::name()) {
1101 IPC::handleMessage<Messages::WebPageProxy::FontAtSelectionCallback>(decoder, this, &WebPageProxy::fontAtSelectionCallback);
1102 return;
1103 }
1104#endif
1105 if (decoder.messageName() == Messages::WebPageProxy::FontAttributesCallback::name()) {
1106 IPC::handleMessage<Messages::WebPageProxy::FontAttributesCallback>(decoder, this, &WebPageProxy::fontAttributesCallback);
1107 return;
1108 }
1109#if PLATFORM(IOS_FAMILY)
1110 if (decoder.messageName() == Messages::WebPageProxy::GestureCallback::name()) {
1111 IPC::handleMessage<Messages::WebPageProxy::GestureCallback>(decoder, this, &WebPageProxy::gestureCallback);
1112 return;
1113 }
1114#endif
1115#if PLATFORM(IOS_FAMILY)
1116 if (decoder.messageName() == Messages::WebPageProxy::TouchesCallback::name()) {
1117 IPC::handleMessage<Messages::WebPageProxy::TouchesCallback>(decoder, this, &WebPageProxy::touchesCallback);
1118 return;
1119 }
1120#endif
1121#if PLATFORM(IOS_FAMILY)
1122 if (decoder.messageName() == Messages::WebPageProxy::SelectionContextCallback::name()) {
1123 IPC::handleMessage<Messages::WebPageProxy::SelectionContextCallback>(decoder, this, &WebPageProxy::selectionContextCallback);
1124 return;
1125 }
1126#endif
1127#if PLATFORM(IOS_FAMILY)
1128 if (decoder.messageName() == Messages::WebPageProxy::DidReceivePositionInformation::name()) {
1129 IPC::handleMessage<Messages::WebPageProxy::DidReceivePositionInformation>(decoder, this, &WebPageProxy::didReceivePositionInformation);
1130 return;
1131 }
1132#endif
1133#if PLATFORM(IOS_FAMILY)
1134 if (decoder.messageName() == Messages::WebPageProxy::SaveImageToLibrary::name()) {
1135 IPC::handleMessage<Messages::WebPageProxy::SaveImageToLibrary>(decoder, this, &WebPageProxy::saveImageToLibrary);
1136 return;
1137 }
1138#endif
1139#if PLATFORM(IOS_FAMILY)
1140 if (decoder.messageName() == Messages::WebPageProxy::ShowPlaybackTargetPicker::name()) {
1141 IPC::handleMessage<Messages::WebPageProxy::ShowPlaybackTargetPicker>(decoder, this, &WebPageProxy::showPlaybackTargetPicker);
1142 return;
1143 }
1144#endif
1145#if PLATFORM(IOS_FAMILY)
1146 if (decoder.messageName() == Messages::WebPageProxy::CommitPotentialTapFailed::name()) {
1147 IPC::handleMessage<Messages::WebPageProxy::CommitPotentialTapFailed>(decoder, this, &WebPageProxy::commitPotentialTapFailed);
1148 return;
1149 }
1150#endif
1151#if PLATFORM(IOS_FAMILY)
1152 if (decoder.messageName() == Messages::WebPageProxy::DidNotHandleTapAsClick::name()) {
1153 IPC::handleMessage<Messages::WebPageProxy::DidNotHandleTapAsClick>(decoder, this, &WebPageProxy::didNotHandleTapAsClick);
1154 return;
1155 }
1156#endif
1157#if PLATFORM(IOS_FAMILY)
1158 if (decoder.messageName() == Messages::WebPageProxy::DidCompleteSyntheticClick::name()) {
1159 IPC::handleMessage<Messages::WebPageProxy::DidCompleteSyntheticClick>(decoder, this, &WebPageProxy::didCompleteSyntheticClick);
1160 return;
1161 }
1162#endif
1163#if PLATFORM(IOS_FAMILY)
1164 if (decoder.messageName() == Messages::WebPageProxy::DisableDoubleTapGesturesDuringTapIfNecessary::name()) {
1165 IPC::handleMessage<Messages::WebPageProxy::DisableDoubleTapGesturesDuringTapIfNecessary>(decoder, this, &WebPageProxy::disableDoubleTapGesturesDuringTapIfNecessary);
1166 return;
1167 }
1168#endif
1169#if PLATFORM(IOS_FAMILY)
1170 if (decoder.messageName() == Messages::WebPageProxy::HandleSmartMagnificationInformationForPotentialTap::name()) {
1171 IPC::handleMessage<Messages::WebPageProxy::HandleSmartMagnificationInformationForPotentialTap>(decoder, this, &WebPageProxy::handleSmartMagnificationInformationForPotentialTap);
1172 return;
1173 }
1174#endif
1175#if PLATFORM(IOS_FAMILY)
1176 if (decoder.messageName() == Messages::WebPageProxy::DrawToPDFCallback::name()) {
1177 IPC::handleMessage<Messages::WebPageProxy::DrawToPDFCallback>(decoder, this, &WebPageProxy::drawToPDFCallback);
1178 return;
1179 }
1180#endif
1181#if PLATFORM(IOS_FAMILY)
1182 if (decoder.messageName() == Messages::WebPageProxy::SelectionRectsCallback::name()) {
1183 IPC::handleMessage<Messages::WebPageProxy::SelectionRectsCallback>(decoder, this, &WebPageProxy::selectionRectsCallback);
1184 return;
1185 }
1186#endif
1187#if ENABLE(DATA_DETECTION)
1188 if (decoder.messageName() == Messages::WebPageProxy::SetDataDetectionResult::name()) {
1189 IPC::handleMessage<Messages::WebPageProxy::SetDataDetectionResult>(decoder, this, &WebPageProxy::setDataDetectionResult);
1190 return;
1191 }
1192#endif
1193#if PLATFORM(GTK)
1194 if (decoder.messageName() == Messages::WebPageProxy::PrintFinishedCallback::name()) {
1195 IPC::handleMessage<Messages::WebPageProxy::PrintFinishedCallback>(decoder, this, &WebPageProxy::printFinishedCallback);
1196 return;
1197 }
1198#endif
1199#if PLATFORM(COCOA)
1200 if (decoder.messageName() == Messages::WebPageProxy::MachSendRightCallback::name()) {
1201 IPC::handleMessage<Messages::WebPageProxy::MachSendRightCallback>(decoder, this, &WebPageProxy::machSendRightCallback);
1202 return;
1203 }
1204#endif
1205#if PLATFORM(COCOA)
1206 if (decoder.messageName() == Messages::WebPageProxy::NowPlayingInfoCallback::name()) {
1207 IPC::handleMessage<Messages::WebPageProxy::NowPlayingInfoCallback>(decoder, this, &WebPageProxy::nowPlayingInfoCallback);
1208 return;
1209 }
1210#endif
1211 if (decoder.messageName() == Messages::WebPageProxy::PageScaleFactorDidChange::name()) {
1212 IPC::handleMessage<Messages::WebPageProxy::PageScaleFactorDidChange>(decoder, this, &WebPageProxy::pageScaleFactorDidChange);
1213 return;
1214 }
1215 if (decoder.messageName() == Messages::WebPageProxy::PluginScaleFactorDidChange::name()) {
1216 IPC::handleMessage<Messages::WebPageProxy::PluginScaleFactorDidChange>(decoder, this, &WebPageProxy::pluginScaleFactorDidChange);
1217 return;
1218 }
1219 if (decoder.messageName() == Messages::WebPageProxy::PluginZoomFactorDidChange::name()) {
1220 IPC::handleMessage<Messages::WebPageProxy::PluginZoomFactorDidChange>(decoder, this, &WebPageProxy::pluginZoomFactorDidChange);
1221 return;
1222 }
1223#if USE(ATK)
1224 if (decoder.messageName() == Messages::WebPageProxy::BindAccessibilityTree::name()) {
1225 IPC::handleMessage<Messages::WebPageProxy::BindAccessibilityTree>(decoder, this, &WebPageProxy::bindAccessibilityTree);
1226 return;
1227 }
1228#endif
1229#if PLATFORM(GTK)
1230 if (decoder.messageName() == Messages::WebPageProxy::SetInputMethodState::name()) {
1231 IPC::handleMessage<Messages::WebPageProxy::SetInputMethodState>(decoder, this, &WebPageProxy::setInputMethodState);
1232 return;
1233 }
1234#endif
1235 if (decoder.messageName() == Messages::WebPageProxy::BackForwardAddItem::name()) {
1236 IPC::handleMessage<Messages::WebPageProxy::BackForwardAddItem>(decoder, this, &WebPageProxy::backForwardAddItem);
1237 return;
1238 }
1239 if (decoder.messageName() == Messages::WebPageProxy::BackForwardClear::name()) {
1240 IPC::handleMessage<Messages::WebPageProxy::BackForwardClear>(decoder, this, &WebPageProxy::backForwardClear);
1241 return;
1242 }
1243 if (decoder.messageName() == Messages::WebPageProxy::WillGoToBackForwardListItem::name()) {
1244 IPC::handleMessage<Messages::WebPageProxy::WillGoToBackForwardListItem>(decoder, this, &WebPageProxy::willGoToBackForwardListItem);
1245 return;
1246 }
1247 if (decoder.messageName() == Messages::WebPageProxy::RegisterEditCommandForUndo::name()) {
1248 IPC::handleMessage<Messages::WebPageProxy::RegisterEditCommandForUndo>(decoder, this, &WebPageProxy::registerEditCommandForUndo);
1249 return;
1250 }
1251 if (decoder.messageName() == Messages::WebPageProxy::ClearAllEditCommands::name()) {
1252 IPC::handleMessage<Messages::WebPageProxy::ClearAllEditCommands>(decoder, this, &WebPageProxy::clearAllEditCommands);
1253 return;
1254 }
1255 if (decoder.messageName() == Messages::WebPageProxy::RegisterInsertionUndoGrouping::name()) {
1256 IPC::handleMessage<Messages::WebPageProxy::RegisterInsertionUndoGrouping>(decoder, this, &WebPageProxy::registerInsertionUndoGrouping);
1257 return;
1258 }
1259 if (decoder.messageName() == Messages::WebPageProxy::LogDiagnosticMessage::name()) {
1260 IPC::handleMessage<Messages::WebPageProxy::LogDiagnosticMessage>(decoder, this, &WebPageProxy::logDiagnosticMessage);
1261 return;
1262 }
1263 if (decoder.messageName() == Messages::WebPageProxy::LogDiagnosticMessageWithResult::name()) {
1264 IPC::handleMessage<Messages::WebPageProxy::LogDiagnosticMessageWithResult>(decoder, this, &WebPageProxy::logDiagnosticMessageWithResult);
1265 return;
1266 }
1267 if (decoder.messageName() == Messages::WebPageProxy::LogDiagnosticMessageWithValue::name()) {
1268 IPC::handleMessage<Messages::WebPageProxy::LogDiagnosticMessageWithValue>(decoder, this, &WebPageProxy::logDiagnosticMessageWithValue);
1269 return;
1270 }
1271 if (decoder.messageName() == Messages::WebPageProxy::LogDiagnosticMessageWithEnhancedPrivacy::name()) {
1272 IPC::handleMessage<Messages::WebPageProxy::LogDiagnosticMessageWithEnhancedPrivacy>(decoder, this, &WebPageProxy::logDiagnosticMessageWithEnhancedPrivacy);
1273 return;
1274 }
1275 if (decoder.messageName() == Messages::WebPageProxy::LogDiagnosticMessageWithValueDictionary::name()) {
1276 IPC::handleMessage<Messages::WebPageProxy::LogDiagnosticMessageWithValueDictionary>(decoder, this, &WebPageProxy::logDiagnosticMessageWithValueDictionary);
1277 return;
1278 }
1279 if (decoder.messageName() == Messages::WebPageProxy::LogScrollingEvent::name()) {
1280 IPC::handleMessage<Messages::WebPageProxy::LogScrollingEvent>(decoder, this, &WebPageProxy::logScrollingEvent);
1281 return;
1282 }
1283 if (decoder.messageName() == Messages::WebPageProxy::EditorStateChanged::name()) {
1284 IPC::handleMessage<Messages::WebPageProxy::EditorStateChanged>(decoder, this, &WebPageProxy::editorStateChanged);
1285 return;
1286 }
1287 if (decoder.messageName() == Messages::WebPageProxy::CompositionWasCanceled::name()) {
1288 IPC::handleMessage<Messages::WebPageProxy::CompositionWasCanceled>(decoder, this, &WebPageProxy::compositionWasCanceled);
1289 return;
1290 }
1291 if (decoder.messageName() == Messages::WebPageProxy::SetHasHadSelectionChangesFromUserInteraction::name()) {
1292 IPC::handleMessage<Messages::WebPageProxy::SetHasHadSelectionChangesFromUserInteraction>(decoder, this, &WebPageProxy::setHasHadSelectionChangesFromUserInteraction);
1293 return;
1294 }
1295 if (decoder.messageName() == Messages::WebPageProxy::SetIsTouchBarUpdateSupressedForHiddenContentEditable::name()) {
1296 IPC::handleMessage<Messages::WebPageProxy::SetIsTouchBarUpdateSupressedForHiddenContentEditable>(decoder, this, &WebPageProxy::setIsTouchBarUpdateSupressedForHiddenContentEditable);
1297 return;
1298 }
1299 if (decoder.messageName() == Messages::WebPageProxy::SetIsNeverRichlyEditableForTouchBar::name()) {
1300 IPC::handleMessage<Messages::WebPageProxy::SetIsNeverRichlyEditableForTouchBar>(decoder, this, &WebPageProxy::setIsNeverRichlyEditableForTouchBar);
1301 return;
1302 }
1303 if (decoder.messageName() == Messages::WebPageProxy::DidCountStringMatches::name()) {
1304 IPC::handleMessage<Messages::WebPageProxy::DidCountStringMatches>(decoder, this, &WebPageProxy::didCountStringMatches);
1305 return;
1306 }
1307 if (decoder.messageName() == Messages::WebPageProxy::SetTextIndicator::name()) {
1308 IPC::handleMessage<Messages::WebPageProxy::SetTextIndicator>(decoder, this, &WebPageProxy::setTextIndicator);
1309 return;
1310 }
1311 if (decoder.messageName() == Messages::WebPageProxy::ClearTextIndicator::name()) {
1312 IPC::handleMessage<Messages::WebPageProxy::ClearTextIndicator>(decoder, this, &WebPageProxy::clearTextIndicator);
1313 return;
1314 }
1315 if (decoder.messageName() == Messages::WebPageProxy::DidFindString::name()) {
1316 IPC::handleMessage<Messages::WebPageProxy::DidFindString>(decoder, this, &WebPageProxy::didFindString);
1317 return;
1318 }
1319 if (decoder.messageName() == Messages::WebPageProxy::DidFailToFindString::name()) {
1320 IPC::handleMessage<Messages::WebPageProxy::DidFailToFindString>(decoder, this, &WebPageProxy::didFailToFindString);
1321 return;
1322 }
1323 if (decoder.messageName() == Messages::WebPageProxy::DidFindStringMatches::name()) {
1324 IPC::handleMessage<Messages::WebPageProxy::DidFindStringMatches>(decoder, this, &WebPageProxy::didFindStringMatches);
1325 return;
1326 }
1327 if (decoder.messageName() == Messages::WebPageProxy::DidGetImageForFindMatch::name()) {
1328 IPC::handleMessage<Messages::WebPageProxy::DidGetImageForFindMatch>(decoder, this, &WebPageProxy::didGetImageForFindMatch);
1329 return;
1330 }
1331 if (decoder.messageName() == Messages::WebPageProxy::ShowPopupMenu::name()) {
1332 IPC::handleMessage<Messages::WebPageProxy::ShowPopupMenu>(decoder, this, &WebPageProxy::showPopupMenu);
1333 return;
1334 }
1335 if (decoder.messageName() == Messages::WebPageProxy::HidePopupMenu::name()) {
1336 IPC::handleMessage<Messages::WebPageProxy::HidePopupMenu>(decoder, this, &WebPageProxy::hidePopupMenu);
1337 return;
1338 }
1339#if ENABLE(CONTEXT_MENUS)
1340 if (decoder.messageName() == Messages::WebPageProxy::ShowContextMenu::name()) {
1341 IPC::handleMessage<Messages::WebPageProxy::ShowContextMenu>(decoder, this, &WebPageProxy::showContextMenu);
1342 return;
1343 }
1344#endif
1345 if (decoder.messageName() == Messages::WebPageProxy::RequestGeolocationPermissionForFrame::name()) {
1346 IPC::handleMessage<Messages::WebPageProxy::RequestGeolocationPermissionForFrame>(decoder, this, &WebPageProxy::requestGeolocationPermissionForFrame);
1347 return;
1348 }
1349#if ENABLE(MEDIA_STREAM)
1350 if (decoder.messageName() == Messages::WebPageProxy::RequestUserMediaPermissionForFrame::name()) {
1351 IPC::handleMessage<Messages::WebPageProxy::RequestUserMediaPermissionForFrame>(decoder, this, &WebPageProxy::requestUserMediaPermissionForFrame);
1352 return;
1353 }
1354#endif
1355#if ENABLE(MEDIA_STREAM)
1356 if (decoder.messageName() == Messages::WebPageProxy::EnumerateMediaDevicesForFrame::name()) {
1357 IPC::handleMessage<Messages::WebPageProxy::EnumerateMediaDevicesForFrame>(decoder, this, &WebPageProxy::enumerateMediaDevicesForFrame);
1358 return;
1359 }
1360#endif
1361#if ENABLE(MEDIA_STREAM)
1362 if (decoder.messageName() == Messages::WebPageProxy::BeginMonitoringCaptureDevices::name()) {
1363 IPC::handleMessage<Messages::WebPageProxy::BeginMonitoringCaptureDevices>(decoder, this, &WebPageProxy::beginMonitoringCaptureDevices);
1364 return;
1365 }
1366#endif
1367 if (decoder.messageName() == Messages::WebPageProxy::RequestNotificationPermission::name()) {
1368 IPC::handleMessage<Messages::WebPageProxy::RequestNotificationPermission>(decoder, this, &WebPageProxy::requestNotificationPermission);
1369 return;
1370 }
1371 if (decoder.messageName() == Messages::WebPageProxy::ShowNotification::name()) {
1372 IPC::handleMessage<Messages::WebPageProxy::ShowNotification>(decoder, this, &WebPageProxy::showNotification);
1373 return;
1374 }
1375 if (decoder.messageName() == Messages::WebPageProxy::CancelNotification::name()) {
1376 IPC::handleMessage<Messages::WebPageProxy::CancelNotification>(decoder, this, &WebPageProxy::cancelNotification);
1377 return;
1378 }
1379 if (decoder.messageName() == Messages::WebPageProxy::ClearNotifications::name()) {
1380 IPC::handleMessage<Messages::WebPageProxy::ClearNotifications>(decoder, this, &WebPageProxy::clearNotifications);
1381 return;
1382 }
1383 if (decoder.messageName() == Messages::WebPageProxy::DidDestroyNotification::name()) {
1384 IPC::handleMessage<Messages::WebPageProxy::DidDestroyNotification>(decoder, this, &WebPageProxy::didDestroyNotification);
1385 return;
1386 }
1387 if (decoder.messageName() == Messages::WebPageProxy::UpdateSpellingUIWithMisspelledWord::name()) {
1388 IPC::handleMessage<Messages::WebPageProxy::UpdateSpellingUIWithMisspelledWord>(decoder, this, &WebPageProxy::updateSpellingUIWithMisspelledWord);
1389 return;
1390 }
1391 if (decoder.messageName() == Messages::WebPageProxy::UpdateSpellingUIWithGrammarString::name()) {
1392 IPC::handleMessage<Messages::WebPageProxy::UpdateSpellingUIWithGrammarString>(decoder, this, &WebPageProxy::updateSpellingUIWithGrammarString);
1393 return;
1394 }
1395 if (decoder.messageName() == Messages::WebPageProxy::LearnWord::name()) {
1396 IPC::handleMessage<Messages::WebPageProxy::LearnWord>(decoder, this, &WebPageProxy::learnWord);
1397 return;
1398 }
1399 if (decoder.messageName() == Messages::WebPageProxy::IgnoreWord::name()) {
1400 IPC::handleMessage<Messages::WebPageProxy::IgnoreWord>(decoder, this, &WebPageProxy::ignoreWord);
1401 return;
1402 }
1403 if (decoder.messageName() == Messages::WebPageProxy::RequestCheckingOfString::name()) {
1404 IPC::handleMessage<Messages::WebPageProxy::RequestCheckingOfString>(decoder, this, &WebPageProxy::requestCheckingOfString);
1405 return;
1406 }
1407#if ENABLE(DRAG_SUPPORT)
1408 if (decoder.messageName() == Messages::WebPageProxy::DidPerformDragControllerAction::name()) {
1409 IPC::handleMessage<Messages::WebPageProxy::DidPerformDragControllerAction>(decoder, this, &WebPageProxy::didPerformDragControllerAction);
1410 return;
1411 }
1412#endif
1413#if ENABLE(DRAG_SUPPORT)
1414 if (decoder.messageName() == Messages::WebPageProxy::DidEndDragging::name()) {
1415 IPC::handleMessage<Messages::WebPageProxy::DidEndDragging>(decoder, this, &WebPageProxy::didEndDragging);
1416 return;
1417 }
1418#endif
1419#if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
1420 if (decoder.messageName() == Messages::WebPageProxy::StartDrag::name()) {
1421 IPC::handleMessage<Messages::WebPageProxy::StartDrag>(decoder, this, &WebPageProxy::startDrag);
1422 return;
1423 }
1424#endif
1425#if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
1426 if (decoder.messageName() == Messages::WebPageProxy::SetPromisedDataForImage::name()) {
1427 IPC::handleMessage<Messages::WebPageProxy::SetPromisedDataForImage>(decoder, this, &WebPageProxy::setPromisedDataForImage);
1428 return;
1429 }
1430#endif
1431#if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
1432 if (decoder.messageName() == Messages::WebPageProxy::StartDrag::name()) {
1433 IPC::handleMessage<Messages::WebPageProxy::StartDrag>(decoder, this, &WebPageProxy::startDrag);
1434 return;
1435 }
1436#endif
1437#if ENABLE(DRAG_SUPPORT)
1438 if (decoder.messageName() == Messages::WebPageProxy::DidPerformDragOperation::name()) {
1439 IPC::handleMessage<Messages::WebPageProxy::DidPerformDragOperation>(decoder, this, &WebPageProxy::didPerformDragOperation);
1440 return;
1441 }
1442#endif
1443#if ENABLE(DATA_INTERACTION)
1444 if (decoder.messageName() == Messages::WebPageProxy::DidHandleDragStartRequest::name()) {
1445 IPC::handleMessage<Messages::WebPageProxy::DidHandleDragStartRequest>(decoder, this, &WebPageProxy::didHandleDragStartRequest);
1446 return;
1447 }
1448#endif
1449#if ENABLE(DATA_INTERACTION)
1450 if (decoder.messageName() == Messages::WebPageProxy::DidHandleAdditionalDragItemsRequest::name()) {
1451 IPC::handleMessage<Messages::WebPageProxy::DidHandleAdditionalDragItemsRequest>(decoder, this, &WebPageProxy::didHandleAdditionalDragItemsRequest);
1452 return;
1453 }
1454#endif
1455#if ENABLE(DATA_INTERACTION)
1456 if (decoder.messageName() == Messages::WebPageProxy::WillReceiveEditDragSnapshot::name()) {
1457 IPC::handleMessage<Messages::WebPageProxy::WillReceiveEditDragSnapshot>(decoder, this, &WebPageProxy::willReceiveEditDragSnapshot);
1458 return;
1459 }
1460#endif
1461#if ENABLE(DATA_INTERACTION)
1462 if (decoder.messageName() == Messages::WebPageProxy::DidReceiveEditDragSnapshot::name()) {
1463 IPC::handleMessage<Messages::WebPageProxy::DidReceiveEditDragSnapshot>(decoder, this, &WebPageProxy::didReceiveEditDragSnapshot);
1464 return;
1465 }
1466#endif
1467#if PLATFORM(COCOA)
1468 if (decoder.messageName() == Messages::WebPageProxy::DidPerformDictionaryLookup::name()) {
1469 IPC::handleMessage<Messages::WebPageProxy::DidPerformDictionaryLookup>(decoder, this, &WebPageProxy::didPerformDictionaryLookup);
1470 return;
1471 }
1472#endif
1473#if PLATFORM(COCOA)
1474 if (decoder.messageName() == Messages::WebPageProxy::RegisterWebProcessAccessibilityToken::name()) {
1475 IPC::handleMessage<Messages::WebPageProxy::RegisterWebProcessAccessibilityToken>(decoder, this, &WebPageProxy::registerWebProcessAccessibilityToken);
1476 return;
1477 }
1478#endif
1479#if PLATFORM(COCOA)
1480 if (decoder.messageName() == Messages::WebPageProxy::PluginFocusOrWindowFocusChanged::name()) {
1481 IPC::handleMessage<Messages::WebPageProxy::PluginFocusOrWindowFocusChanged>(decoder, this, &WebPageProxy::pluginFocusOrWindowFocusChanged);
1482 return;
1483 }
1484#endif
1485#if PLATFORM(COCOA)
1486 if (decoder.messageName() == Messages::WebPageProxy::SetPluginComplexTextInputState::name()) {
1487 IPC::handleMessage<Messages::WebPageProxy::SetPluginComplexTextInputState>(decoder, this, &WebPageProxy::setPluginComplexTextInputState);
1488 return;
1489 }
1490#endif
1491#if PLATFORM(COCOA)
1492 if (decoder.messageName() == Messages::WebPageProxy::Speak::name()) {
1493 IPC::handleMessage<Messages::WebPageProxy::Speak>(decoder, this, &WebPageProxy::speak);
1494 return;
1495 }
1496#endif
1497#if PLATFORM(COCOA)
1498 if (decoder.messageName() == Messages::WebPageProxy::StopSpeaking::name()) {
1499 IPC::handleMessage<Messages::WebPageProxy::StopSpeaking>(decoder, this, &WebPageProxy::stopSpeaking);
1500 return;
1501 }
1502#endif
1503#if PLATFORM(COCOA)
1504 if (decoder.messageName() == Messages::WebPageProxy::MakeFirstResponder::name()) {
1505 IPC::handleMessage<Messages::WebPageProxy::MakeFirstResponder>(decoder, this, &WebPageProxy::makeFirstResponder);
1506 return;
1507 }
1508#endif
1509#if PLATFORM(COCOA)
1510 if (decoder.messageName() == Messages::WebPageProxy::AssistiveTechnologyMakeFirstResponder::name()) {
1511 IPC::handleMessage<Messages::WebPageProxy::AssistiveTechnologyMakeFirstResponder>(decoder, this, &WebPageProxy::assistiveTechnologyMakeFirstResponder);
1512 return;
1513 }
1514#endif
1515#if PLATFORM(COCOA)
1516 if (decoder.messageName() == Messages::WebPageProxy::SearchWithSpotlight::name()) {
1517 IPC::handleMessage<Messages::WebPageProxy::SearchWithSpotlight>(decoder, this, &WebPageProxy::searchWithSpotlight);
1518 return;
1519 }
1520#endif
1521#if PLATFORM(COCOA)
1522 if (decoder.messageName() == Messages::WebPageProxy::SearchTheWeb::name()) {
1523 IPC::handleMessage<Messages::WebPageProxy::SearchTheWeb>(decoder, this, &WebPageProxy::searchTheWeb);
1524 return;
1525 }
1526#endif
1527#if PLATFORM(COCOA)
1528 if (decoder.messageName() == Messages::WebPageProxy::TouchBarMenuDataChanged::name()) {
1529 IPC::handleMessage<Messages::WebPageProxy::TouchBarMenuDataChanged>(decoder, this, &WebPageProxy::touchBarMenuDataChanged);
1530 return;
1531 }
1532#endif
1533#if PLATFORM(COCOA)
1534 if (decoder.messageName() == Messages::WebPageProxy::TouchBarMenuItemDataAdded::name()) {
1535 IPC::handleMessage<Messages::WebPageProxy::TouchBarMenuItemDataAdded>(decoder, this, &WebPageProxy::touchBarMenuItemDataAdded);
1536 return;
1537 }
1538#endif
1539#if PLATFORM(COCOA)
1540 if (decoder.messageName() == Messages::WebPageProxy::TouchBarMenuItemDataRemoved::name()) {
1541 IPC::handleMessage<Messages::WebPageProxy::TouchBarMenuItemDataRemoved>(decoder, this, &WebPageProxy::touchBarMenuItemDataRemoved);
1542 return;
1543 }
1544#endif
1545#if USE(AUTOMATIC_TEXT_REPLACEMENT)
1546 if (decoder.messageName() == Messages::WebPageProxy::toggleSmartInsertDelete::name()) {
1547 IPC::handleMessage<Messages::WebPageProxy::toggleSmartInsertDelete>(decoder, this, &WebPageProxy::toggleSmartInsertDelete);
1548 return;
1549 }
1550#endif
1551#if USE(AUTOMATIC_TEXT_REPLACEMENT)
1552 if (decoder.messageName() == Messages::WebPageProxy::toggleAutomaticQuoteSubstitution::name()) {
1553 IPC::handleMessage<Messages::WebPageProxy::toggleAutomaticQuoteSubstitution>(decoder, this, &WebPageProxy::toggleAutomaticQuoteSubstitution);
1554 return;
1555 }
1556#endif
1557#if USE(AUTOMATIC_TEXT_REPLACEMENT)
1558 if (decoder.messageName() == Messages::WebPageProxy::toggleAutomaticLinkDetection::name()) {
1559 IPC::handleMessage<Messages::WebPageProxy::toggleAutomaticLinkDetection>(decoder, this, &WebPageProxy::toggleAutomaticLinkDetection);
1560 return;
1561 }
1562#endif
1563#if USE(AUTOMATIC_TEXT_REPLACEMENT)
1564 if (decoder.messageName() == Messages::WebPageProxy::toggleAutomaticDashSubstitution::name()) {
1565 IPC::handleMessage<Messages::WebPageProxy::toggleAutomaticDashSubstitution>(decoder, this, &WebPageProxy::toggleAutomaticDashSubstitution);
1566 return;
1567 }
1568#endif
1569#if USE(AUTOMATIC_TEXT_REPLACEMENT)
1570 if (decoder.messageName() == Messages::WebPageProxy::toggleAutomaticTextReplacement::name()) {
1571 IPC::handleMessage<Messages::WebPageProxy::toggleAutomaticTextReplacement>(decoder, this, &WebPageProxy::toggleAutomaticTextReplacement);
1572 return;
1573 }
1574#endif
1575#if PLATFORM(MAC)
1576 if (decoder.messageName() == Messages::WebPageProxy::ShowCorrectionPanel::name()) {
1577 IPC::handleMessage<Messages::WebPageProxy::ShowCorrectionPanel>(decoder, this, &WebPageProxy::showCorrectionPanel);
1578 return;
1579 }
1580#endif
1581#if PLATFORM(MAC)
1582 if (decoder.messageName() == Messages::WebPageProxy::DismissCorrectionPanel::name()) {
1583 IPC::handleMessage<Messages::WebPageProxy::DismissCorrectionPanel>(decoder, this, &WebPageProxy::dismissCorrectionPanel);
1584 return;
1585 }
1586#endif
1587#if PLATFORM(MAC)
1588 if (decoder.messageName() == Messages::WebPageProxy::RecordAutocorrectionResponse::name()) {
1589 IPC::handleMessage<Messages::WebPageProxy::RecordAutocorrectionResponse>(decoder, this, &WebPageProxy::recordAutocorrectionResponse);
1590 return;
1591 }
1592#endif
1593#if PLATFORM(MAC)
1594 if (decoder.messageName() == Messages::WebPageProxy::SetEditableElementIsFocused::name()) {
1595 IPC::handleMessage<Messages::WebPageProxy::SetEditableElementIsFocused>(decoder, this, &WebPageProxy::setEditableElementIsFocused);
1596 return;
1597 }
1598#endif
1599#if USE(DICTATION_ALTERNATIVES)
1600 if (decoder.messageName() == Messages::WebPageProxy::ShowDictationAlternativeUI::name()) {
1601 IPC::handleMessage<Messages::WebPageProxy::ShowDictationAlternativeUI>(decoder, this, &WebPageProxy::showDictationAlternativeUI);
1602 return;
1603 }
1604#endif
1605#if USE(DICTATION_ALTERNATIVES)
1606 if (decoder.messageName() == Messages::WebPageProxy::RemoveDictationAlternatives::name()) {
1607 IPC::handleMessage<Messages::WebPageProxy::RemoveDictationAlternatives>(decoder, this, &WebPageProxy::removeDictationAlternatives);
1608 return;
1609 }
1610#endif
1611#if PLATFORM(X11)
1612 if (decoder.messageName() == Messages::WebPageProxy::WindowedPluginGeometryDidChange::name()) {
1613 IPC::handleMessage<Messages::WebPageProxy::WindowedPluginGeometryDidChange>(decoder, this, &WebPageProxy::windowedPluginGeometryDidChange);
1614 return;
1615 }
1616#endif
1617#if PLATFORM(X11)
1618 if (decoder.messageName() == Messages::WebPageProxy::WindowedPluginVisibilityDidChange::name()) {
1619 IPC::handleMessage<Messages::WebPageProxy::WindowedPluginVisibilityDidChange>(decoder, this, &WebPageProxy::windowedPluginVisibilityDidChange);
1620 return;
1621 }
1622#endif
1623#if PLATFORM(IOS_FAMILY)
1624 if (decoder.messageName() == Messages::WebPageProxy::CouldNotRestorePageState::name()) {
1625 IPC::handleMessage<Messages::WebPageProxy::CouldNotRestorePageState>(decoder, this, &WebPageProxy::couldNotRestorePageState);
1626 return;
1627 }
1628#endif
1629#if PLATFORM(IOS_FAMILY)
1630 if (decoder.messageName() == Messages::WebPageProxy::RestorePageState::name()) {
1631 IPC::handleMessage<Messages::WebPageProxy::RestorePageState>(decoder, this, &WebPageProxy::restorePageState);
1632 return;
1633 }
1634#endif
1635#if PLATFORM(IOS_FAMILY)
1636 if (decoder.messageName() == Messages::WebPageProxy::RestorePageCenterAndScale::name()) {
1637 IPC::handleMessage<Messages::WebPageProxy::RestorePageCenterAndScale>(decoder, this, &WebPageProxy::restorePageCenterAndScale);
1638 return;
1639 }
1640#endif
1641#if PLATFORM(IOS_FAMILY)
1642 if (decoder.messageName() == Messages::WebPageProxy::DidGetTapHighlightGeometries::name()) {
1643 IPC::handleMessage<Messages::WebPageProxy::DidGetTapHighlightGeometries>(decoder, this, &WebPageProxy::didGetTapHighlightGeometries);
1644 return;
1645 }
1646#endif
1647#if PLATFORM(IOS_FAMILY)
1648 if (decoder.messageName() == Messages::WebPageProxy::ElementDidFocus::name()) {
1649 IPC::handleMessage<Messages::WebPageProxy::ElementDidFocus>(decoder, this, &WebPageProxy::elementDidFocus);
1650 return;
1651 }
1652#endif
1653#if PLATFORM(IOS_FAMILY)
1654 if (decoder.messageName() == Messages::WebPageProxy::ElementDidBlur::name()) {
1655 IPC::handleMessage<Messages::WebPageProxy::ElementDidBlur>(decoder, this, &WebPageProxy::elementDidBlur);
1656 return;
1657 }
1658#endif
1659#if PLATFORM(IOS_FAMILY)
1660 if (decoder.messageName() == Messages::WebPageProxy::FocusedElementDidChangeInputMode::name()) {
1661 IPC::handleMessage<Messages::WebPageProxy::FocusedElementDidChangeInputMode>(decoder, this, &WebPageProxy::focusedElementDidChangeInputMode);
1662 return;
1663 }
1664#endif
1665#if PLATFORM(IOS_FAMILY)
1666 if (decoder.messageName() == Messages::WebPageProxy::ScrollingNodeScrollWillStartScroll::name()) {
1667 IPC::handleMessage<Messages::WebPageProxy::ScrollingNodeScrollWillStartScroll>(decoder, this, &WebPageProxy::scrollingNodeScrollWillStartScroll);
1668 return;
1669 }
1670#endif
1671#if PLATFORM(IOS_FAMILY)
1672 if (decoder.messageName() == Messages::WebPageProxy::ScrollingNodeScrollDidEndScroll::name()) {
1673 IPC::handleMessage<Messages::WebPageProxy::ScrollingNodeScrollDidEndScroll>(decoder, this, &WebPageProxy::scrollingNodeScrollDidEndScroll);
1674 return;
1675 }
1676#endif
1677#if PLATFORM(IOS_FAMILY)
1678 if (decoder.messageName() == Messages::WebPageProxy::ShowInspectorHighlight::name()) {
1679 IPC::handleMessage<Messages::WebPageProxy::ShowInspectorHighlight>(decoder, this, &WebPageProxy::showInspectorHighlight);
1680 return;
1681 }
1682#endif
1683#if PLATFORM(IOS_FAMILY)
1684 if (decoder.messageName() == Messages::WebPageProxy::HideInspectorHighlight::name()) {
1685 IPC::handleMessage<Messages::WebPageProxy::HideInspectorHighlight>(decoder, this, &WebPageProxy::hideInspectorHighlight);
1686 return;
1687 }
1688#endif
1689#if PLATFORM(IOS_FAMILY)
1690 if (decoder.messageName() == Messages::WebPageProxy::FocusedElementInformationCallback::name()) {
1691 IPC::handleMessage<Messages::WebPageProxy::FocusedElementInformationCallback>(decoder, this, &WebPageProxy::focusedElementInformationCallback);
1692 return;
1693 }
1694#endif
1695#if PLATFORM(IOS_FAMILY)
1696 if (decoder.messageName() == Messages::WebPageProxy::ShowInspectorIndication::name()) {
1697 IPC::handleMessage<Messages::WebPageProxy::ShowInspectorIndication>(decoder, this, &WebPageProxy::showInspectorIndication);
1698 return;
1699 }
1700#endif
1701#if PLATFORM(IOS_FAMILY)
1702 if (decoder.messageName() == Messages::WebPageProxy::HideInspectorIndication::name()) {
1703 IPC::handleMessage<Messages::WebPageProxy::HideInspectorIndication>(decoder, this, &WebPageProxy::hideInspectorIndication);
1704 return;
1705 }
1706#endif
1707#if PLATFORM(IOS_FAMILY)
1708 if (decoder.messageName() == Messages::WebPageProxy::EnableInspectorNodeSearch::name()) {
1709 IPC::handleMessage<Messages::WebPageProxy::EnableInspectorNodeSearch>(decoder, this, &WebPageProxy::enableInspectorNodeSearch);
1710 return;
1711 }
1712#endif
1713#if PLATFORM(IOS_FAMILY)
1714 if (decoder.messageName() == Messages::WebPageProxy::DisableInspectorNodeSearch::name()) {
1715 IPC::handleMessage<Messages::WebPageProxy::DisableInspectorNodeSearch>(decoder, this, &WebPageProxy::disableInspectorNodeSearch);
1716 return;
1717 }
1718#endif
1719#if PLATFORM(IOS_FAMILY)
1720 if (decoder.messageName() == Messages::WebPageProxy::UpdateStringForFind::name()) {
1721 IPC::handleMessage<Messages::WebPageProxy::UpdateStringForFind>(decoder, this, &WebPageProxy::updateStringForFind);
1722 return;
1723 }
1724#endif
1725#if PLATFORM(IOS_FAMILY)
1726 if (decoder.messageName() == Messages::WebPageProxy::HandleAutocorrectionContext::name()) {
1727 IPC::handleMessage<Messages::WebPageProxy::HandleAutocorrectionContext>(decoder, this, &WebPageProxy::handleAutocorrectionContext);
1728 return;
1729 }
1730#endif
1731 if (decoder.messageName() == Messages::WebPageProxy::DidChangeInspectorFrontendCount::name()) {
1732 IPC::handleMessage<Messages::WebPageProxy::DidChangeInspectorFrontendCount>(decoder, this, &WebPageProxy::didChangeInspectorFrontendCount);
1733 return;
1734 }
1735 if (decoder.messageName() == Messages::WebPageProxy::CreateInspectorTarget::name()) {
1736 IPC::handleMessage<Messages::WebPageProxy::CreateInspectorTarget>(decoder, this, &WebPageProxy::createInspectorTarget);
1737 return;
1738 }
1739 if (decoder.messageName() == Messages::WebPageProxy::DestroyInspectorTarget::name()) {
1740 IPC::handleMessage<Messages::WebPageProxy::DestroyInspectorTarget>(decoder, this, &WebPageProxy::destroyInspectorTarget);
1741 return;
1742 }
1743 if (decoder.messageName() == Messages::WebPageProxy::SendMessageToInspectorFrontend::name()) {
1744 IPC::handleMessage<Messages::WebPageProxy::SendMessageToInspectorFrontend>(decoder, this, &WebPageProxy::sendMessageToInspectorFrontend);
1745 return;
1746 }
1747 if (decoder.messageName() == Messages::WebPageProxy::SaveRecentSearches::name()) {
1748 IPC::handleMessage<Messages::WebPageProxy::SaveRecentSearches>(decoder, this, &WebPageProxy::saveRecentSearches);
1749 return;
1750 }
1751 if (decoder.messageName() == Messages::WebPageProxy::SavePDFToFileInDownloadsFolder::name()) {
1752 IPC::handleMessage<Messages::WebPageProxy::SavePDFToFileInDownloadsFolder>(decoder, this, &WebPageProxy::savePDFToFileInDownloadsFolder);
1753 return;
1754 }
1755#if PLATFORM(COCOA)
1756 if (decoder.messageName() == Messages::WebPageProxy::SavePDFToTemporaryFolderAndOpenWithNativeApplication::name()) {
1757 IPC::handleMessage<Messages::WebPageProxy::SavePDFToTemporaryFolderAndOpenWithNativeApplication>(decoder, this, &WebPageProxy::savePDFToTemporaryFolderAndOpenWithNativeApplication);
1758 return;
1759 }
1760#endif
1761#if PLATFORM(COCOA)
1762 if (decoder.messageName() == Messages::WebPageProxy::OpenPDFFromTemporaryFolderWithNativeApplication::name()) {
1763 IPC::handleMessage<Messages::WebPageProxy::OpenPDFFromTemporaryFolderWithNativeApplication>(decoder, this, &WebPageProxy::openPDFFromTemporaryFolderWithNativeApplication);
1764 return;
1765 }
1766#endif
1767 if (decoder.messageName() == Messages::WebPageProxy::DidUpdateActivityState::name()) {
1768 IPC::handleMessage<Messages::WebPageProxy::DidUpdateActivityState>(decoder, this, &WebPageProxy::didUpdateActivityState);
1769 return;
1770 }
1771 if (decoder.messageName() == Messages::WebPageProxy::DidSaveToPageCache::name()) {
1772 IPC::handleMessage<Messages::WebPageProxy::DidSaveToPageCache>(decoder, this, &WebPageProxy::didSaveToPageCache);
1773 return;
1774 }
1775#if (ENABLE(TELEPHONE_NUMBER_DETECTION) && PLATFORM(MAC))
1776 if (decoder.messageName() == Messages::WebPageProxy::ShowTelephoneNumberMenu::name()) {
1777 IPC::handleMessage<Messages::WebPageProxy::ShowTelephoneNumberMenu>(decoder, this, &WebPageProxy::showTelephoneNumberMenu);
1778 return;
1779 }
1780#endif
1781#if USE(QUICK_LOOK)
1782 if (decoder.messageName() == Messages::WebPageProxy::DidStartLoadForQuickLookDocumentInMainFrame::name()) {
1783 IPC::handleMessage<Messages::WebPageProxy::DidStartLoadForQuickLookDocumentInMainFrame>(decoder, this, &WebPageProxy::didStartLoadForQuickLookDocumentInMainFrame);
1784 return;
1785 }
1786#endif
1787#if USE(QUICK_LOOK)
1788 if (decoder.messageName() == Messages::WebPageProxy::DidFinishLoadForQuickLookDocumentInMainFrame::name()) {
1789 IPC::handleMessage<Messages::WebPageProxy::DidFinishLoadForQuickLookDocumentInMainFrame>(decoder, this, &WebPageProxy::didFinishLoadForQuickLookDocumentInMainFrame);
1790 return;
1791 }
1792#endif
1793#if USE(QUICK_LOOK)
1794 if (decoder.messageName() == Messages::WebPageProxy::DidRequestPasswordForQuickLookDocumentInMainFrame::name()) {
1795 IPC::handleMessage<Messages::WebPageProxy::DidRequestPasswordForQuickLookDocumentInMainFrame>(decoder, this, &WebPageProxy::didRequestPasswordForQuickLookDocumentInMainFrame);
1796 return;
1797 }
1798#endif
1799#if ENABLE(CONTENT_FILTERING)
1800 if (decoder.messageName() == Messages::WebPageProxy::ContentFilterDidBlockLoadForFrame::name()) {
1801 IPC::handleMessage<Messages::WebPageProxy::ContentFilterDidBlockLoadForFrame>(decoder, this, &WebPageProxy::contentFilterDidBlockLoadForFrame);
1802 return;
1803 }
1804#endif
1805 if (decoder.messageName() == Messages::WebPageProxy::IsPlayingMediaDidChange::name()) {
1806 IPC::handleMessage<Messages::WebPageProxy::IsPlayingMediaDidChange>(decoder, this, &WebPageProxy::isPlayingMediaDidChange);
1807 return;
1808 }
1809 if (decoder.messageName() == Messages::WebPageProxy::HandleAutoplayEvent::name()) {
1810 IPC::handleMessage<Messages::WebPageProxy::HandleAutoplayEvent>(decoder, this, &WebPageProxy::handleAutoplayEvent);
1811 return;
1812 }
1813#if ENABLE(MEDIA_SESSION)
1814 if (decoder.messageName() == Messages::WebPageProxy::HasMediaSessionWithActiveMediaElementsDidChange::name()) {
1815 IPC::handleMessage<Messages::WebPageProxy::HasMediaSessionWithActiveMediaElementsDidChange>(decoder, this, &WebPageProxy::hasMediaSessionWithActiveMediaElementsDidChange);
1816 return;
1817 }
1818#endif
1819#if ENABLE(MEDIA_SESSION)
1820 if (decoder.messageName() == Messages::WebPageProxy::MediaSessionMetadataDidChange::name()) {
1821 IPC::handleMessage<Messages::WebPageProxy::MediaSessionMetadataDidChange>(decoder, this, &WebPageProxy::mediaSessionMetadataDidChange);
1822 return;
1823 }
1824#endif
1825#if ENABLE(MEDIA_SESSION)
1826 if (decoder.messageName() == Messages::WebPageProxy::FocusedContentMediaElementDidChange::name()) {
1827 IPC::handleMessage<Messages::WebPageProxy::FocusedContentMediaElementDidChange>(decoder, this, &WebPageProxy::focusedContentMediaElementDidChange);
1828 return;
1829 }
1830#endif
1831#if PLATFORM(MAC)
1832 if (decoder.messageName() == Messages::WebPageProxy::DidPerformImmediateActionHitTest::name()) {
1833 IPC::handleMessage<Messages::WebPageProxy::DidPerformImmediateActionHitTest>(decoder, this, &WebPageProxy::didPerformImmediateActionHitTest);
1834 return;
1835 }
1836#endif
1837 if (decoder.messageName() == Messages::WebPageProxy::HandleMessage::name()) {
1838 IPC::handleMessage<Messages::WebPageProxy::HandleMessage>(connection, decoder, this, &WebPageProxy::handleMessage);
1839 return;
1840 }
1841 if (decoder.messageName() == Messages::WebPageProxy::HandleAutoFillButtonClick::name()) {
1842 IPC::handleMessage<Messages::WebPageProxy::HandleAutoFillButtonClick>(decoder, this, &WebPageProxy::handleAutoFillButtonClick);
1843 return;
1844 }
1845 if (decoder.messageName() == Messages::WebPageProxy::DidResignInputElementStrongPasswordAppearance::name()) {
1846 IPC::handleMessage<Messages::WebPageProxy::DidResignInputElementStrongPasswordAppearance>(decoder, this, &WebPageProxy::didResignInputElementStrongPasswordAppearance);
1847 return;
1848 }
1849 if (decoder.messageName() == Messages::WebPageProxy::ContentRuleListNotification::name()) {
1850 IPC::handleMessage<Messages::WebPageProxy::ContentRuleListNotification>(decoder, this, &WebPageProxy::contentRuleListNotification);
1851 return;
1852 }
1853#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1854 if (decoder.messageName() == Messages::WebPageProxy::AddPlaybackTargetPickerClient::name()) {
1855 IPC::handleMessage<Messages::WebPageProxy::AddPlaybackTargetPickerClient>(decoder, this, &WebPageProxy::addPlaybackTargetPickerClient);
1856 return;
1857 }
1858#endif
1859#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1860 if (decoder.messageName() == Messages::WebPageProxy::RemovePlaybackTargetPickerClient::name()) {
1861 IPC::handleMessage<Messages::WebPageProxy::RemovePlaybackTargetPickerClient>(decoder, this, &WebPageProxy::removePlaybackTargetPickerClient);
1862 return;
1863 }
1864#endif
1865#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1866 if (decoder.messageName() == Messages::WebPageProxy::ShowPlaybackTargetPicker::name()) {
1867 IPC::handleMessage<Messages::WebPageProxy::ShowPlaybackTargetPicker>(decoder, this, &WebPageProxy::showPlaybackTargetPicker);
1868 return;
1869 }
1870#endif
1871#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1872 if (decoder.messageName() == Messages::WebPageProxy::PlaybackTargetPickerClientStateDidChange::name()) {
1873 IPC::handleMessage<Messages::WebPageProxy::PlaybackTargetPickerClientStateDidChange>(decoder, this, &WebPageProxy::playbackTargetPickerClientStateDidChange);
1874 return;
1875 }
1876#endif
1877#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1878 if (decoder.messageName() == Messages::WebPageProxy::SetMockMediaPlaybackTargetPickerEnabled::name()) {
1879 IPC::handleMessage<Messages::WebPageProxy::SetMockMediaPlaybackTargetPickerEnabled>(decoder, this, &WebPageProxy::setMockMediaPlaybackTargetPickerEnabled);
1880 return;
1881 }
1882#endif
1883#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1884 if (decoder.messageName() == Messages::WebPageProxy::SetMockMediaPlaybackTargetPickerState::name()) {
1885 IPC::handleMessage<Messages::WebPageProxy::SetMockMediaPlaybackTargetPickerState>(decoder, this, &WebPageProxy::setMockMediaPlaybackTargetPickerState);
1886 return;
1887 }
1888#endif
1889#if ENABLE(POINTER_LOCK)
1890 if (decoder.messageName() == Messages::WebPageProxy::RequestPointerLock::name()) {
1891 IPC::handleMessage<Messages::WebPageProxy::RequestPointerLock>(decoder, this, &WebPageProxy::requestPointerLock);
1892 return;
1893 }
1894#endif
1895#if ENABLE(POINTER_LOCK)
1896 if (decoder.messageName() == Messages::WebPageProxy::RequestPointerUnlock::name()) {
1897 IPC::handleMessage<Messages::WebPageProxy::RequestPointerUnlock>(decoder, this, &WebPageProxy::requestPointerUnlock);
1898 return;
1899 }
1900#endif
1901 if (decoder.messageName() == Messages::WebPageProxy::DidFailToSuspendAfterProcessSwap::name()) {
1902 IPC::handleMessage<Messages::WebPageProxy::DidFailToSuspendAfterProcessSwap>(decoder, this, &WebPageProxy::didFailToSuspendAfterProcessSwap);
1903 return;
1904 }
1905 if (decoder.messageName() == Messages::WebPageProxy::DidSuspendAfterProcessSwap::name()) {
1906 IPC::handleMessage<Messages::WebPageProxy::DidSuspendAfterProcessSwap>(decoder, this, &WebPageProxy::didSuspendAfterProcessSwap);
1907 return;
1908 }
1909 if (decoder.messageName() == Messages::WebPageProxy::ImageOrMediaDocumentSizeChanged::name()) {
1910 IPC::handleMessage<Messages::WebPageProxy::ImageOrMediaDocumentSizeChanged>(decoder, this, &WebPageProxy::imageOrMediaDocumentSizeChanged);
1911 return;
1912 }
1913 if (decoder.messageName() == Messages::WebPageProxy::UseFixedLayoutDidChange::name()) {
1914 IPC::handleMessage<Messages::WebPageProxy::UseFixedLayoutDidChange>(decoder, this, &WebPageProxy::useFixedLayoutDidChange);
1915 return;
1916 }
1917 if (decoder.messageName() == Messages::WebPageProxy::FixedLayoutSizeDidChange::name()) {
1918 IPC::handleMessage<Messages::WebPageProxy::FixedLayoutSizeDidChange>(decoder, this, &WebPageProxy::fixedLayoutSizeDidChange);
1919 return;
1920 }
1921#if ENABLE(VIDEO) && USE(GSTREAMER)
1922 if (decoder.messageName() == Messages::WebPageProxy::RequestInstallMissingMediaPlugins::name()) {
1923 IPC::handleMessage<Messages::WebPageProxy::RequestInstallMissingMediaPlugins>(decoder, this, &WebPageProxy::requestInstallMissingMediaPlugins);
1924 return;
1925 }
1926#endif
1927 if (decoder.messageName() == Messages::WebPageProxy::DidRestoreScrollPosition::name()) {
1928 IPC::handleMessage<Messages::WebPageProxy::DidRestoreScrollPosition>(decoder, this, &WebPageProxy::didRestoreScrollPosition);
1929 return;
1930 }
1931 if (decoder.messageName() == Messages::WebPageProxy::GetLoadDecisionForIcon::name()) {
1932 IPC::handleMessage<Messages::WebPageProxy::GetLoadDecisionForIcon>(decoder, this, &WebPageProxy::getLoadDecisionForIcon);
1933 return;
1934 }
1935 if (decoder.messageName() == Messages::WebPageProxy::FinishedLoadingIcon::name()) {
1936 IPC::handleMessage<Messages::WebPageProxy::FinishedLoadingIcon>(decoder, this, &WebPageProxy::finishedLoadingIcon);
1937 return;
1938 }
1939#if PLATFORM(MAC)
1940 if (decoder.messageName() == Messages::WebPageProxy::DidHandleAcceptedCandidate::name()) {
1941 IPC::handleMessage<Messages::WebPageProxy::DidHandleAcceptedCandidate>(decoder, this, &WebPageProxy::didHandleAcceptedCandidate);
1942 return;
1943 }
1944#endif
1945 if (decoder.messageName() == Messages::WebPageProxy::SetIsUsingHighPerformanceWebGL::name()) {
1946 IPC::handleMessage<Messages::WebPageProxy::SetIsUsingHighPerformanceWebGL>(decoder, this, &WebPageProxy::setIsUsingHighPerformanceWebGL);
1947 return;
1948 }
1949 if (decoder.messageName() == Messages::WebPageProxy::StartURLSchemeTask::name()) {
1950 IPC::handleMessage<Messages::WebPageProxy::StartURLSchemeTask>(decoder, this, &WebPageProxy::startURLSchemeTask);
1951 return;
1952 }
1953 if (decoder.messageName() == Messages::WebPageProxy::StopURLSchemeTask::name()) {
1954 IPC::handleMessage<Messages::WebPageProxy::StopURLSchemeTask>(decoder, this, &WebPageProxy::stopURLSchemeTask);
1955 return;
1956 }
1957#if ENABLE(DEVICE_ORIENTATION)
1958 if (decoder.messageName() == Messages::WebPageProxy::ShouldAllowDeviceOrientationAndMotionAccess::name()) {
1959 IPC::handleMessageAsync<Messages::WebPageProxy::ShouldAllowDeviceOrientationAndMotionAccess>(connection, decoder, this, &WebPageProxy::shouldAllowDeviceOrientationAndMotionAccess);
1960 return;
1961 }
1962#endif
1963#if ENABLE(ATTACHMENT_ELEMENT)
1964 if (decoder.messageName() == Messages::WebPageProxy::RegisterAttachmentIdentifierFromData::name()) {
1965 IPC::handleMessage<Messages::WebPageProxy::RegisterAttachmentIdentifierFromData>(decoder, this, &WebPageProxy::registerAttachmentIdentifierFromData);
1966 return;
1967 }
1968#endif
1969#if ENABLE(ATTACHMENT_ELEMENT)
1970 if (decoder.messageName() == Messages::WebPageProxy::RegisterAttachmentIdentifierFromFilePath::name()) {
1971 IPC::handleMessage<Messages::WebPageProxy::RegisterAttachmentIdentifierFromFilePath>(decoder, this, &WebPageProxy::registerAttachmentIdentifierFromFilePath);
1972 return;
1973 }
1974#endif
1975#if ENABLE(ATTACHMENT_ELEMENT)
1976 if (decoder.messageName() == Messages::WebPageProxy::RegisterAttachmentIdentifier::name()) {
1977 IPC::handleMessage<Messages::WebPageProxy::RegisterAttachmentIdentifier>(decoder, this, &WebPageProxy::registerAttachmentIdentifier);
1978 return;
1979 }
1980#endif
1981#if ENABLE(ATTACHMENT_ELEMENT)
1982 if (decoder.messageName() == Messages::WebPageProxy::registerAttachmentsFromSerializedData::name()) {
1983 IPC::handleMessage<Messages::WebPageProxy::registerAttachmentsFromSerializedData>(decoder, this, &WebPageProxy::registerAttachmentsFromSerializedData);
1984 return;
1985 }
1986#endif
1987#if ENABLE(ATTACHMENT_ELEMENT)
1988 if (decoder.messageName() == Messages::WebPageProxy::CloneAttachmentData::name()) {
1989 IPC::handleMessage<Messages::WebPageProxy::CloneAttachmentData>(decoder, this, &WebPageProxy::cloneAttachmentData);
1990 return;
1991 }
1992#endif
1993#if ENABLE(ATTACHMENT_ELEMENT)
1994 if (decoder.messageName() == Messages::WebPageProxy::DidInsertAttachmentWithIdentifier::name()) {
1995 IPC::handleMessage<Messages::WebPageProxy::DidInsertAttachmentWithIdentifier>(decoder, this, &WebPageProxy::didInsertAttachmentWithIdentifier);
1996 return;
1997 }
1998#endif
1999#if ENABLE(ATTACHMENT_ELEMENT)
2000 if (decoder.messageName() == Messages::WebPageProxy::DidRemoveAttachmentWithIdentifier::name()) {
2001 IPC::handleMessage<Messages::WebPageProxy::DidRemoveAttachmentWithIdentifier>(decoder, this, &WebPageProxy::didRemoveAttachmentWithIdentifier);
2002 return;
2003 }
2004#endif
2005#if ENABLE(SPEECH_SYNTHESIS)
2006 if (decoder.messageName() == Messages::WebPageProxy::SpeechSynthesisSpeak::name()) {
2007 IPC::handleMessageAsync<Messages::WebPageProxy::SpeechSynthesisSpeak>(connection, decoder, this, &WebPageProxy::speechSynthesisSpeak);
2008 return;
2009 }
2010#endif
2011#if ENABLE(SPEECH_SYNTHESIS)
2012 if (decoder.messageName() == Messages::WebPageProxy::SpeechSynthesisCancel::name()) {
2013 IPC::handleMessage<Messages::WebPageProxy::SpeechSynthesisCancel>(decoder, this, &WebPageProxy::speechSynthesisCancel);
2014 return;
2015 }
2016#endif
2017#if ENABLE(SPEECH_SYNTHESIS)
2018 if (decoder.messageName() == Messages::WebPageProxy::SpeechSynthesisPause::name()) {
2019 IPC::handleMessageAsync<Messages::WebPageProxy::SpeechSynthesisPause>(connection, decoder, this, &WebPageProxy::speechSynthesisPause);
2020 return;
2021 }
2022#endif
2023#if ENABLE(SPEECH_SYNTHESIS)
2024 if (decoder.messageName() == Messages::WebPageProxy::SpeechSynthesisResume::name()) {
2025 IPC::handleMessageAsync<Messages::WebPageProxy::SpeechSynthesisResume>(connection, decoder, this, &WebPageProxy::speechSynthesisResume);
2026 return;
2027 }
2028#endif
2029 if (decoder.messageName() == Messages::WebPageProxy::ConfigureLoggingChannel::name()) {
2030 IPC::handleMessage<Messages::WebPageProxy::ConfigureLoggingChannel>(decoder, this, &WebPageProxy::configureLoggingChannel);
2031 return;
2032 }
2033#if PLATFORM(GTK)
2034 if (decoder.messageName() == Messages::WebPageProxy::ShowEmojiPicker::name()) {
2035 IPC::handleMessageAsync<Messages::WebPageProxy::ShowEmojiPicker>(connection, decoder, this, &WebPageProxy::showEmojiPicker);
2036 return;
2037 }
2038#endif
2039#if HAVE(VISIBILITY_PROPAGATION_VIEW)
2040 if (decoder.messageName() == Messages::WebPageProxy::DidCreateContextForVisibilityPropagation::name()) {
2041 IPC::handleMessage<Messages::WebPageProxy::DidCreateContextForVisibilityPropagation>(decoder, this, &WebPageProxy::didCreateContextForVisibilityPropagation);
2042 return;
2043 }
2044#endif
2045 UNUSED_PARAM(connection);
2046 UNUSED_PARAM(decoder);
2047 ASSERT_NOT_REACHED();
2048}
2049
2050void WebPageProxy::didReceiveSyncMessage(IPC::Connection& connection, IPC::Decoder& decoder, std::unique_ptr<IPC::Encoder>& replyEncoder)
2051{
2052 if (decoder.messageName() == Messages::WebPageProxy::CreateNewPage::name()) {
2053 IPC::handleMessageSynchronous<Messages::WebPageProxy::CreateNewPage>(connection, decoder, replyEncoder, this, &WebPageProxy::createNewPage);
2054 return;
2055 }
2056 if (decoder.messageName() == Messages::WebPageProxy::RunJavaScriptAlert::name()) {
2057 IPC::handleMessageSynchronous<Messages::WebPageProxy::RunJavaScriptAlert>(connection, decoder, replyEncoder, this, &WebPageProxy::runJavaScriptAlert);
2058 return;
2059 }
2060 if (decoder.messageName() == Messages::WebPageProxy::RunJavaScriptConfirm::name()) {
2061 IPC::handleMessageSynchronous<Messages::WebPageProxy::RunJavaScriptConfirm>(connection, decoder, replyEncoder, this, &WebPageProxy::runJavaScriptConfirm);
2062 return;
2063 }
2064 if (decoder.messageName() == Messages::WebPageProxy::RunJavaScriptPrompt::name()) {
2065 IPC::handleMessageSynchronous<Messages::WebPageProxy::RunJavaScriptPrompt>(connection, decoder, replyEncoder, this, &WebPageProxy::runJavaScriptPrompt);
2066 return;
2067 }
2068#if ENABLE(WEBGL)
2069 if (decoder.messageName() == Messages::WebPageProxy::WebGLPolicyForURL::name()) {
2070 IPC::handleMessageSynchronous<Messages::WebPageProxy::WebGLPolicyForURL>(connection, decoder, replyEncoder, this, &WebPageProxy::webGLPolicyForURL);
2071 return;
2072 }
2073#endif
2074#if ENABLE(WEBGL)
2075 if (decoder.messageName() == Messages::WebPageProxy::ResolveWebGLPolicyForURL::name()) {
2076 IPC::handleMessageSynchronous<Messages::WebPageProxy::ResolveWebGLPolicyForURL>(connection, decoder, replyEncoder, this, &WebPageProxy::resolveWebGLPolicyForURL);
2077 return;
2078 }
2079#endif
2080 if (decoder.messageName() == Messages::WebPageProxy::GetToolbarsAreVisible::name()) {
2081 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetToolbarsAreVisible>(connection, decoder, replyEncoder, this, &WebPageProxy::getToolbarsAreVisible);
2082 return;
2083 }
2084 if (decoder.messageName() == Messages::WebPageProxy::GetMenuBarIsVisible::name()) {
2085 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetMenuBarIsVisible>(connection, decoder, replyEncoder, this, &WebPageProxy::getMenuBarIsVisible);
2086 return;
2087 }
2088 if (decoder.messageName() == Messages::WebPageProxy::GetStatusBarIsVisible::name()) {
2089 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetStatusBarIsVisible>(connection, decoder, replyEncoder, this, &WebPageProxy::getStatusBarIsVisible);
2090 return;
2091 }
2092 if (decoder.messageName() == Messages::WebPageProxy::GetWindowFrame::name()) {
2093 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetWindowFrame>(connection, decoder, replyEncoder, this, &WebPageProxy::getWindowFrame);
2094 return;
2095 }
2096 if (decoder.messageName() == Messages::WebPageProxy::ScreenToRootView::name()) {
2097 IPC::handleMessageSynchronous<Messages::WebPageProxy::ScreenToRootView>(connection, decoder, replyEncoder, this, &WebPageProxy::screenToRootView);
2098 return;
2099 }
2100 if (decoder.messageName() == Messages::WebPageProxy::RootViewToScreen::name()) {
2101 IPC::handleMessageSynchronous<Messages::WebPageProxy::RootViewToScreen>(connection, decoder, replyEncoder, this, &WebPageProxy::rootViewToScreen);
2102 return;
2103 }
2104 if (decoder.messageName() == Messages::WebPageProxy::AccessibilityScreenToRootView::name()) {
2105 IPC::handleMessageSynchronous<Messages::WebPageProxy::AccessibilityScreenToRootView>(connection, decoder, replyEncoder, this, &WebPageProxy::accessibilityScreenToRootView);
2106 return;
2107 }
2108 if (decoder.messageName() == Messages::WebPageProxy::RootViewToAccessibilityScreen::name()) {
2109 IPC::handleMessageSynchronous<Messages::WebPageProxy::RootViewToAccessibilityScreen>(connection, decoder, replyEncoder, this, &WebPageProxy::rootViewToAccessibilityScreen);
2110 return;
2111 }
2112 if (decoder.messageName() == Messages::WebPageProxy::RunBeforeUnloadConfirmPanel::name()) {
2113 IPC::handleMessageSynchronous<Messages::WebPageProxy::RunBeforeUnloadConfirmPanel>(connection, decoder, replyEncoder, this, &WebPageProxy::runBeforeUnloadConfirmPanel);
2114 return;
2115 }
2116 if (decoder.messageName() == Messages::WebPageProxy::PrintFrame::name()) {
2117 IPC::handleMessageSynchronous<Messages::WebPageProxy::PrintFrame>(connection, decoder, replyEncoder, this, &WebPageProxy::printFrame);
2118 return;
2119 }
2120 if (decoder.messageName() == Messages::WebPageProxy::DecidePolicyForNavigationActionSync::name()) {
2121 IPC::handleMessageSynchronous<Messages::WebPageProxy::DecidePolicyForNavigationActionSync>(connection, decoder, replyEncoder, this, &WebPageProxy::decidePolicyForNavigationActionSync);
2122 return;
2123 }
2124 if (decoder.messageName() == Messages::WebPageProxy::HasInsecureContent::name()) {
2125 IPC::handleMessageSynchronous<Messages::WebPageProxy::HasInsecureContent>(connection, decoder, replyEncoder, this, &WebPageProxy::hasInsecureContent);
2126 return;
2127 }
2128#if PLATFORM(IOS_FAMILY)
2129 if (decoder.messageName() == Messages::WebPageProxy::InterpretKeyEvent::name()) {
2130 IPC::handleMessageSynchronous<Messages::WebPageProxy::InterpretKeyEvent>(connection, decoder, replyEncoder, this, &WebPageProxy::interpretKeyEvent);
2131 return;
2132 }
2133#endif
2134 if (decoder.messageName() == Messages::WebPageProxy::BackForwardGoToItem::name()) {
2135 IPC::handleMessageSynchronous<Messages::WebPageProxy::BackForwardGoToItem>(connection, decoder, replyEncoder, this, &WebPageProxy::backForwardGoToItem);
2136 return;
2137 }
2138 if (decoder.messageName() == Messages::WebPageProxy::BackForwardItemAtIndex::name()) {
2139 IPC::handleMessageSynchronous<Messages::WebPageProxy::BackForwardItemAtIndex>(connection, decoder, replyEncoder, this, &WebPageProxy::backForwardItemAtIndex);
2140 return;
2141 }
2142 if (decoder.messageName() == Messages::WebPageProxy::BackForwardBackListCount::name()) {
2143 IPC::handleMessageSynchronous<Messages::WebPageProxy::BackForwardBackListCount>(connection, decoder, replyEncoder, this, &WebPageProxy::backForwardBackListCount);
2144 return;
2145 }
2146 if (decoder.messageName() == Messages::WebPageProxy::BackForwardForwardListCount::name()) {
2147 IPC::handleMessageSynchronous<Messages::WebPageProxy::BackForwardForwardListCount>(connection, decoder, replyEncoder, this, &WebPageProxy::backForwardForwardListCount);
2148 return;
2149 }
2150 if (decoder.messageName() == Messages::WebPageProxy::CanUndoRedo::name()) {
2151 IPC::handleMessageSynchronous<Messages::WebPageProxy::CanUndoRedo>(connection, decoder, replyEncoder, this, &WebPageProxy::canUndoRedo);
2152 return;
2153 }
2154 if (decoder.messageName() == Messages::WebPageProxy::ExecuteUndoRedo::name()) {
2155 IPC::handleMessageSynchronous<Messages::WebPageProxy::ExecuteUndoRedo>(connection, decoder, replyEncoder, this, &WebPageProxy::executeUndoRedo);
2156 return;
2157 }
2158 if (decoder.messageName() == Messages::WebPageProxy::RequestDOMPasteAccess::name()) {
2159 IPC::handleMessageSynchronous<Messages::WebPageProxy::RequestDOMPasteAccess>(connection, decoder, replyEncoder, this, &WebPageProxy::requestDOMPasteAccess);
2160 return;
2161 }
2162 if (decoder.messageName() == Messages::WebPageProxy::ExceededDatabaseQuota::name()) {
2163 IPC::handleMessageSynchronous<Messages::WebPageProxy::ExceededDatabaseQuota>(connection, decoder, replyEncoder, this, &WebPageProxy::exceededDatabaseQuota);
2164 return;
2165 }
2166 if (decoder.messageName() == Messages::WebPageProxy::ReachedApplicationCacheOriginQuota::name()) {
2167 IPC::handleMessageSynchronous<Messages::WebPageProxy::ReachedApplicationCacheOriginQuota>(connection, decoder, replyEncoder, this, &WebPageProxy::reachedApplicationCacheOriginQuota);
2168 return;
2169 }
2170#if USE(UNIFIED_TEXT_CHECKING)
2171 if (decoder.messageName() == Messages::WebPageProxy::CheckTextOfParagraph::name()) {
2172 IPC::handleMessageSynchronous<Messages::WebPageProxy::CheckTextOfParagraph>(connection, decoder, replyEncoder, this, &WebPageProxy::checkTextOfParagraph);
2173 return;
2174 }
2175#endif
2176 if (decoder.messageName() == Messages::WebPageProxy::CheckSpellingOfString::name()) {
2177 IPC::handleMessageSynchronous<Messages::WebPageProxy::CheckSpellingOfString>(connection, decoder, replyEncoder, this, &WebPageProxy::checkSpellingOfString);
2178 return;
2179 }
2180 if (decoder.messageName() == Messages::WebPageProxy::CheckGrammarOfString::name()) {
2181 IPC::handleMessageSynchronous<Messages::WebPageProxy::CheckGrammarOfString>(connection, decoder, replyEncoder, this, &WebPageProxy::checkGrammarOfString);
2182 return;
2183 }
2184 if (decoder.messageName() == Messages::WebPageProxy::SpellingUIIsShowing::name()) {
2185 IPC::handleMessageSynchronous<Messages::WebPageProxy::SpellingUIIsShowing>(connection, decoder, replyEncoder, this, &WebPageProxy::spellingUIIsShowing);
2186 return;
2187 }
2188 if (decoder.messageName() == Messages::WebPageProxy::GetGuessesForWord::name()) {
2189 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetGuessesForWord>(connection, decoder, replyEncoder, this, &WebPageProxy::getGuessesForWord);
2190 return;
2191 }
2192#if PLATFORM(COCOA)
2193 if (decoder.messageName() == Messages::WebPageProxy::ExecuteSavedCommandBySelector::name()) {
2194 IPC::handleMessageSynchronous<Messages::WebPageProxy::ExecuteSavedCommandBySelector>(connection, decoder, replyEncoder, this, &WebPageProxy::executeSavedCommandBySelector);
2195 return;
2196 }
2197#endif
2198#if PLATFORM(COCOA)
2199 if (decoder.messageName() == Messages::WebPageProxy::GetIsSpeaking::name()) {
2200 IPC::handleMessageSynchronous<Messages::WebPageProxy::GetIsSpeaking>(connection, decoder, replyEncoder, this, &WebPageProxy::getIsSpeaking);
2201 return;
2202 }
2203#endif
2204#if USE(APPKIT)
2205 if (decoder.messageName() == Messages::WebPageProxy::SubstitutionsPanelIsShowing::name()) {
2206 IPC::handleMessageSynchronous<Messages::WebPageProxy::SubstitutionsPanelIsShowing>(connection, decoder, replyEncoder, this, &WebPageProxy::substitutionsPanelIsShowing);
2207 return;
2208 }
2209#endif
2210#if PLATFORM(MAC)
2211 if (decoder.messageName() == Messages::WebPageProxy::DismissCorrectionPanelSoon::name()) {
2212 IPC::handleMessageSynchronous<Messages::WebPageProxy::DismissCorrectionPanelSoon>(connection, decoder, replyEncoder, this, &WebPageProxy::dismissCorrectionPanelSoon);
2213 return;
2214 }
2215#endif
2216#if USE(DICTATION_ALTERNATIVES)
2217 if (decoder.messageName() == Messages::WebPageProxy::DictationAlternatives::name()) {
2218 IPC::handleMessageSynchronous<Messages::WebPageProxy::DictationAlternatives>(connection, decoder, replyEncoder, this, &WebPageProxy::dictationAlternatives);
2219 return;
2220 }
2221#endif
2222#if PLATFORM(X11)
2223 if (decoder.messageName() == Messages::WebPageProxy::CreatePluginContainer::name()) {
2224 IPC::handleMessageSynchronous<Messages::WebPageProxy::CreatePluginContainer>(connection, decoder, replyEncoder, this, &WebPageProxy::createPluginContainer);
2225 return;
2226 }
2227#endif
2228 if (decoder.messageName() == Messages::WebPageProxy::LoadRecentSearches::name()) {
2229 IPC::handleMessageSynchronous<Messages::WebPageProxy::LoadRecentSearches>(connection, decoder, replyEncoder, this, &WebPageProxy::loadRecentSearches);
2230 return;
2231 }
2232#if ENABLE(PDFKIT_PLUGIN)
2233 if (decoder.messageName() == Messages::WebPageProxy::ShowPDFContextMenu::name()) {
2234 IPC::handleMessageSynchronous<Messages::WebPageProxy::ShowPDFContextMenu>(connection, decoder, replyEncoder, this, &WebPageProxy::showPDFContextMenu);
2235 return;
2236 }
2237#endif
2238#if ENABLE(NETSCAPE_PLUGIN_API)
2239 if (decoder.messageName() == Messages::WebPageProxy::FindPlugin::name()) {
2240 IPC::handleMessageSynchronous<Messages::WebPageProxy::FindPlugin>(connection, decoder, replyEncoder, this, &WebPageProxy::findPlugin);
2241 return;
2242 }
2243#endif
2244#if ENABLE(WEB_CRYPTO)
2245 if (decoder.messageName() == Messages::WebPageProxy::WrapCryptoKey::name()) {
2246 IPC::handleMessageSynchronous<Messages::WebPageProxy::WrapCryptoKey>(connection, decoder, replyEncoder, this, &WebPageProxy::wrapCryptoKey);
2247 return;
2248 }
2249#endif
2250#if ENABLE(WEB_CRYPTO)
2251 if (decoder.messageName() == Messages::WebPageProxy::UnwrapCryptoKey::name()) {
2252 IPC::handleMessageSynchronous<Messages::WebPageProxy::UnwrapCryptoKey>(connection, decoder, replyEncoder, this, &WebPageProxy::unwrapCryptoKey);
2253 return;
2254 }
2255#endif
2256 if (decoder.messageName() == Messages::WebPageProxy::HandleSynchronousMessage::name()) {
2257 IPC::handleMessageSynchronousWantsConnection<Messages::WebPageProxy::HandleSynchronousMessage>(connection, decoder, replyEncoder, this, &WebPageProxy::handleSynchronousMessage);
2258 return;
2259 }
2260 if (decoder.messageName() == Messages::WebPageProxy::LoadSynchronousURLSchemeTask::name()) {
2261 IPC::handleMessageSynchronous<Messages::WebPageProxy::LoadSynchronousURLSchemeTask>(connection, decoder, replyEncoder, this, &WebPageProxy::loadSynchronousURLSchemeTask);
2262 return;
2263 }
2264#if ENABLE(ATTACHMENT_ELEMENT)
2265 if (decoder.messageName() == Messages::WebPageProxy::SerializedAttachmentDataForIdentifiers::name()) {
2266 IPC::handleMessageSynchronous<Messages::WebPageProxy::SerializedAttachmentDataForIdentifiers>(connection, decoder, replyEncoder, this, &WebPageProxy::serializedAttachmentDataForIdentifiers);
2267 return;
2268 }
2269#endif
2270 if (decoder.messageName() == Messages::WebPageProxy::SignedPublicKeyAndChallengeString::name()) {
2271 IPC::handleMessageSynchronous<Messages::WebPageProxy::SignedPublicKeyAndChallengeString>(connection, decoder, replyEncoder, this, &WebPageProxy::signedPublicKeyAndChallengeString);
2272 return;
2273 }
2274#if ENABLE(SPEECH_SYNTHESIS)
2275 if (decoder.messageName() == Messages::WebPageProxy::SpeechSynthesisVoiceList::name()) {
2276 IPC::handleMessageSynchronous<Messages::WebPageProxy::SpeechSynthesisVoiceList>(connection, decoder, replyEncoder, this, &WebPageProxy::speechSynthesisVoiceList);
2277 return;
2278 }
2279#endif
2280 UNUSED_PARAM(connection);
2281 UNUSED_PARAM(decoder);
2282 UNUSED_PARAM(replyEncoder);
2283 ASSERT_NOT_REACHED();
2284}
2285
2286} // namespace WebKit
2287
2288