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 "WebPage.h"
28
29#include "ArgumentCoders.h"
30#if PLATFORM(COCOA)
31#include "Attachment.h"
32#endif
33#if PLATFORM(COCOA)
34#include "AttributedString.h"
35#endif
36#include "CallbackID.h"
37#if ENABLE(DATA_DETECTION)
38#include "DataDetectionResult.h"
39#endif
40#include "DataReference.h"
41#include "Decoder.h"
42#if PLATFORM(IOS_FAMILY)
43#include "DocumentEditingContext.h"
44#endif
45#include "DownloadID.h"
46#if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT) || !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
47#include "DragControllerAction.h"
48#endif
49#include "DrawingAreaInfo.h"
50#if PLATFORM(MAC) || PLATFORM(COCOA)
51#include "EditingRange.h"
52#endif
53#include "FormDataReference.h"
54#if ENABLE(GAMEPAD)
55#include "GamepadData.h"
56#endif
57#include "HandleMessage.h"
58#if PLATFORM(COCOA)
59#include "InsertTextOptions.h"
60#endif
61#if PLATFORM(IOS_FAMILY)
62#include "InteractionInformationAtPosition.h"
63#endif
64#if PLATFORM(IOS_FAMILY)
65#include "InteractionInformationRequest.h"
66#endif
67#include "LayerTreeContext.h"
68#include "LoadParameters.h"
69#include "OptionalCallbackID.h"
70#include "PrintInfo.h"
71#include "SandboxExtension.h"
72#include "SessionState.h"
73#include "SharedBufferDataReference.h"
74#if PLATFORM(COCOA)
75#include "SharedMemory.h"
76#endif
77#if PLATFORM(IOS_FAMILY)
78#include "SyntheticEditingCommandType.h"
79#endif
80#include "TextInputContext.h"
81#include "UserData.h"
82#if PLATFORM(IOS_FAMILY)
83#include "WebAutocorrectionData.h"
84#endif
85#if ENABLE(CONTEXT_MENUS)
86#include "WebContextMenuItemData.h"
87#endif
88#include "WebCoreArgumentCoders.h"
89#include "WebEvent.h"
90#include "WebPageMessages.h"
91#include "WebPreferencesStore.h"
92#if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
93#include "WebSelectionData.h"
94#endif
95#include "WebsitePoliciesData.h"
96#include <JavaScriptCore/ConsoleTypes.h>
97#include <JavaScriptCore/InspectorFrontendChannel.h>
98#include <WebCore/ActivityState.h>
99#include <WebCore/BackForwardItemIdentifier.h>
100#if ENABLE(MEDIA_STREAM)
101#include <WebCore/CaptureDevice.h>
102#endif
103#include <WebCore/Color.h>
104#if PLATFORM(COCOA) || PLATFORM(GTK)
105#include <WebCore/CompositionUnderline.h>
106#endif
107#if PLATFORM(MAC)
108#include <WebCore/DictationAlternative.h>
109#endif
110#if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
111#include <WebCore/DragData.h>
112#endif
113#if PLATFORM(MAC) || PLATFORM(IOS_FAMILY) || PLATFORM(COCOA)
114#include <WebCore/FloatPoint.h>
115#endif
116#include <WebCore/FloatRect.h>
117#if PLATFORM(IOS_FAMILY)
118#include <WebCore/FloatSize.h>
119#endif
120#include <WebCore/FontAttributeChanges.h>
121#include <WebCore/FrameLoaderTypes.h>
122#include <WebCore/GlobalFrameIdentifier.h>
123#include <WebCore/GlobalWindowIdentifier.h>
124#include <WebCore/IntPoint.h>
125#include <WebCore/IntRect.h>
126#include <WebCore/IntSize.h>
127#include <WebCore/LayoutMilestone.h>
128#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
129#include <WebCore/MediaPlaybackTargetContext.h>
130#endif
131#include <WebCore/MediaProducer.h>
132#if PLATFORM(MAC)
133#include <WebCore/PageOverlay.h>
134#endif
135#include <WebCore/PlatformEvent.h>
136#if PLATFORM(IOS_FAMILY) || ENABLE(POINTER_EVENTS)
137#include <WebCore/PointerID.h>
138#endif
139#if PLATFORM(IOS_FAMILY)
140#include <WebCore/RectEdges.h>
141#endif
142#include <WebCore/ResourceError.h>
143#include <WebCore/ResourceRequest.h>
144#include <WebCore/ResourceResponse.h>
145#include <WebCore/SecurityPolicyViolationEvent.h>
146#include <WebCore/ShouldTreatAsContinuingLoad.h>
147#include <WebCore/TextCheckerClient.h>
148#if PLATFORM(IOS_FAMILY)
149#include <WebCore/ViewportArguments.h>
150#endif
151#include <WebCore/WritingDirection.h>
152#include <wtf/OptionSet.h>
153#include <wtf/Optional.h>
154#include <wtf/Vector.h>
155#include <wtf/text/WTFString.h>
156
157namespace Messages {
158
159namespace WebPage {
160
161#if PLATFORM(IOS_FAMILY)
162
163void RequestAutocorrectionData::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebKit::WebAutocorrectionData&&)>&& completionHandler)
164{
165 Optional<WebKit::WebAutocorrectionData> data;
166 decoder >> data;
167 if (!data) {
168 ASSERT_NOT_REACHED();
169 cancelReply(WTFMove(completionHandler));
170 return;
171 }
172 completionHandler(WTFMove(*data));
173}
174
175void RequestAutocorrectionData::cancelReply(CompletionHandler<void(WebKit::WebAutocorrectionData&&)>&& completionHandler)
176{
177 completionHandler(IPC::AsyncReplyError<WebKit::WebAutocorrectionData>::create());
178}
179
180void RequestAutocorrectionData::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::WebAutocorrectionData& data)
181{
182 *encoder << data;
183 connection.sendSyncReply(WTFMove(encoder));
184}
185
186#endif
187
188#if PLATFORM(IOS_FAMILY)
189
190void SyncApplyAutocorrection::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool autocorrectionApplied)
191{
192 *encoder << autocorrectionApplied;
193 connection.sendSyncReply(WTFMove(encoder));
194}
195
196#endif
197
198#if PLATFORM(IOS_FAMILY)
199
200void RequestEvasionRectsAboveSelection::callReply(IPC::Decoder& decoder, CompletionHandler<void(Vector<WebCore::FloatRect>&&)>&& completionHandler)
201{
202 Optional<Vector<WebCore::FloatRect>> rects;
203 decoder >> rects;
204 if (!rects) {
205 ASSERT_NOT_REACHED();
206 cancelReply(WTFMove(completionHandler));
207 return;
208 }
209 completionHandler(WTFMove(*rects));
210}
211
212void RequestEvasionRectsAboveSelection::cancelReply(CompletionHandler<void(Vector<WebCore::FloatRect>&&)>&& completionHandler)
213{
214 completionHandler(IPC::AsyncReplyError<Vector<WebCore::FloatRect>>::create());
215}
216
217void RequestEvasionRectsAboveSelection::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<WebCore::FloatRect>& rects)
218{
219 *encoder << rects;
220 connection.sendSyncReply(WTFMove(encoder));
221}
222
223#endif
224
225#if PLATFORM(IOS_FAMILY)
226
227void GetPositionInformation::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::InteractionInformationAtPosition& information)
228{
229 *encoder << information;
230 connection.sendSyncReply(WTFMove(encoder));
231}
232
233#endif
234
235#if PLATFORM(IOS_FAMILY)
236
237void UpdateSelectionWithDelta::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler)
238{
239 completionHandler();
240}
241
242void UpdateSelectionWithDelta::cancelReply(CompletionHandler<void()>&& completionHandler)
243{
244 completionHandler();
245}
246
247void UpdateSelectionWithDelta::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
248{
249 connection.sendSyncReply(WTFMove(encoder));
250}
251
252#endif
253
254#if PLATFORM(IOS_FAMILY)
255
256void RequestDocumentEditingContext::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebKit::DocumentEditingContext&&)>&& completionHandler)
257{
258 Optional<WebKit::DocumentEditingContext> response;
259 decoder >> response;
260 if (!response) {
261 ASSERT_NOT_REACHED();
262 cancelReply(WTFMove(completionHandler));
263 return;
264 }
265 completionHandler(WTFMove(*response));
266}
267
268void RequestDocumentEditingContext::cancelReply(CompletionHandler<void(WebKit::DocumentEditingContext&&)>&& completionHandler)
269{
270 completionHandler(IPC::AsyncReplyError<WebKit::DocumentEditingContext>::create());
271}
272
273void RequestDocumentEditingContext::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::DocumentEditingContext& response)
274{
275 *encoder << response;
276 connection.sendSyncReply(WTFMove(encoder));
277}
278
279#endif
280
281#if ENABLE(IOS_TOUCH_EVENTS)
282
283void TouchEventSync::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool handled)
284{
285 *encoder << handled;
286 connection.sendSyncReply(WTFMove(encoder));
287}
288
289#endif
290
291#if PLATFORM(COCOA)
292
293void GetContentsAsAttributedString::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebKit::AttributedString&&)>&& completionHandler)
294{
295 Optional<WebKit::AttributedString> result;
296 decoder >> result;
297 if (!result) {
298 ASSERT_NOT_REACHED();
299 cancelReply(WTFMove(completionHandler));
300 return;
301 }
302 completionHandler(WTFMove(*result));
303}
304
305void GetContentsAsAttributedString::cancelReply(CompletionHandler<void(WebKit::AttributedString&&)>&& completionHandler)
306{
307 completionHandler(IPC::AsyncReplyError<WebKit::AttributedString>::create());
308}
309
310void GetContentsAsAttributedString::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::AttributedString& result)
311{
312 *encoder << result;
313 connection.sendSyncReply(WTFMove(encoder));
314}
315
316#endif
317
318#if ENABLE(DATA_DETECTION)
319
320void DetectDataInAllFrames::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebKit::DataDetectionResult&&)>&& completionHandler)
321{
322 Optional<WebKit::DataDetectionResult> result;
323 decoder >> result;
324 if (!result) {
325 ASSERT_NOT_REACHED();
326 cancelReply(WTFMove(completionHandler));
327 return;
328 }
329 completionHandler(WTFMove(*result));
330}
331
332void DetectDataInAllFrames::cancelReply(CompletionHandler<void(WebKit::DataDetectionResult&&)>&& completionHandler)
333{
334 completionHandler(IPC::AsyncReplyError<WebKit::DataDetectionResult>::create());
335}
336
337void DetectDataInAllFrames::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::DataDetectionResult& result)
338{
339 *encoder << result;
340 connection.sendSyncReply(WTFMove(encoder));
341}
342
343#endif
344
345#if ENABLE(DATA_DETECTION)
346
347void RemoveDataDetectedLinks::callReply(IPC::Decoder& decoder, CompletionHandler<void(WebKit::DataDetectionResult&&)>&& completionHandler)
348{
349 Optional<WebKit::DataDetectionResult> result;
350 decoder >> result;
351 if (!result) {
352 ASSERT_NOT_REACHED();
353 cancelReply(WTFMove(completionHandler));
354 return;
355 }
356 completionHandler(WTFMove(*result));
357}
358
359void RemoveDataDetectedLinks::cancelReply(CompletionHandler<void(WebKit::DataDetectionResult&&)>&& completionHandler)
360{
361 completionHandler(IPC::AsyncReplyError<WebKit::DataDetectionResult>::create());
362}
363
364void RemoveDataDetectedLinks::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::DataDetectionResult& result)
365{
366 *encoder << result;
367 connection.sendSyncReply(WTFMove(encoder));
368}
369
370#endif
371
372#if ENABLE(MEDIA_STREAM)
373
374void UserMediaAccessWasGranted::callReply(IPC::Decoder& decoder, CompletionHandler<void()>&& completionHandler)
375{
376 completionHandler();
377}
378
379void UserMediaAccessWasGranted::cancelReply(CompletionHandler<void()>&& completionHandler)
380{
381 completionHandler();
382}
383
384void UserMediaAccessWasGranted::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection)
385{
386 connection.sendSyncReply(WTFMove(encoder));
387}
388
389#endif
390
391#if (PLATFORM(COCOA) && PLATFORM(IOS_FAMILY))
392
393void ComputePagesForPrintingAndDrawToPDF::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, uint32_t pageCount)
394{
395 *encoder << pageCount;
396 connection.sendSyncReply(WTFMove(encoder));
397}
398
399#endif
400
401#if PLATFORM (GTK) && HAVE(GTK_GESTURES)
402
403void GetCenterForZoomGesture::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebCore::IntPoint& center)
404{
405 *encoder << center;
406 connection.sendSyncReply(WTFMove(encoder));
407}
408
409#endif
410
411#if PLATFORM(COCOA)
412
413void GetStringSelectionForPasteboard::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const String& stringValue)
414{
415 *encoder << stringValue;
416 connection.sendSyncReply(WTFMove(encoder));
417}
418
419#endif
420
421#if PLATFORM(COCOA)
422
423void GetDataSelectionForPasteboard::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const WebKit::SharedMemory::Handle& handle, uint64_t size)
424{
425 *encoder << handle;
426 *encoder << size;
427 connection.sendSyncReply(WTFMove(encoder));
428}
429
430#endif
431
432#if PLATFORM(COCOA)
433
434void ReadSelectionFromPasteboard::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool result)
435{
436 *encoder << result;
437 connection.sendSyncReply(WTFMove(encoder));
438}
439
440#endif
441
442#if PLATFORM(COCOA)
443
444void ShouldDelayWindowOrderingEvent::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool result)
445{
446 *encoder << result;
447 connection.sendSyncReply(WTFMove(encoder));
448}
449
450#endif
451
452#if PLATFORM(COCOA)
453
454void AcceptsFirstMouse::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool result)
455{
456 *encoder << result;
457 connection.sendSyncReply(WTFMove(encoder));
458}
459
460#endif
461
462#if PLATFORM(COCOA)
463
464void HasMarkedText::callReply(IPC::Decoder& decoder, CompletionHandler<void(bool&&)>&& completionHandler)
465{
466 Optional<bool> hasMarkedText;
467 decoder >> hasMarkedText;
468 if (!hasMarkedText) {
469 ASSERT_NOT_REACHED();
470 cancelReply(WTFMove(completionHandler));
471 return;
472 }
473 completionHandler(WTFMove(*hasMarkedText));
474}
475
476void HasMarkedText::cancelReply(CompletionHandler<void(bool&&)>&& completionHandler)
477{
478 completionHandler(IPC::AsyncReplyError<bool>::create());
479}
480
481void HasMarkedText::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool hasMarkedText)
482{
483 *encoder << hasMarkedText;
484 connection.sendSyncReply(WTFMove(encoder));
485}
486
487#endif
488
489void TextInputContextsInRect::callReply(IPC::Decoder& decoder, CompletionHandler<void(Vector<struct WebKit::TextInputContext>&&)>&& completionHandler)
490{
491 Optional<Vector<struct WebKit::TextInputContext>> contexts;
492 decoder >> contexts;
493 if (!contexts) {
494 ASSERT_NOT_REACHED();
495 cancelReply(WTFMove(completionHandler));
496 return;
497 }
498 completionHandler(WTFMove(*contexts));
499}
500
501void TextInputContextsInRect::cancelReply(CompletionHandler<void(Vector<struct WebKit::TextInputContext>&&)>&& completionHandler)
502{
503 completionHandler(IPC::AsyncReplyError<Vector<struct WebKit::TextInputContext>>::create());
504}
505
506void TextInputContextsInRect::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, const Vector<struct WebKit::TextInputContext>& contexts)
507{
508 *encoder << contexts;
509 connection.sendSyncReply(WTFMove(encoder));
510}
511
512void FocusTextInputContext::callReply(IPC::Decoder& decoder, CompletionHandler<void(bool&&)>&& completionHandler)
513{
514 Optional<bool> success;
515 decoder >> success;
516 if (!success) {
517 ASSERT_NOT_REACHED();
518 cancelReply(WTFMove(completionHandler));
519 return;
520 }
521 completionHandler(WTFMove(*success));
522}
523
524void FocusTextInputContext::cancelReply(CompletionHandler<void(bool&&)>&& completionHandler)
525{
526 completionHandler(IPC::AsyncReplyError<bool>::create());
527}
528
529void FocusTextInputContext::send(std::unique_ptr<IPC::Encoder>&& encoder, IPC::Connection& connection, bool success)
530{
531 *encoder << success;
532 connection.sendSyncReply(WTFMove(encoder));
533}
534
535} // namespace WebPage
536
537} // namespace Messages
538
539namespace WebKit {
540
541void WebPage::didReceiveWebPageMessage(IPC::Connection& connection, IPC::Decoder& decoder)
542{
543 if (decoder.messageName() == Messages::WebPage::SetInitialFocus::name()) {
544 IPC::handleMessage<Messages::WebPage::SetInitialFocus>(decoder, this, &WebPage::setInitialFocus);
545 return;
546 }
547 if (decoder.messageName() == Messages::WebPage::SetActivityState::name()) {
548 IPC::handleMessage<Messages::WebPage::SetActivityState>(decoder, this, &WebPage::setActivityState);
549 return;
550 }
551 if (decoder.messageName() == Messages::WebPage::SetLayerHostingMode::name()) {
552 IPC::handleMessage<Messages::WebPage::SetLayerHostingMode>(decoder, this, &WebPage::setLayerHostingMode);
553 return;
554 }
555 if (decoder.messageName() == Messages::WebPage::SetBackgroundColor::name()) {
556 IPC::handleMessage<Messages::WebPage::SetBackgroundColor>(decoder, this, &WebPage::setBackgroundColor);
557 return;
558 }
559 if (decoder.messageName() == Messages::WebPage::AddConsoleMessage::name()) {
560 IPC::handleMessage<Messages::WebPage::AddConsoleMessage>(decoder, this, &WebPage::addConsoleMessage);
561 return;
562 }
563 if (decoder.messageName() == Messages::WebPage::SendCSPViolationReport::name()) {
564 IPC::handleMessage<Messages::WebPage::SendCSPViolationReport>(decoder, this, &WebPage::sendCSPViolationReport);
565 return;
566 }
567 if (decoder.messageName() == Messages::WebPage::EnqueueSecurityPolicyViolationEvent::name()) {
568 IPC::handleMessage<Messages::WebPage::EnqueueSecurityPolicyViolationEvent>(decoder, this, &WebPage::enqueueSecurityPolicyViolationEvent);
569 return;
570 }
571#if PLATFORM(COCOA)
572 if (decoder.messageName() == Messages::WebPage::SetTopContentInsetFenced::name()) {
573 IPC::handleMessage<Messages::WebPage::SetTopContentInsetFenced>(decoder, this, &WebPage::setTopContentInsetFenced);
574 return;
575 }
576#endif
577 if (decoder.messageName() == Messages::WebPage::SetTopContentInset::name()) {
578 IPC::handleMessage<Messages::WebPage::SetTopContentInset>(decoder, this, &WebPage::setTopContentInset);
579 return;
580 }
581 if (decoder.messageName() == Messages::WebPage::SetUnderlayColor::name()) {
582 IPC::handleMessage<Messages::WebPage::SetUnderlayColor>(decoder, this, &WebPage::setUnderlayColor);
583 return;
584 }
585 if (decoder.messageName() == Messages::WebPage::ViewWillStartLiveResize::name()) {
586 IPC::handleMessage<Messages::WebPage::ViewWillStartLiveResize>(decoder, this, &WebPage::viewWillStartLiveResize);
587 return;
588 }
589 if (decoder.messageName() == Messages::WebPage::ViewWillEndLiveResize::name()) {
590 IPC::handleMessage<Messages::WebPage::ViewWillEndLiveResize>(decoder, this, &WebPage::viewWillEndLiveResize);
591 return;
592 }
593 if (decoder.messageName() == Messages::WebPage::ExecuteEditCommandWithCallback::name()) {
594 IPC::handleMessage<Messages::WebPage::ExecuteEditCommandWithCallback>(decoder, this, &WebPage::executeEditCommandWithCallback);
595 return;
596 }
597 if (decoder.messageName() == Messages::WebPage::KeyEvent::name()) {
598 IPC::handleMessage<Messages::WebPage::KeyEvent>(decoder, this, &WebPage::keyEvent);
599 return;
600 }
601 if (decoder.messageName() == Messages::WebPage::MouseEvent::name()) {
602 IPC::handleMessage<Messages::WebPage::MouseEvent>(decoder, this, &WebPage::mouseEvent);
603 return;
604 }
605#if PLATFORM(IOS_FAMILY)
606 if (decoder.messageName() == Messages::WebPage::SetViewportConfigurationViewLayoutSize::name()) {
607 IPC::handleMessage<Messages::WebPage::SetViewportConfigurationViewLayoutSize>(decoder, this, &WebPage::setViewportConfigurationViewLayoutSize);
608 return;
609 }
610#endif
611#if PLATFORM(IOS_FAMILY)
612 if (decoder.messageName() == Messages::WebPage::SetMaximumUnobscuredSize::name()) {
613 IPC::handleMessage<Messages::WebPage::SetMaximumUnobscuredSize>(decoder, this, &WebPage::setMaximumUnobscuredSize);
614 return;
615 }
616#endif
617#if PLATFORM(IOS_FAMILY)
618 if (decoder.messageName() == Messages::WebPage::SetDeviceOrientation::name()) {
619 IPC::handleMessage<Messages::WebPage::SetDeviceOrientation>(decoder, this, &WebPage::setDeviceOrientation);
620 return;
621 }
622#endif
623#if PLATFORM(IOS_FAMILY)
624 if (decoder.messageName() == Messages::WebPage::SetOverrideViewportArguments::name()) {
625 IPC::handleMessage<Messages::WebPage::SetOverrideViewportArguments>(decoder, this, &WebPage::setOverrideViewportArguments);
626 return;
627 }
628#endif
629#if PLATFORM(IOS_FAMILY)
630 if (decoder.messageName() == Messages::WebPage::DynamicViewportSizeUpdate::name()) {
631 IPC::handleMessage<Messages::WebPage::DynamicViewportSizeUpdate>(decoder, this, &WebPage::dynamicViewportSizeUpdate);
632 return;
633 }
634#endif
635#if PLATFORM(IOS_FAMILY)
636 if (decoder.messageName() == Messages::WebPage::HandleTap::name()) {
637 IPC::handleMessage<Messages::WebPage::HandleTap>(decoder, this, &WebPage::handleTap);
638 return;
639 }
640#endif
641#if PLATFORM(IOS_FAMILY)
642 if (decoder.messageName() == Messages::WebPage::PotentialTapAtPosition::name()) {
643 IPC::handleMessage<Messages::WebPage::PotentialTapAtPosition>(decoder, this, &WebPage::potentialTapAtPosition);
644 return;
645 }
646#endif
647#if PLATFORM(IOS_FAMILY)
648 if (decoder.messageName() == Messages::WebPage::CommitPotentialTap::name()) {
649 IPC::handleMessage<Messages::WebPage::CommitPotentialTap>(decoder, this, &WebPage::commitPotentialTap);
650 return;
651 }
652#endif
653#if PLATFORM(IOS_FAMILY)
654 if (decoder.messageName() == Messages::WebPage::CancelPotentialTap::name()) {
655 IPC::handleMessage<Messages::WebPage::CancelPotentialTap>(decoder, this, &WebPage::cancelPotentialTap);
656 return;
657 }
658#endif
659#if PLATFORM(IOS_FAMILY)
660 if (decoder.messageName() == Messages::WebPage::TapHighlightAtPosition::name()) {
661 IPC::handleMessage<Messages::WebPage::TapHighlightAtPosition>(decoder, this, &WebPage::tapHighlightAtPosition);
662 return;
663 }
664#endif
665#if PLATFORM(IOS_FAMILY)
666 if (decoder.messageName() == Messages::WebPage::DidRecognizeLongPress::name()) {
667 IPC::handleMessage<Messages::WebPage::DidRecognizeLongPress>(decoder, this, &WebPage::didRecognizeLongPress);
668 return;
669 }
670#endif
671#if PLATFORM(IOS_FAMILY)
672 if (decoder.messageName() == Messages::WebPage::InspectorNodeSearchMovedToPosition::name()) {
673 IPC::handleMessage<Messages::WebPage::InspectorNodeSearchMovedToPosition>(decoder, this, &WebPage::inspectorNodeSearchMovedToPosition);
674 return;
675 }
676#endif
677#if PLATFORM(IOS_FAMILY)
678 if (decoder.messageName() == Messages::WebPage::InspectorNodeSearchEndedAtPosition::name()) {
679 IPC::handleMessage<Messages::WebPage::InspectorNodeSearchEndedAtPosition>(decoder, this, &WebPage::inspectorNodeSearchEndedAtPosition);
680 return;
681 }
682#endif
683#if PLATFORM(IOS_FAMILY)
684 if (decoder.messageName() == Messages::WebPage::BlurFocusedElement::name()) {
685 IPC::handleMessage<Messages::WebPage::BlurFocusedElement>(decoder, this, &WebPage::blurFocusedElement);
686 return;
687 }
688#endif
689#if PLATFORM(IOS_FAMILY)
690 if (decoder.messageName() == Messages::WebPage::SelectWithGesture::name()) {
691 IPC::handleMessage<Messages::WebPage::SelectWithGesture>(decoder, this, &WebPage::selectWithGesture);
692 return;
693 }
694#endif
695#if PLATFORM(IOS_FAMILY)
696 if (decoder.messageName() == Messages::WebPage::UpdateSelectionWithTouches::name()) {
697 IPC::handleMessage<Messages::WebPage::UpdateSelectionWithTouches>(decoder, this, &WebPage::updateSelectionWithTouches);
698 return;
699 }
700#endif
701#if PLATFORM(IOS_FAMILY)
702 if (decoder.messageName() == Messages::WebPage::SelectWithTwoTouches::name()) {
703 IPC::handleMessage<Messages::WebPage::SelectWithTwoTouches>(decoder, this, &WebPage::selectWithTwoTouches);
704 return;
705 }
706#endif
707#if PLATFORM(IOS_FAMILY)
708 if (decoder.messageName() == Messages::WebPage::ExtendSelection::name()) {
709 IPC::handleMessage<Messages::WebPage::ExtendSelection>(decoder, this, &WebPage::extendSelection);
710 return;
711 }
712#endif
713#if PLATFORM(IOS_FAMILY)
714 if (decoder.messageName() == Messages::WebPage::SelectWordBackward::name()) {
715 IPC::handleMessage<Messages::WebPage::SelectWordBackward>(decoder, this, &WebPage::selectWordBackward);
716 return;
717 }
718#endif
719#if PLATFORM(IOS_FAMILY)
720 if (decoder.messageName() == Messages::WebPage::MoveSelectionByOffset::name()) {
721 IPC::handleMessage<Messages::WebPage::MoveSelectionByOffset>(decoder, this, &WebPage::moveSelectionByOffset);
722 return;
723 }
724#endif
725#if PLATFORM(IOS_FAMILY)
726 if (decoder.messageName() == Messages::WebPage::SelectTextWithGranularityAtPoint::name()) {
727 IPC::handleMessage<Messages::WebPage::SelectTextWithGranularityAtPoint>(decoder, this, &WebPage::selectTextWithGranularityAtPoint);
728 return;
729 }
730#endif
731#if PLATFORM(IOS_FAMILY)
732 if (decoder.messageName() == Messages::WebPage::SelectPositionAtBoundaryWithDirection::name()) {
733 IPC::handleMessage<Messages::WebPage::SelectPositionAtBoundaryWithDirection>(decoder, this, &WebPage::selectPositionAtBoundaryWithDirection);
734 return;
735 }
736#endif
737#if PLATFORM(IOS_FAMILY)
738 if (decoder.messageName() == Messages::WebPage::MoveSelectionAtBoundaryWithDirection::name()) {
739 IPC::handleMessage<Messages::WebPage::MoveSelectionAtBoundaryWithDirection>(decoder, this, &WebPage::moveSelectionAtBoundaryWithDirection);
740 return;
741 }
742#endif
743#if PLATFORM(IOS_FAMILY)
744 if (decoder.messageName() == Messages::WebPage::SelectPositionAtPoint::name()) {
745 IPC::handleMessage<Messages::WebPage::SelectPositionAtPoint>(decoder, this, &WebPage::selectPositionAtPoint);
746 return;
747 }
748#endif
749#if PLATFORM(IOS_FAMILY)
750 if (decoder.messageName() == Messages::WebPage::BeginSelectionInDirection::name()) {
751 IPC::handleMessage<Messages::WebPage::BeginSelectionInDirection>(decoder, this, &WebPage::beginSelectionInDirection);
752 return;
753 }
754#endif
755#if PLATFORM(IOS_FAMILY)
756 if (decoder.messageName() == Messages::WebPage::UpdateSelectionWithExtentPoint::name()) {
757 IPC::handleMessage<Messages::WebPage::UpdateSelectionWithExtentPoint>(decoder, this, &WebPage::updateSelectionWithExtentPoint);
758 return;
759 }
760#endif
761#if PLATFORM(IOS_FAMILY)
762 if (decoder.messageName() == Messages::WebPage::UpdateSelectionWithExtentPointAndBoundary::name()) {
763 IPC::handleMessage<Messages::WebPage::UpdateSelectionWithExtentPointAndBoundary>(decoder, this, &WebPage::updateSelectionWithExtentPointAndBoundary);
764 return;
765 }
766#endif
767#if PLATFORM(IOS_FAMILY)
768 if (decoder.messageName() == Messages::WebPage::RequestDictationContext::name()) {
769 IPC::handleMessage<Messages::WebPage::RequestDictationContext>(decoder, this, &WebPage::requestDictationContext);
770 return;
771 }
772#endif
773#if PLATFORM(IOS_FAMILY)
774 if (decoder.messageName() == Messages::WebPage::ReplaceDictatedText::name()) {
775 IPC::handleMessage<Messages::WebPage::ReplaceDictatedText>(decoder, this, &WebPage::replaceDictatedText);
776 return;
777 }
778#endif
779#if PLATFORM(IOS_FAMILY)
780 if (decoder.messageName() == Messages::WebPage::ReplaceSelectedText::name()) {
781 IPC::handleMessage<Messages::WebPage::ReplaceSelectedText>(decoder, this, &WebPage::replaceSelectedText);
782 return;
783 }
784#endif
785#if PLATFORM(IOS_FAMILY)
786 if (decoder.messageName() == Messages::WebPage::RequestAutocorrectionData::name()) {
787 IPC::handleMessageAsync<Messages::WebPage::RequestAutocorrectionData>(connection, decoder, this, &WebPage::requestAutocorrectionData);
788 return;
789 }
790#endif
791#if PLATFORM(IOS_FAMILY)
792 if (decoder.messageName() == Messages::WebPage::ApplyAutocorrection::name()) {
793 IPC::handleMessage<Messages::WebPage::ApplyAutocorrection>(decoder, this, &WebPage::applyAutocorrection);
794 return;
795 }
796#endif
797#if PLATFORM(IOS_FAMILY)
798 if (decoder.messageName() == Messages::WebPage::RequestAutocorrectionContext::name()) {
799 IPC::handleMessage<Messages::WebPage::RequestAutocorrectionContext>(decoder, this, &WebPage::requestAutocorrectionContext);
800 return;
801 }
802#endif
803#if PLATFORM(IOS_FAMILY)
804 if (decoder.messageName() == Messages::WebPage::RequestEvasionRectsAboveSelection::name()) {
805 IPC::handleMessageAsync<Messages::WebPage::RequestEvasionRectsAboveSelection>(connection, decoder, this, &WebPage::requestEvasionRectsAboveSelection);
806 return;
807 }
808#endif
809#if PLATFORM(IOS_FAMILY)
810 if (decoder.messageName() == Messages::WebPage::RequestPositionInformation::name()) {
811 IPC::handleMessage<Messages::WebPage::RequestPositionInformation>(decoder, this, &WebPage::requestPositionInformation);
812 return;
813 }
814#endif
815#if PLATFORM(IOS_FAMILY)
816 if (decoder.messageName() == Messages::WebPage::StartInteractionWithElementAtPosition::name()) {
817 IPC::handleMessage<Messages::WebPage::StartInteractionWithElementAtPosition>(decoder, this, &WebPage::startInteractionWithElementAtPosition);
818 return;
819 }
820#endif
821#if PLATFORM(IOS_FAMILY)
822 if (decoder.messageName() == Messages::WebPage::StopInteraction::name()) {
823 IPC::handleMessage<Messages::WebPage::StopInteraction>(decoder, this, &WebPage::stopInteraction);
824 return;
825 }
826#endif
827#if PLATFORM(IOS_FAMILY)
828 if (decoder.messageName() == Messages::WebPage::PerformActionOnElement::name()) {
829 IPC::handleMessage<Messages::WebPage::PerformActionOnElement>(decoder, this, &WebPage::performActionOnElement);
830 return;
831 }
832#endif
833#if PLATFORM(IOS_FAMILY)
834 if (decoder.messageName() == Messages::WebPage::FocusNextFocusedElement::name()) {
835 IPC::handleMessage<Messages::WebPage::FocusNextFocusedElement>(decoder, this, &WebPage::focusNextFocusedElement);
836 return;
837 }
838#endif
839#if PLATFORM(IOS_FAMILY)
840 if (decoder.messageName() == Messages::WebPage::SetFocusedElementValue::name()) {
841 IPC::handleMessage<Messages::WebPage::SetFocusedElementValue>(decoder, this, &WebPage::setFocusedElementValue);
842 return;
843 }
844#endif
845#if PLATFORM(IOS_FAMILY)
846 if (decoder.messageName() == Messages::WebPage::AutofillLoginCredentials::name()) {
847 IPC::handleMessage<Messages::WebPage::AutofillLoginCredentials>(decoder, this, &WebPage::autofillLoginCredentials);
848 return;
849 }
850#endif
851#if PLATFORM(IOS_FAMILY)
852 if (decoder.messageName() == Messages::WebPage::SetFocusedElementValueAsNumber::name()) {
853 IPC::handleMessage<Messages::WebPage::SetFocusedElementValueAsNumber>(decoder, this, &WebPage::setFocusedElementValueAsNumber);
854 return;
855 }
856#endif
857#if PLATFORM(IOS_FAMILY)
858 if (decoder.messageName() == Messages::WebPage::SetFocusedElementSelectedIndex::name()) {
859 IPC::handleMessage<Messages::WebPage::SetFocusedElementSelectedIndex>(decoder, this, &WebPage::setFocusedElementSelectedIndex);
860 return;
861 }
862#endif
863#if PLATFORM(IOS_FAMILY)
864 if (decoder.messageName() == Messages::WebPage::ApplicationWillResignActive::name()) {
865 IPC::handleMessage<Messages::WebPage::ApplicationWillResignActive>(decoder, this, &WebPage::applicationWillResignActive);
866 return;
867 }
868#endif
869#if PLATFORM(IOS_FAMILY)
870 if (decoder.messageName() == Messages::WebPage::ApplicationDidEnterBackground::name()) {
871 IPC::handleMessage<Messages::WebPage::ApplicationDidEnterBackground>(decoder, this, &WebPage::applicationDidEnterBackground);
872 return;
873 }
874#endif
875#if PLATFORM(IOS_FAMILY)
876 if (decoder.messageName() == Messages::WebPage::ApplicationDidFinishSnapshottingAfterEnteringBackground::name()) {
877 IPC::handleMessage<Messages::WebPage::ApplicationDidFinishSnapshottingAfterEnteringBackground>(decoder, this, &WebPage::applicationDidFinishSnapshottingAfterEnteringBackground);
878 return;
879 }
880#endif
881#if PLATFORM(IOS_FAMILY)
882 if (decoder.messageName() == Messages::WebPage::ApplicationWillEnterForeground::name()) {
883 IPC::handleMessage<Messages::WebPage::ApplicationWillEnterForeground>(decoder, this, &WebPage::applicationWillEnterForeground);
884 return;
885 }
886#endif
887#if PLATFORM(IOS_FAMILY)
888 if (decoder.messageName() == Messages::WebPage::ApplicationDidBecomeActive::name()) {
889 IPC::handleMessage<Messages::WebPage::ApplicationDidBecomeActive>(decoder, this, &WebPage::applicationDidBecomeActive);
890 return;
891 }
892#endif
893#if PLATFORM(IOS_FAMILY)
894 if (decoder.messageName() == Messages::WebPage::ContentSizeCategoryDidChange::name()) {
895 IPC::handleMessage<Messages::WebPage::ContentSizeCategoryDidChange>(decoder, this, &WebPage::contentSizeCategoryDidChange);
896 return;
897 }
898#endif
899#if PLATFORM(IOS_FAMILY)
900 if (decoder.messageName() == Messages::WebPage::GetSelectionContext::name()) {
901 IPC::handleMessage<Messages::WebPage::GetSelectionContext>(decoder, this, &WebPage::getSelectionContext);
902 return;
903 }
904#endif
905#if PLATFORM(IOS_FAMILY)
906 if (decoder.messageName() == Messages::WebPage::SetAllowsMediaDocumentInlinePlayback::name()) {
907 IPC::handleMessage<Messages::WebPage::SetAllowsMediaDocumentInlinePlayback>(decoder, this, &WebPage::setAllowsMediaDocumentInlinePlayback);
908 return;
909 }
910#endif
911#if PLATFORM(IOS_FAMILY)
912 if (decoder.messageName() == Messages::WebPage::HandleTwoFingerTapAtPoint::name()) {
913 IPC::handleMessage<Messages::WebPage::HandleTwoFingerTapAtPoint>(decoder, this, &WebPage::handleTwoFingerTapAtPoint);
914 return;
915 }
916#endif
917#if PLATFORM(IOS_FAMILY)
918 if (decoder.messageName() == Messages::WebPage::HandleStylusSingleTapAtPoint::name()) {
919 IPC::handleMessage<Messages::WebPage::HandleStylusSingleTapAtPoint>(decoder, this, &WebPage::handleStylusSingleTapAtPoint);
920 return;
921 }
922#endif
923#if PLATFORM(IOS_FAMILY)
924 if (decoder.messageName() == Messages::WebPage::SetForceAlwaysUserScalable::name()) {
925 IPC::handleMessage<Messages::WebPage::SetForceAlwaysUserScalable>(decoder, this, &WebPage::setForceAlwaysUserScalable);
926 return;
927 }
928#endif
929#if PLATFORM(IOS_FAMILY)
930 if (decoder.messageName() == Messages::WebPage::GetRectsForGranularityWithSelectionOffset::name()) {
931 IPC::handleMessage<Messages::WebPage::GetRectsForGranularityWithSelectionOffset>(decoder, this, &WebPage::getRectsForGranularityWithSelectionOffset);
932 return;
933 }
934#endif
935#if PLATFORM(IOS_FAMILY)
936 if (decoder.messageName() == Messages::WebPage::GetRectsAtSelectionOffsetWithText::name()) {
937 IPC::handleMessage<Messages::WebPage::GetRectsAtSelectionOffsetWithText>(decoder, this, &WebPage::getRectsAtSelectionOffsetWithText);
938 return;
939 }
940#endif
941#if PLATFORM(IOS_FAMILY)
942 if (decoder.messageName() == Messages::WebPage::StoreSelectionForAccessibility::name()) {
943 IPC::handleMessage<Messages::WebPage::StoreSelectionForAccessibility>(decoder, this, &WebPage::storeSelectionForAccessibility);
944 return;
945 }
946#endif
947#if PLATFORM(IOS_FAMILY)
948 if (decoder.messageName() == Messages::WebPage::StartAutoscrollAtPosition::name()) {
949 IPC::handleMessage<Messages::WebPage::StartAutoscrollAtPosition>(decoder, this, &WebPage::startAutoscrollAtPosition);
950 return;
951 }
952#endif
953#if PLATFORM(IOS_FAMILY)
954 if (decoder.messageName() == Messages::WebPage::CancelAutoscroll::name()) {
955 IPC::handleMessage<Messages::WebPage::CancelAutoscroll>(decoder, this, &WebPage::cancelAutoscroll);
956 return;
957 }
958#endif
959#if PLATFORM(IOS_FAMILY)
960 if (decoder.messageName() == Messages::WebPage::RequestFocusedElementInformation::name()) {
961 IPC::handleMessage<Messages::WebPage::RequestFocusedElementInformation>(decoder, this, &WebPage::requestFocusedElementInformation);
962 return;
963 }
964#endif
965#if PLATFORM(IOS_FAMILY)
966 if (decoder.messageName() == Messages::WebPage::HardwareKeyboardAvailabilityChanged::name()) {
967 IPC::handleMessage<Messages::WebPage::HardwareKeyboardAvailabilityChanged>(decoder, this, &WebPage::hardwareKeyboardAvailabilityChanged);
968 return;
969 }
970#endif
971#if PLATFORM(IOS_FAMILY)
972 if (decoder.messageName() == Messages::WebPage::SetIsShowingInputViewForFocusedElement::name()) {
973 IPC::handleMessage<Messages::WebPage::SetIsShowingInputViewForFocusedElement>(decoder, this, &WebPage::setIsShowingInputViewForFocusedElement);
974 return;
975 }
976#endif
977#if PLATFORM(IOS_FAMILY)
978 if (decoder.messageName() == Messages::WebPage::UpdateSelectionWithDelta::name()) {
979 IPC::handleMessageAsync<Messages::WebPage::UpdateSelectionWithDelta>(connection, decoder, this, &WebPage::updateSelectionWithDelta);
980 return;
981 }
982#endif
983#if PLATFORM(IOS_FAMILY)
984 if (decoder.messageName() == Messages::WebPage::RequestDocumentEditingContext::name()) {
985 IPC::handleMessageAsync<Messages::WebPage::RequestDocumentEditingContext>(connection, decoder, this, &WebPage::requestDocumentEditingContext);
986 return;
987 }
988#endif
989#if PLATFORM(IOS_FAMILY)
990 if (decoder.messageName() == Messages::WebPage::GenerateSyntheticEditingCommand::name()) {
991 IPC::handleMessage<Messages::WebPage::GenerateSyntheticEditingCommand>(decoder, this, &WebPage::generateSyntheticEditingCommand);
992 return;
993 }
994#endif
995 if (decoder.messageName() == Messages::WebPage::SetControlledByAutomation::name()) {
996 IPC::handleMessage<Messages::WebPage::SetControlledByAutomation>(decoder, this, &WebPage::setControlledByAutomation);
997 return;
998 }
999 if (decoder.messageName() == Messages::WebPage::ConnectInspector::name()) {
1000 IPC::handleMessage<Messages::WebPage::ConnectInspector>(decoder, this, &WebPage::connectInspector);
1001 return;
1002 }
1003 if (decoder.messageName() == Messages::WebPage::DisconnectInspector::name()) {
1004 IPC::handleMessage<Messages::WebPage::DisconnectInspector>(decoder, this, &WebPage::disconnectInspector);
1005 return;
1006 }
1007 if (decoder.messageName() == Messages::WebPage::SendMessageToTargetBackend::name()) {
1008 IPC::handleMessage<Messages::WebPage::SendMessageToTargetBackend>(decoder, this, &WebPage::sendMessageToTargetBackend);
1009 return;
1010 }
1011#if ENABLE(REMOTE_INSPECTOR)
1012 if (decoder.messageName() == Messages::WebPage::SetIndicating::name()) {
1013 IPC::handleMessage<Messages::WebPage::SetIndicating>(decoder, this, &WebPage::setIndicating);
1014 return;
1015 }
1016#endif
1017#if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
1018 if (decoder.messageName() == Messages::WebPage::TouchEvent::name()) {
1019 IPC::handleMessage<Messages::WebPage::TouchEvent>(decoder, this, &WebPage::touchEvent);
1020 return;
1021 }
1022#endif
1023#if ENABLE(POINTER_EVENTS)
1024 if (decoder.messageName() == Messages::WebPage::CancelPointer::name()) {
1025 IPC::handleMessage<Messages::WebPage::CancelPointer>(decoder, this, &WebPage::cancelPointer);
1026 return;
1027 }
1028#endif
1029#if ENABLE(POINTER_EVENTS)
1030 if (decoder.messageName() == Messages::WebPage::TouchWithIdentifierWasRemoved::name()) {
1031 IPC::handleMessage<Messages::WebPage::TouchWithIdentifierWasRemoved>(decoder, this, &WebPage::touchWithIdentifierWasRemoved);
1032 return;
1033 }
1034#endif
1035#if ENABLE(INPUT_TYPE_COLOR)
1036 if (decoder.messageName() == Messages::WebPage::DidEndColorPicker::name()) {
1037 IPC::handleMessage<Messages::WebPage::DidEndColorPicker>(decoder, this, &WebPage::didEndColorPicker);
1038 return;
1039 }
1040#endif
1041#if ENABLE(INPUT_TYPE_COLOR)
1042 if (decoder.messageName() == Messages::WebPage::DidChooseColor::name()) {
1043 IPC::handleMessage<Messages::WebPage::DidChooseColor>(decoder, this, &WebPage::didChooseColor);
1044 return;
1045 }
1046#endif
1047#if ENABLE(DATALIST_ELEMENT)
1048 if (decoder.messageName() == Messages::WebPage::DidSelectDataListOption::name()) {
1049 IPC::handleMessage<Messages::WebPage::DidSelectDataListOption>(decoder, this, &WebPage::didSelectDataListOption);
1050 return;
1051 }
1052#endif
1053#if ENABLE(DATALIST_ELEMENT)
1054 if (decoder.messageName() == Messages::WebPage::DidCloseSuggestions::name()) {
1055 IPC::handleMessage<Messages::WebPage::DidCloseSuggestions>(decoder, this, &WebPage::didCloseSuggestions);
1056 return;
1057 }
1058#endif
1059#if ENABLE(CONTEXT_MENUS)
1060 if (decoder.messageName() == Messages::WebPage::ContextMenuHidden::name()) {
1061 IPC::handleMessage<Messages::WebPage::ContextMenuHidden>(decoder, this, &WebPage::contextMenuHidden);
1062 return;
1063 }
1064#endif
1065#if ENABLE(CONTEXT_MENUS)
1066 if (decoder.messageName() == Messages::WebPage::ContextMenuForKeyEvent::name()) {
1067 IPC::handleMessage<Messages::WebPage::ContextMenuForKeyEvent>(decoder, this, &WebPage::contextMenuForKeyEvent);
1068 return;
1069 }
1070#endif
1071 if (decoder.messageName() == Messages::WebPage::ScrollBy::name()) {
1072 IPC::handleMessage<Messages::WebPage::ScrollBy>(decoder, this, &WebPage::scrollBy);
1073 return;
1074 }
1075 if (decoder.messageName() == Messages::WebPage::CenterSelectionInVisibleArea::name()) {
1076 IPC::handleMessage<Messages::WebPage::CenterSelectionInVisibleArea>(decoder, this, &WebPage::centerSelectionInVisibleArea);
1077 return;
1078 }
1079 if (decoder.messageName() == Messages::WebPage::GoToBackForwardItem::name()) {
1080 IPC::handleMessage<Messages::WebPage::GoToBackForwardItem>(decoder, this, &WebPage::goToBackForwardItem);
1081 return;
1082 }
1083 if (decoder.messageName() == Messages::WebPage::TryRestoreScrollPosition::name()) {
1084 IPC::handleMessage<Messages::WebPage::TryRestoreScrollPosition>(decoder, this, &WebPage::tryRestoreScrollPosition);
1085 return;
1086 }
1087 if (decoder.messageName() == Messages::WebPage::LoadURLInFrame::name()) {
1088 IPC::handleMessage<Messages::WebPage::LoadURLInFrame>(decoder, this, &WebPage::loadURLInFrame);
1089 return;
1090 }
1091 if (decoder.messageName() == Messages::WebPage::LoadDataInFrame::name()) {
1092 IPC::handleMessage<Messages::WebPage::LoadDataInFrame>(decoder, this, &WebPage::loadDataInFrame);
1093 return;
1094 }
1095 if (decoder.messageName() == Messages::WebPage::LoadRequest::name()) {
1096 IPC::handleMessage<Messages::WebPage::LoadRequest>(decoder, this, &WebPage::loadRequest);
1097 return;
1098 }
1099 if (decoder.messageName() == Messages::WebPage::LoadData::name()) {
1100 IPC::handleMessage<Messages::WebPage::LoadData>(decoder, this, &WebPage::loadData);
1101 return;
1102 }
1103 if (decoder.messageName() == Messages::WebPage::LoadAlternateHTML::name()) {
1104 IPC::handleMessage<Messages::WebPage::LoadAlternateHTML>(decoder, this, &WebPage::loadAlternateHTML);
1105 return;
1106 }
1107 if (decoder.messageName() == Messages::WebPage::NavigateToPDFLinkWithSimulatedClick::name()) {
1108 IPC::handleMessage<Messages::WebPage::NavigateToPDFLinkWithSimulatedClick>(decoder, this, &WebPage::navigateToPDFLinkWithSimulatedClick);
1109 return;
1110 }
1111 if (decoder.messageName() == Messages::WebPage::Reload::name()) {
1112 IPC::handleMessage<Messages::WebPage::Reload>(decoder, this, &WebPage::reload);
1113 return;
1114 }
1115 if (decoder.messageName() == Messages::WebPage::StopLoading::name()) {
1116 IPC::handleMessage<Messages::WebPage::StopLoading>(decoder, this, &WebPage::stopLoading);
1117 return;
1118 }
1119 if (decoder.messageName() == Messages::WebPage::StopLoadingFrame::name()) {
1120 IPC::handleMessage<Messages::WebPage::StopLoadingFrame>(decoder, this, &WebPage::stopLoadingFrame);
1121 return;
1122 }
1123 if (decoder.messageName() == Messages::WebPage::RestoreSession::name()) {
1124 IPC::handleMessage<Messages::WebPage::RestoreSession>(decoder, this, &WebPage::restoreSession);
1125 return;
1126 }
1127 if (decoder.messageName() == Messages::WebPage::UpdateBackForwardListForReattach::name()) {
1128 IPC::handleMessage<Messages::WebPage::UpdateBackForwardListForReattach>(decoder, this, &WebPage::updateBackForwardListForReattach);
1129 return;
1130 }
1131 if (decoder.messageName() == Messages::WebPage::SetCurrentHistoryItemForReattach::name()) {
1132 IPC::handleMessage<Messages::WebPage::SetCurrentHistoryItemForReattach>(decoder, this, &WebPage::setCurrentHistoryItemForReattach);
1133 return;
1134 }
1135 if (decoder.messageName() == Messages::WebPage::DidRemoveBackForwardItem::name()) {
1136 IPC::handleMessage<Messages::WebPage::DidRemoveBackForwardItem>(decoder, this, &WebPage::didRemoveBackForwardItem);
1137 return;
1138 }
1139 if (decoder.messageName() == Messages::WebPage::UpdateWebsitePolicies::name()) {
1140 IPC::handleMessage<Messages::WebPage::UpdateWebsitePolicies>(decoder, this, &WebPage::updateWebsitePolicies);
1141 return;
1142 }
1143 if (decoder.messageName() == Messages::WebPage::DidReceivePolicyDecision::name()) {
1144 IPC::handleMessage<Messages::WebPage::DidReceivePolicyDecision>(decoder, this, &WebPage::didReceivePolicyDecision);
1145 return;
1146 }
1147 if (decoder.messageName() == Messages::WebPage::ContinueWillSubmitForm::name()) {
1148 IPC::handleMessage<Messages::WebPage::ContinueWillSubmitForm>(decoder, this, &WebPage::continueWillSubmitForm);
1149 return;
1150 }
1151 if (decoder.messageName() == Messages::WebPage::ClearSelection::name()) {
1152 IPC::handleMessage<Messages::WebPage::ClearSelection>(decoder, this, &WebPage::clearSelection);
1153 return;
1154 }
1155 if (decoder.messageName() == Messages::WebPage::RestoreSelectionInFocusedEditableElement::name()) {
1156 IPC::handleMessage<Messages::WebPage::RestoreSelectionInFocusedEditableElement>(decoder, this, &WebPage::restoreSelectionInFocusedEditableElement);
1157 return;
1158 }
1159 if (decoder.messageName() == Messages::WebPage::GetContentsAsString::name()) {
1160 IPC::handleMessage<Messages::WebPage::GetContentsAsString>(decoder, this, &WebPage::getContentsAsString);
1161 return;
1162 }
1163#if PLATFORM(COCOA)
1164 if (decoder.messageName() == Messages::WebPage::GetContentsAsAttributedString::name()) {
1165 IPC::handleMessageAsync<Messages::WebPage::GetContentsAsAttributedString>(connection, decoder, this, &WebPage::getContentsAsAttributedString);
1166 return;
1167 }
1168#endif
1169#if ENABLE(MHTML)
1170 if (decoder.messageName() == Messages::WebPage::GetContentsAsMHTMLData::name()) {
1171 IPC::handleMessage<Messages::WebPage::GetContentsAsMHTMLData>(decoder, this, &WebPage::getContentsAsMHTMLData);
1172 return;
1173 }
1174#endif
1175 if (decoder.messageName() == Messages::WebPage::GetMainResourceDataOfFrame::name()) {
1176 IPC::handleMessage<Messages::WebPage::GetMainResourceDataOfFrame>(decoder, this, &WebPage::getMainResourceDataOfFrame);
1177 return;
1178 }
1179 if (decoder.messageName() == Messages::WebPage::GetResourceDataFromFrame::name()) {
1180 IPC::handleMessage<Messages::WebPage::GetResourceDataFromFrame>(decoder, this, &WebPage::getResourceDataFromFrame);
1181 return;
1182 }
1183 if (decoder.messageName() == Messages::WebPage::GetRenderTreeExternalRepresentation::name()) {
1184 IPC::handleMessage<Messages::WebPage::GetRenderTreeExternalRepresentation>(decoder, this, &WebPage::getRenderTreeExternalRepresentation);
1185 return;
1186 }
1187 if (decoder.messageName() == Messages::WebPage::GetSelectionOrContentsAsString::name()) {
1188 IPC::handleMessage<Messages::WebPage::GetSelectionOrContentsAsString>(decoder, this, &WebPage::getSelectionOrContentsAsString);
1189 return;
1190 }
1191 if (decoder.messageName() == Messages::WebPage::GetSelectionAsWebArchiveData::name()) {
1192 IPC::handleMessage<Messages::WebPage::GetSelectionAsWebArchiveData>(decoder, this, &WebPage::getSelectionAsWebArchiveData);
1193 return;
1194 }
1195 if (decoder.messageName() == Messages::WebPage::GetSourceForFrame::name()) {
1196 IPC::handleMessage<Messages::WebPage::GetSourceForFrame>(decoder, this, &WebPage::getSourceForFrame);
1197 return;
1198 }
1199 if (decoder.messageName() == Messages::WebPage::GetWebArchiveOfFrame::name()) {
1200 IPC::handleMessage<Messages::WebPage::GetWebArchiveOfFrame>(decoder, this, &WebPage::getWebArchiveOfFrame);
1201 return;
1202 }
1203 if (decoder.messageName() == Messages::WebPage::RunJavaScriptInMainFrameScriptWorld::name()) {
1204 IPC::handleMessage<Messages::WebPage::RunJavaScriptInMainFrameScriptWorld>(decoder, this, &WebPage::runJavaScriptInMainFrameScriptWorld);
1205 return;
1206 }
1207 if (decoder.messageName() == Messages::WebPage::RunJavaScriptInFrame::name()) {
1208 IPC::handleMessage<Messages::WebPage::RunJavaScriptInFrame>(decoder, this, &WebPage::runJavaScriptInFrame);
1209 return;
1210 }
1211 if (decoder.messageName() == Messages::WebPage::ForceRepaint::name()) {
1212 IPC::handleMessage<Messages::WebPage::ForceRepaint>(decoder, this, &WebPage::forceRepaint);
1213 return;
1214 }
1215 if (decoder.messageName() == Messages::WebPage::SelectAll::name()) {
1216 IPC::handleMessage<Messages::WebPage::SelectAll>(decoder, this, &WebPage::selectAll);
1217 return;
1218 }
1219 if (decoder.messageName() == Messages::WebPage::ScheduleFullEditorStateUpdate::name()) {
1220 IPC::handleMessage<Messages::WebPage::ScheduleFullEditorStateUpdate>(decoder, this, &WebPage::scheduleFullEditorStateUpdate);
1221 return;
1222 }
1223#if PLATFORM(COCOA)
1224 if (decoder.messageName() == Messages::WebPage::PerformDictionaryLookupOfCurrentSelection::name()) {
1225 IPC::handleMessage<Messages::WebPage::PerformDictionaryLookupOfCurrentSelection>(decoder, this, &WebPage::performDictionaryLookupOfCurrentSelection);
1226 return;
1227 }
1228#endif
1229#if PLATFORM(COCOA)
1230 if (decoder.messageName() == Messages::WebPage::PerformDictionaryLookupAtLocation::name()) {
1231 IPC::handleMessage<Messages::WebPage::PerformDictionaryLookupAtLocation>(decoder, this, &WebPage::performDictionaryLookupAtLocation);
1232 return;
1233 }
1234#endif
1235#if ENABLE(DATA_DETECTION)
1236 if (decoder.messageName() == Messages::WebPage::DetectDataInAllFrames::name()) {
1237 IPC::handleMessageAsync<Messages::WebPage::DetectDataInAllFrames>(connection, decoder, this, &WebPage::detectDataInAllFrames);
1238 return;
1239 }
1240#endif
1241#if ENABLE(DATA_DETECTION)
1242 if (decoder.messageName() == Messages::WebPage::RemoveDataDetectedLinks::name()) {
1243 IPC::handleMessageAsync<Messages::WebPage::RemoveDataDetectedLinks>(connection, decoder, this, &WebPage::removeDataDetectedLinks);
1244 return;
1245 }
1246#endif
1247 if (decoder.messageName() == Messages::WebPage::ChangeFont::name()) {
1248 IPC::handleMessage<Messages::WebPage::ChangeFont>(decoder, this, &WebPage::changeFont);
1249 return;
1250 }
1251 if (decoder.messageName() == Messages::WebPage::ChangeFontAttributes::name()) {
1252 IPC::handleMessage<Messages::WebPage::ChangeFontAttributes>(decoder, this, &WebPage::changeFontAttributes);
1253 return;
1254 }
1255 if (decoder.messageName() == Messages::WebPage::PreferencesDidChange::name()) {
1256 IPC::handleMessage<Messages::WebPage::PreferencesDidChange>(decoder, this, &WebPage::preferencesDidChange);
1257 return;
1258 }
1259 if (decoder.messageName() == Messages::WebPage::SetUserAgent::name()) {
1260 IPC::handleMessage<Messages::WebPage::SetUserAgent>(decoder, this, &WebPage::setUserAgent);
1261 return;
1262 }
1263 if (decoder.messageName() == Messages::WebPage::SetCustomTextEncodingName::name()) {
1264 IPC::handleMessage<Messages::WebPage::SetCustomTextEncodingName>(decoder, this, &WebPage::setCustomTextEncodingName);
1265 return;
1266 }
1267 if (decoder.messageName() == Messages::WebPage::SuspendActiveDOMObjectsAndAnimations::name()) {
1268 IPC::handleMessage<Messages::WebPage::SuspendActiveDOMObjectsAndAnimations>(decoder, this, &WebPage::suspendActiveDOMObjectsAndAnimations);
1269 return;
1270 }
1271 if (decoder.messageName() == Messages::WebPage::ResumeActiveDOMObjectsAndAnimations::name()) {
1272 IPC::handleMessage<Messages::WebPage::ResumeActiveDOMObjectsAndAnimations>(decoder, this, &WebPage::resumeActiveDOMObjectsAndAnimations);
1273 return;
1274 }
1275 if (decoder.messageName() == Messages::WebPage::Close::name()) {
1276 IPC::handleMessage<Messages::WebPage::Close>(decoder, this, &WebPage::close);
1277 return;
1278 }
1279 if (decoder.messageName() == Messages::WebPage::TryClose::name()) {
1280 IPC::handleMessage<Messages::WebPage::TryClose>(decoder, this, &WebPage::tryClose);
1281 return;
1282 }
1283 if (decoder.messageName() == Messages::WebPage::SetEditable::name()) {
1284 IPC::handleMessage<Messages::WebPage::SetEditable>(decoder, this, &WebPage::setEditable);
1285 return;
1286 }
1287 if (decoder.messageName() == Messages::WebPage::ValidateCommand::name()) {
1288 IPC::handleMessage<Messages::WebPage::ValidateCommand>(decoder, this, &WebPage::validateCommand);
1289 return;
1290 }
1291 if (decoder.messageName() == Messages::WebPage::ExecuteEditCommand::name()) {
1292 IPC::handleMessage<Messages::WebPage::ExecuteEditCommand>(decoder, this, &WebPage::executeEditCommand);
1293 return;
1294 }
1295 if (decoder.messageName() == Messages::WebPage::IncreaseListLevel::name()) {
1296 IPC::handleMessage<Messages::WebPage::IncreaseListLevel>(decoder, this, &WebPage::increaseListLevel);
1297 return;
1298 }
1299 if (decoder.messageName() == Messages::WebPage::DecreaseListLevel::name()) {
1300 IPC::handleMessage<Messages::WebPage::DecreaseListLevel>(decoder, this, &WebPage::decreaseListLevel);
1301 return;
1302 }
1303 if (decoder.messageName() == Messages::WebPage::ChangeListType::name()) {
1304 IPC::handleMessage<Messages::WebPage::ChangeListType>(decoder, this, &WebPage::changeListType);
1305 return;
1306 }
1307 if (decoder.messageName() == Messages::WebPage::SetBaseWritingDirection::name()) {
1308 IPC::handleMessage<Messages::WebPage::SetBaseWritingDirection>(decoder, this, &WebPage::setBaseWritingDirection);
1309 return;
1310 }
1311 if (decoder.messageName() == Messages::WebPage::SetNeedsFontAttributes::name()) {
1312 IPC::handleMessage<Messages::WebPage::SetNeedsFontAttributes>(decoder, this, &WebPage::setNeedsFontAttributes);
1313 return;
1314 }
1315 if (decoder.messageName() == Messages::WebPage::RequestFontAttributesAtSelectionStart::name()) {
1316 IPC::handleMessage<Messages::WebPage::RequestFontAttributesAtSelectionStart>(decoder, this, &WebPage::requestFontAttributesAtSelectionStart);
1317 return;
1318 }
1319 if (decoder.messageName() == Messages::WebPage::DidRemoveEditCommand::name()) {
1320 IPC::handleMessage<Messages::WebPage::DidRemoveEditCommand>(decoder, this, &WebPage::didRemoveEditCommand);
1321 return;
1322 }
1323 if (decoder.messageName() == Messages::WebPage::ReapplyEditCommand::name()) {
1324 IPC::handleMessage<Messages::WebPage::ReapplyEditCommand>(decoder, this, &WebPage::reapplyEditCommand);
1325 return;
1326 }
1327 if (decoder.messageName() == Messages::WebPage::UnapplyEditCommand::name()) {
1328 IPC::handleMessage<Messages::WebPage::UnapplyEditCommand>(decoder, this, &WebPage::unapplyEditCommand);
1329 return;
1330 }
1331 if (decoder.messageName() == Messages::WebPage::SetPageAndTextZoomFactors::name()) {
1332 IPC::handleMessage<Messages::WebPage::SetPageAndTextZoomFactors>(decoder, this, &WebPage::setPageAndTextZoomFactors);
1333 return;
1334 }
1335 if (decoder.messageName() == Messages::WebPage::SetPageZoomFactor::name()) {
1336 IPC::handleMessage<Messages::WebPage::SetPageZoomFactor>(decoder, this, &WebPage::setPageZoomFactor);
1337 return;
1338 }
1339 if (decoder.messageName() == Messages::WebPage::SetTextZoomFactor::name()) {
1340 IPC::handleMessage<Messages::WebPage::SetTextZoomFactor>(decoder, this, &WebPage::setTextZoomFactor);
1341 return;
1342 }
1343 if (decoder.messageName() == Messages::WebPage::WindowScreenDidChange::name()) {
1344 IPC::handleMessage<Messages::WebPage::WindowScreenDidChange>(decoder, this, &WebPage::windowScreenDidChange);
1345 return;
1346 }
1347 if (decoder.messageName() == Messages::WebPage::AccessibilitySettingsDidChange::name()) {
1348 IPC::handleMessage<Messages::WebPage::AccessibilitySettingsDidChange>(decoder, this, &WebPage::accessibilitySettingsDidChange);
1349 return;
1350 }
1351 if (decoder.messageName() == Messages::WebPage::ScalePage::name()) {
1352 IPC::handleMessage<Messages::WebPage::ScalePage>(decoder, this, &WebPage::scalePage);
1353 return;
1354 }
1355 if (decoder.messageName() == Messages::WebPage::ScalePageInViewCoordinates::name()) {
1356 IPC::handleMessage<Messages::WebPage::ScalePageInViewCoordinates>(decoder, this, &WebPage::scalePageInViewCoordinates);
1357 return;
1358 }
1359 if (decoder.messageName() == Messages::WebPage::ScaleView::name()) {
1360 IPC::handleMessage<Messages::WebPage::ScaleView>(decoder, this, &WebPage::scaleView);
1361 return;
1362 }
1363 if (decoder.messageName() == Messages::WebPage::SetUseFixedLayout::name()) {
1364 IPC::handleMessage<Messages::WebPage::SetUseFixedLayout>(decoder, this, &WebPage::setUseFixedLayout);
1365 return;
1366 }
1367 if (decoder.messageName() == Messages::WebPage::SetFixedLayoutSize::name()) {
1368 IPC::handleMessage<Messages::WebPage::SetFixedLayoutSize>(decoder, this, &WebPage::setFixedLayoutSize);
1369 return;
1370 }
1371 if (decoder.messageName() == Messages::WebPage::ListenForLayoutMilestones::name()) {
1372 IPC::handleMessage<Messages::WebPage::ListenForLayoutMilestones>(decoder, this, &WebPage::listenForLayoutMilestones);
1373 return;
1374 }
1375 if (decoder.messageName() == Messages::WebPage::SetSuppressScrollbarAnimations::name()) {
1376 IPC::handleMessage<Messages::WebPage::SetSuppressScrollbarAnimations>(decoder, this, &WebPage::setSuppressScrollbarAnimations);
1377 return;
1378 }
1379 if (decoder.messageName() == Messages::WebPage::SetEnableVerticalRubberBanding::name()) {
1380 IPC::handleMessage<Messages::WebPage::SetEnableVerticalRubberBanding>(decoder, this, &WebPage::setEnableVerticalRubberBanding);
1381 return;
1382 }
1383 if (decoder.messageName() == Messages::WebPage::SetEnableHorizontalRubberBanding::name()) {
1384 IPC::handleMessage<Messages::WebPage::SetEnableHorizontalRubberBanding>(decoder, this, &WebPage::setEnableHorizontalRubberBanding);
1385 return;
1386 }
1387 if (decoder.messageName() == Messages::WebPage::SetBackgroundExtendsBeyondPage::name()) {
1388 IPC::handleMessage<Messages::WebPage::SetBackgroundExtendsBeyondPage>(decoder, this, &WebPage::setBackgroundExtendsBeyondPage);
1389 return;
1390 }
1391 if (decoder.messageName() == Messages::WebPage::SetPaginationMode::name()) {
1392 IPC::handleMessage<Messages::WebPage::SetPaginationMode>(decoder, this, &WebPage::setPaginationMode);
1393 return;
1394 }
1395 if (decoder.messageName() == Messages::WebPage::SetPaginationBehavesLikeColumns::name()) {
1396 IPC::handleMessage<Messages::WebPage::SetPaginationBehavesLikeColumns>(decoder, this, &WebPage::setPaginationBehavesLikeColumns);
1397 return;
1398 }
1399 if (decoder.messageName() == Messages::WebPage::SetPageLength::name()) {
1400 IPC::handleMessage<Messages::WebPage::SetPageLength>(decoder, this, &WebPage::setPageLength);
1401 return;
1402 }
1403 if (decoder.messageName() == Messages::WebPage::SetGapBetweenPages::name()) {
1404 IPC::handleMessage<Messages::WebPage::SetGapBetweenPages>(decoder, this, &WebPage::setGapBetweenPages);
1405 return;
1406 }
1407 if (decoder.messageName() == Messages::WebPage::SetPaginationLineGridEnabled::name()) {
1408 IPC::handleMessage<Messages::WebPage::SetPaginationLineGridEnabled>(decoder, this, &WebPage::setPaginationLineGridEnabled);
1409 return;
1410 }
1411 if (decoder.messageName() == Messages::WebPage::PostInjectedBundleMessage::name()) {
1412 IPC::handleMessage<Messages::WebPage::PostInjectedBundleMessage>(decoder, this, &WebPage::postInjectedBundleMessage);
1413 return;
1414 }
1415 if (decoder.messageName() == Messages::WebPage::FindString::name()) {
1416 IPC::handleMessage<Messages::WebPage::FindString>(decoder, this, &WebPage::findString);
1417 return;
1418 }
1419 if (decoder.messageName() == Messages::WebPage::FindStringMatches::name()) {
1420 IPC::handleMessage<Messages::WebPage::FindStringMatches>(decoder, this, &WebPage::findStringMatches);
1421 return;
1422 }
1423 if (decoder.messageName() == Messages::WebPage::GetImageForFindMatch::name()) {
1424 IPC::handleMessage<Messages::WebPage::GetImageForFindMatch>(decoder, this, &WebPage::getImageForFindMatch);
1425 return;
1426 }
1427 if (decoder.messageName() == Messages::WebPage::SelectFindMatch::name()) {
1428 IPC::handleMessage<Messages::WebPage::SelectFindMatch>(decoder, this, &WebPage::selectFindMatch);
1429 return;
1430 }
1431 if (decoder.messageName() == Messages::WebPage::HideFindUI::name()) {
1432 IPC::handleMessage<Messages::WebPage::HideFindUI>(decoder, this, &WebPage::hideFindUI);
1433 return;
1434 }
1435 if (decoder.messageName() == Messages::WebPage::CountStringMatches::name()) {
1436 IPC::handleMessage<Messages::WebPage::CountStringMatches>(decoder, this, &WebPage::countStringMatches);
1437 return;
1438 }
1439 if (decoder.messageName() == Messages::WebPage::ReplaceMatches::name()) {
1440 IPC::handleMessage<Messages::WebPage::ReplaceMatches>(decoder, this, &WebPage::replaceMatches);
1441 return;
1442 }
1443 if (decoder.messageName() == Messages::WebPage::AddMIMETypeWithCustomContentProvider::name()) {
1444 IPC::handleMessage<Messages::WebPage::AddMIMETypeWithCustomContentProvider>(decoder, this, &WebPage::addMIMETypeWithCustomContentProvider);
1445 return;
1446 }
1447#if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
1448 if (decoder.messageName() == Messages::WebPage::PerformDragControllerAction::name()) {
1449 IPC::handleMessage<Messages::WebPage::PerformDragControllerAction>(decoder, this, &WebPage::performDragControllerAction);
1450 return;
1451 }
1452#endif
1453#if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
1454 if (decoder.messageName() == Messages::WebPage::PerformDragControllerAction::name()) {
1455 IPC::handleMessage<Messages::WebPage::PerformDragControllerAction>(decoder, this, &WebPage::performDragControllerAction);
1456 return;
1457 }
1458#endif
1459#if ENABLE(DRAG_SUPPORT)
1460 if (decoder.messageName() == Messages::WebPage::DidStartDrag::name()) {
1461 IPC::handleMessage<Messages::WebPage::DidStartDrag>(decoder, this, &WebPage::didStartDrag);
1462 return;
1463 }
1464#endif
1465#if ENABLE(DRAG_SUPPORT)
1466 if (decoder.messageName() == Messages::WebPage::DragEnded::name()) {
1467 IPC::handleMessage<Messages::WebPage::DragEnded>(decoder, this, &WebPage::dragEnded);
1468 return;
1469 }
1470#endif
1471#if ENABLE(DRAG_SUPPORT)
1472 if (decoder.messageName() == Messages::WebPage::DragCancelled::name()) {
1473 IPC::handleMessage<Messages::WebPage::DragCancelled>(decoder, this, &WebPage::dragCancelled);
1474 return;
1475 }
1476#endif
1477#if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
1478 if (decoder.messageName() == Messages::WebPage::RequestDragStart::name()) {
1479 IPC::handleMessage<Messages::WebPage::RequestDragStart>(decoder, this, &WebPage::requestDragStart);
1480 return;
1481 }
1482#endif
1483#if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
1484 if (decoder.messageName() == Messages::WebPage::RequestAdditionalItemsForDragSession::name()) {
1485 IPC::handleMessage<Messages::WebPage::RequestAdditionalItemsForDragSession>(decoder, this, &WebPage::requestAdditionalItemsForDragSession);
1486 return;
1487 }
1488#endif
1489#if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
1490 if (decoder.messageName() == Messages::WebPage::DidConcludeDrop::name()) {
1491 IPC::handleMessage<Messages::WebPage::DidConcludeDrop>(decoder, this, &WebPage::didConcludeDrop);
1492 return;
1493 }
1494#endif
1495 if (decoder.messageName() == Messages::WebPage::DidChangeSelectedIndexForActivePopupMenu::name()) {
1496 IPC::handleMessage<Messages::WebPage::DidChangeSelectedIndexForActivePopupMenu>(decoder, this, &WebPage::didChangeSelectedIndexForActivePopupMenu);
1497 return;
1498 }
1499 if (decoder.messageName() == Messages::WebPage::SetTextForActivePopupMenu::name()) {
1500 IPC::handleMessage<Messages::WebPage::SetTextForActivePopupMenu>(decoder, this, &WebPage::setTextForActivePopupMenu);
1501 return;
1502 }
1503#if PLATFORM(GTK)
1504 if (decoder.messageName() == Messages::WebPage::FailedToShowPopupMenu::name()) {
1505 IPC::handleMessage<Messages::WebPage::FailedToShowPopupMenu>(decoder, this, &WebPage::failedToShowPopupMenu);
1506 return;
1507 }
1508#endif
1509#if ENABLE(CONTEXT_MENUS)
1510 if (decoder.messageName() == Messages::WebPage::DidSelectItemFromActiveContextMenu::name()) {
1511 IPC::handleMessage<Messages::WebPage::DidSelectItemFromActiveContextMenu>(decoder, this, &WebPage::didSelectItemFromActiveContextMenu);
1512 return;
1513 }
1514#endif
1515#if PLATFORM(IOS_FAMILY)
1516 if (decoder.messageName() == Messages::WebPage::DidChooseFilesForOpenPanelWithDisplayStringAndIcon::name()) {
1517 IPC::handleMessage<Messages::WebPage::DidChooseFilesForOpenPanelWithDisplayStringAndIcon>(decoder, this, &WebPage::didChooseFilesForOpenPanelWithDisplayStringAndIcon);
1518 return;
1519 }
1520#endif
1521 if (decoder.messageName() == Messages::WebPage::DidChooseFilesForOpenPanel::name()) {
1522 IPC::handleMessage<Messages::WebPage::DidChooseFilesForOpenPanel>(decoder, this, &WebPage::didChooseFilesForOpenPanel);
1523 return;
1524 }
1525 if (decoder.messageName() == Messages::WebPage::DidCancelForOpenPanel::name()) {
1526 IPC::handleMessage<Messages::WebPage::DidCancelForOpenPanel>(decoder, this, &WebPage::didCancelForOpenPanel);
1527 return;
1528 }
1529 if (decoder.messageName() == Messages::WebPage::DidCompleteShareSheet::name()) {
1530 IPC::handleMessage<Messages::WebPage::DidCompleteShareSheet>(decoder, this, &WebPage::didCompleteShareSheet);
1531 return;
1532 }
1533#if ENABLE(SANDBOX_EXTENSIONS)
1534 if (decoder.messageName() == Messages::WebPage::ExtendSandboxForFilesFromOpenPanel::name()) {
1535 IPC::handleMessage<Messages::WebPage::ExtendSandboxForFilesFromOpenPanel>(decoder, this, &WebPage::extendSandboxForFilesFromOpenPanel);
1536 return;
1537 }
1538#endif
1539 if (decoder.messageName() == Messages::WebPage::AdvanceToNextMisspelling::name()) {
1540 IPC::handleMessage<Messages::WebPage::AdvanceToNextMisspelling>(decoder, this, &WebPage::advanceToNextMisspelling);
1541 return;
1542 }
1543 if (decoder.messageName() == Messages::WebPage::ChangeSpellingToWord::name()) {
1544 IPC::handleMessage<Messages::WebPage::ChangeSpellingToWord>(decoder, this, &WebPage::changeSpellingToWord);
1545 return;
1546 }
1547 if (decoder.messageName() == Messages::WebPage::DidFinishCheckingText::name()) {
1548 IPC::handleMessage<Messages::WebPage::DidFinishCheckingText>(decoder, this, &WebPage::didFinishCheckingText);
1549 return;
1550 }
1551 if (decoder.messageName() == Messages::WebPage::DidCancelCheckingText::name()) {
1552 IPC::handleMessage<Messages::WebPage::DidCancelCheckingText>(decoder, this, &WebPage::didCancelCheckingText);
1553 return;
1554 }
1555#if USE(APPKIT)
1556 if (decoder.messageName() == Messages::WebPage::UppercaseWord::name()) {
1557 IPC::handleMessage<Messages::WebPage::UppercaseWord>(decoder, this, &WebPage::uppercaseWord);
1558 return;
1559 }
1560#endif
1561#if USE(APPKIT)
1562 if (decoder.messageName() == Messages::WebPage::LowercaseWord::name()) {
1563 IPC::handleMessage<Messages::WebPage::LowercaseWord>(decoder, this, &WebPage::lowercaseWord);
1564 return;
1565 }
1566#endif
1567#if USE(APPKIT)
1568 if (decoder.messageName() == Messages::WebPage::CapitalizeWord::name()) {
1569 IPC::handleMessage<Messages::WebPage::CapitalizeWord>(decoder, this, &WebPage::capitalizeWord);
1570 return;
1571 }
1572#endif
1573#if PLATFORM(COCOA)
1574 if (decoder.messageName() == Messages::WebPage::SetSmartInsertDeleteEnabled::name()) {
1575 IPC::handleMessage<Messages::WebPage::SetSmartInsertDeleteEnabled>(decoder, this, &WebPage::setSmartInsertDeleteEnabled);
1576 return;
1577 }
1578#endif
1579#if ENABLE(GEOLOCATION)
1580 if (decoder.messageName() == Messages::WebPage::DidReceiveGeolocationPermissionDecision::name()) {
1581 IPC::handleMessage<Messages::WebPage::DidReceiveGeolocationPermissionDecision>(decoder, this, &WebPage::didReceiveGeolocationPermissionDecision);
1582 return;
1583 }
1584#endif
1585#if ENABLE(MEDIA_STREAM)
1586 if (decoder.messageName() == Messages::WebPage::UserMediaAccessWasGranted::name()) {
1587 IPC::handleMessageAsync<Messages::WebPage::UserMediaAccessWasGranted>(connection, decoder, this, &WebPage::userMediaAccessWasGranted);
1588 return;
1589 }
1590#endif
1591#if ENABLE(MEDIA_STREAM)
1592 if (decoder.messageName() == Messages::WebPage::UserMediaAccessWasDenied::name()) {
1593 IPC::handleMessage<Messages::WebPage::UserMediaAccessWasDenied>(decoder, this, &WebPage::userMediaAccessWasDenied);
1594 return;
1595 }
1596#endif
1597#if ENABLE(MEDIA_STREAM)
1598 if (decoder.messageName() == Messages::WebPage::DidCompleteMediaDeviceEnumeration::name()) {
1599 IPC::handleMessage<Messages::WebPage::DidCompleteMediaDeviceEnumeration>(decoder, this, &WebPage::didCompleteMediaDeviceEnumeration);
1600 return;
1601 }
1602#endif
1603#if ENABLE(MEDIA_STREAM)
1604 if (decoder.messageName() == Messages::WebPage::CaptureDevicesChanged::name()) {
1605 IPC::handleMessage<Messages::WebPage::CaptureDevicesChanged>(decoder, this, &WebPage::captureDevicesChanged);
1606 return;
1607 }
1608#endif
1609#if ENABLE(WEB_RTC)
1610 if (decoder.messageName() == Messages::WebPage::DisableICECandidateFiltering::name()) {
1611 IPC::handleMessage<Messages::WebPage::DisableICECandidateFiltering>(decoder, this, &WebPage::disableICECandidateFiltering);
1612 return;
1613 }
1614#endif
1615#if ENABLE(WEB_RTC)
1616 if (decoder.messageName() == Messages::WebPage::EnableICECandidateFiltering::name()) {
1617 IPC::handleMessage<Messages::WebPage::EnableICECandidateFiltering>(decoder, this, &WebPage::enableICECandidateFiltering);
1618 return;
1619 }
1620#endif
1621#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
1622 if (decoder.messageName() == Messages::WebPage::EnableEnumeratingAllNetworkInterfaces::name()) {
1623 IPC::handleMessage<Messages::WebPage::EnableEnumeratingAllNetworkInterfaces>(decoder, this, &WebPage::enableEnumeratingAllNetworkInterfaces);
1624 return;
1625 }
1626#endif
1627#if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
1628 if (decoder.messageName() == Messages::WebPage::DisableEnumeratingAllNetworkInterfaces::name()) {
1629 IPC::handleMessage<Messages::WebPage::DisableEnumeratingAllNetworkInterfaces>(decoder, this, &WebPage::disableEnumeratingAllNetworkInterfaces);
1630 return;
1631 }
1632#endif
1633 if (decoder.messageName() == Messages::WebPage::StopAllMediaPlayback::name()) {
1634 IPC::handleMessage<Messages::WebPage::StopAllMediaPlayback>(decoder, this, &WebPage::stopAllMediaPlayback);
1635 return;
1636 }
1637 if (decoder.messageName() == Messages::WebPage::SuspendAllMediaPlayback::name()) {
1638 IPC::handleMessage<Messages::WebPage::SuspendAllMediaPlayback>(decoder, this, &WebPage::suspendAllMediaPlayback);
1639 return;
1640 }
1641 if (decoder.messageName() == Messages::WebPage::ResumeAllMediaPlayback::name()) {
1642 IPC::handleMessage<Messages::WebPage::ResumeAllMediaPlayback>(decoder, this, &WebPage::resumeAllMediaPlayback);
1643 return;
1644 }
1645 if (decoder.messageName() == Messages::WebPage::DidReceiveNotificationPermissionDecision::name()) {
1646 IPC::handleMessage<Messages::WebPage::DidReceiveNotificationPermissionDecision>(decoder, this, &WebPage::didReceiveNotificationPermissionDecision);
1647 return;
1648 }
1649 if (decoder.messageName() == Messages::WebPage::BeginPrinting::name()) {
1650 IPC::handleMessage<Messages::WebPage::BeginPrinting>(decoder, this, &WebPage::beginPrinting);
1651 return;
1652 }
1653 if (decoder.messageName() == Messages::WebPage::EndPrinting::name()) {
1654 IPC::handleMessage<Messages::WebPage::EndPrinting>(decoder, this, &WebPage::endPrinting);
1655 return;
1656 }
1657 if (decoder.messageName() == Messages::WebPage::ComputePagesForPrinting::name()) {
1658 IPC::handleMessage<Messages::WebPage::ComputePagesForPrinting>(decoder, this, &WebPage::computePagesForPrinting);
1659 return;
1660 }
1661#if PLATFORM(COCOA)
1662 if (decoder.messageName() == Messages::WebPage::DrawRectToImage::name()) {
1663 IPC::handleMessage<Messages::WebPage::DrawRectToImage>(decoder, this, &WebPage::drawRectToImage);
1664 return;
1665 }
1666#endif
1667#if PLATFORM(COCOA)
1668 if (decoder.messageName() == Messages::WebPage::DrawPagesToPDF::name()) {
1669 IPC::handleMessage<Messages::WebPage::DrawPagesToPDF>(decoder, this, &WebPage::drawPagesToPDF);
1670 return;
1671 }
1672#endif
1673#if PLATFORM(GTK)
1674 if (decoder.messageName() == Messages::WebPage::DrawPagesForPrinting::name()) {
1675 IPC::handleMessage<Messages::WebPage::DrawPagesForPrinting>(decoder, this, &WebPage::drawPagesForPrinting);
1676 return;
1677 }
1678#endif
1679 if (decoder.messageName() == Messages::WebPage::SetMediaVolume::name()) {
1680 IPC::handleMessage<Messages::WebPage::SetMediaVolume>(decoder, this, &WebPage::setMediaVolume);
1681 return;
1682 }
1683 if (decoder.messageName() == Messages::WebPage::SetMuted::name()) {
1684 IPC::handleMessage<Messages::WebPage::SetMuted>(decoder, this, &WebPage::setMuted);
1685 return;
1686 }
1687 if (decoder.messageName() == Messages::WebPage::SetMayStartMediaWhenInWindow::name()) {
1688 IPC::handleMessage<Messages::WebPage::SetMayStartMediaWhenInWindow>(decoder, this, &WebPage::setMayStartMediaWhenInWindow);
1689 return;
1690 }
1691 if (decoder.messageName() == Messages::WebPage::StopMediaCapture::name()) {
1692 IPC::handleMessage<Messages::WebPage::StopMediaCapture>(decoder, this, &WebPage::stopMediaCapture);
1693 return;
1694 }
1695#if ENABLE(MEDIA_SESSION)
1696 if (decoder.messageName() == Messages::WebPage::HandleMediaEvent::name()) {
1697 IPC::handleMessage<Messages::WebPage::HandleMediaEvent>(decoder, this, &WebPage::handleMediaEvent);
1698 return;
1699 }
1700#endif
1701#if ENABLE(MEDIA_SESSION)
1702 if (decoder.messageName() == Messages::WebPage::SetVolumeOfMediaElement::name()) {
1703 IPC::handleMessage<Messages::WebPage::SetVolumeOfMediaElement>(decoder, this, &WebPage::setVolumeOfMediaElement);
1704 return;
1705 }
1706#endif
1707 if (decoder.messageName() == Messages::WebPage::SetCanRunBeforeUnloadConfirmPanel::name()) {
1708 IPC::handleMessage<Messages::WebPage::SetCanRunBeforeUnloadConfirmPanel>(decoder, this, &WebPage::setCanRunBeforeUnloadConfirmPanel);
1709 return;
1710 }
1711 if (decoder.messageName() == Messages::WebPage::SetCanRunModal::name()) {
1712 IPC::handleMessage<Messages::WebPage::SetCanRunModal>(decoder, this, &WebPage::setCanRunModal);
1713 return;
1714 }
1715#if PLATFORM(GTK)
1716 if (decoder.messageName() == Messages::WebPage::SetComposition::name()) {
1717 IPC::handleMessage<Messages::WebPage::SetComposition>(decoder, this, &WebPage::setComposition);
1718 return;
1719 }
1720#endif
1721#if PLATFORM(GTK)
1722 if (decoder.messageName() == Messages::WebPage::ConfirmComposition::name()) {
1723 IPC::handleMessage<Messages::WebPage::ConfirmComposition>(decoder, this, &WebPage::confirmComposition);
1724 return;
1725 }
1726#endif
1727#if PLATFORM(GTK)
1728 if (decoder.messageName() == Messages::WebPage::CancelComposition::name()) {
1729 IPC::handleMessage<Messages::WebPage::CancelComposition>(decoder, this, &WebPage::cancelComposition);
1730 return;
1731 }
1732#endif
1733#if PLATFORM(GTK)
1734 if (decoder.messageName() == Messages::WebPage::CollapseSelectionInFrame::name()) {
1735 IPC::handleMessage<Messages::WebPage::CollapseSelectionInFrame>(decoder, this, &WebPage::collapseSelectionInFrame);
1736 return;
1737 }
1738#endif
1739#if PLATFORM(COCOA)
1740 if (decoder.messageName() == Messages::WebPage::SendComplexTextInputToPlugin::name()) {
1741 IPC::handleMessage<Messages::WebPage::SendComplexTextInputToPlugin>(decoder, this, &WebPage::sendComplexTextInputToPlugin);
1742 return;
1743 }
1744#endif
1745#if PLATFORM(COCOA)
1746 if (decoder.messageName() == Messages::WebPage::WindowAndViewFramesChanged::name()) {
1747 IPC::handleMessage<Messages::WebPage::WindowAndViewFramesChanged>(decoder, this, &WebPage::windowAndViewFramesChanged);
1748 return;
1749 }
1750#endif
1751#if PLATFORM(COCOA)
1752 if (decoder.messageName() == Messages::WebPage::SetMainFrameIsScrollable::name()) {
1753 IPC::handleMessage<Messages::WebPage::SetMainFrameIsScrollable>(decoder, this, &WebPage::setMainFrameIsScrollable);
1754 return;
1755 }
1756#endif
1757#if PLATFORM(COCOA)
1758 if (decoder.messageName() == Messages::WebPage::RegisterUIProcessAccessibilityTokens::name()) {
1759 IPC::handleMessage<Messages::WebPage::RegisterUIProcessAccessibilityTokens>(decoder, this, &WebPage::registerUIProcessAccessibilityTokens);
1760 return;
1761 }
1762#endif
1763#if (PLATFORM(COCOA) && ENABLE(SERVICE_CONTROLS))
1764 if (decoder.messageName() == Messages::WebPage::ReplaceSelectionWithPasteboardData::name()) {
1765 IPC::handleMessage<Messages::WebPage::ReplaceSelectionWithPasteboardData>(decoder, this, &WebPage::replaceSelectionWithPasteboardData);
1766 return;
1767 }
1768#endif
1769#if PLATFORM(COCOA)
1770 if (decoder.messageName() == Messages::WebPage::SetTextAsync::name()) {
1771 IPC::handleMessage<Messages::WebPage::SetTextAsync>(decoder, this, &WebPage::setTextAsync);
1772 return;
1773 }
1774#endif
1775#if PLATFORM(COCOA)
1776 if (decoder.messageName() == Messages::WebPage::InsertTextAsync::name()) {
1777 IPC::handleMessage<Messages::WebPage::InsertTextAsync>(decoder, this, &WebPage::insertTextAsync);
1778 return;
1779 }
1780#endif
1781#if PLATFORM(COCOA)
1782 if (decoder.messageName() == Messages::WebPage::HasMarkedText::name()) {
1783 IPC::handleMessageAsync<Messages::WebPage::HasMarkedText>(connection, decoder, this, &WebPage::hasMarkedText);
1784 return;
1785 }
1786#endif
1787#if PLATFORM(COCOA)
1788 if (decoder.messageName() == Messages::WebPage::GetMarkedRangeAsync::name()) {
1789 IPC::handleMessage<Messages::WebPage::GetMarkedRangeAsync>(decoder, this, &WebPage::getMarkedRangeAsync);
1790 return;
1791 }
1792#endif
1793#if PLATFORM(COCOA)
1794 if (decoder.messageName() == Messages::WebPage::GetSelectedRangeAsync::name()) {
1795 IPC::handleMessage<Messages::WebPage::GetSelectedRangeAsync>(decoder, this, &WebPage::getSelectedRangeAsync);
1796 return;
1797 }
1798#endif
1799#if PLATFORM(COCOA)
1800 if (decoder.messageName() == Messages::WebPage::CharacterIndexForPointAsync::name()) {
1801 IPC::handleMessage<Messages::WebPage::CharacterIndexForPointAsync>(decoder, this, &WebPage::characterIndexForPointAsync);
1802 return;
1803 }
1804#endif
1805#if PLATFORM(COCOA)
1806 if (decoder.messageName() == Messages::WebPage::FirstRectForCharacterRangeAsync::name()) {
1807 IPC::handleMessage<Messages::WebPage::FirstRectForCharacterRangeAsync>(decoder, this, &WebPage::firstRectForCharacterRangeAsync);
1808 return;
1809 }
1810#endif
1811#if PLATFORM(COCOA)
1812 if (decoder.messageName() == Messages::WebPage::SetCompositionAsync::name()) {
1813 IPC::handleMessage<Messages::WebPage::SetCompositionAsync>(decoder, this, &WebPage::setCompositionAsync);
1814 return;
1815 }
1816#endif
1817#if PLATFORM(COCOA)
1818 if (decoder.messageName() == Messages::WebPage::ConfirmCompositionAsync::name()) {
1819 IPC::handleMessage<Messages::WebPage::ConfirmCompositionAsync>(decoder, this, &WebPage::confirmCompositionAsync);
1820 return;
1821 }
1822#endif
1823#if PLATFORM(MAC)
1824 if (decoder.messageName() == Messages::WebPage::InsertDictatedTextAsync::name()) {
1825 IPC::handleMessage<Messages::WebPage::InsertDictatedTextAsync>(decoder, this, &WebPage::insertDictatedTextAsync);
1826 return;
1827 }
1828#endif
1829#if PLATFORM(MAC)
1830 if (decoder.messageName() == Messages::WebPage::AttributedSubstringForCharacterRangeAsync::name()) {
1831 IPC::handleMessage<Messages::WebPage::AttributedSubstringForCharacterRangeAsync>(decoder, this, &WebPage::attributedSubstringForCharacterRangeAsync);
1832 return;
1833 }
1834#endif
1835#if PLATFORM(MAC)
1836 if (decoder.messageName() == Messages::WebPage::FontAtSelection::name()) {
1837 IPC::handleMessage<Messages::WebPage::FontAtSelection>(decoder, this, &WebPage::fontAtSelection);
1838 return;
1839 }
1840#endif
1841 if (decoder.messageName() == Messages::WebPage::SetAlwaysShowsHorizontalScroller::name()) {
1842 IPC::handleMessage<Messages::WebPage::SetAlwaysShowsHorizontalScroller>(decoder, this, &WebPage::setAlwaysShowsHorizontalScroller);
1843 return;
1844 }
1845 if (decoder.messageName() == Messages::WebPage::SetAlwaysShowsVerticalScroller::name()) {
1846 IPC::handleMessage<Messages::WebPage::SetAlwaysShowsVerticalScroller>(decoder, this, &WebPage::setAlwaysShowsVerticalScroller);
1847 return;
1848 }
1849 if (decoder.messageName() == Messages::WebPage::SetViewLayoutSize::name()) {
1850 IPC::handleMessage<Messages::WebPage::SetViewLayoutSize>(decoder, this, &WebPage::setViewLayoutSize);
1851 return;
1852 }
1853 if (decoder.messageName() == Messages::WebPage::SetAutoSizingShouldExpandToViewHeight::name()) {
1854 IPC::handleMessage<Messages::WebPage::SetAutoSizingShouldExpandToViewHeight>(decoder, this, &WebPage::setAutoSizingShouldExpandToViewHeight);
1855 return;
1856 }
1857 if (decoder.messageName() == Messages::WebPage::SetViewportSizeForCSSViewportUnits::name()) {
1858 IPC::handleMessage<Messages::WebPage::SetViewportSizeForCSSViewportUnits>(decoder, this, &WebPage::setViewportSizeForCSSViewportUnits);
1859 return;
1860 }
1861#if PLATFORM(COCOA)
1862 if (decoder.messageName() == Messages::WebPage::HandleAlternativeTextUIResult::name()) {
1863 IPC::handleMessage<Messages::WebPage::HandleAlternativeTextUIResult>(decoder, this, &WebPage::handleAlternativeTextUIResult);
1864 return;
1865 }
1866#endif
1867#if PLATFORM(IOS_FAMILY)
1868 if (decoder.messageName() == Messages::WebPage::WillStartUserTriggeredZooming::name()) {
1869 IPC::handleMessage<Messages::WebPage::WillStartUserTriggeredZooming>(decoder, this, &WebPage::willStartUserTriggeredZooming);
1870 return;
1871 }
1872#endif
1873 if (decoder.messageName() == Messages::WebPage::SetScrollPinningBehavior::name()) {
1874 IPC::handleMessage<Messages::WebPage::SetScrollPinningBehavior>(decoder, this, &WebPage::setScrollPinningBehavior);
1875 return;
1876 }
1877 if (decoder.messageName() == Messages::WebPage::SetScrollbarOverlayStyle::name()) {
1878 IPC::handleMessage<Messages::WebPage::SetScrollbarOverlayStyle>(decoder, this, &WebPage::setScrollbarOverlayStyle);
1879 return;
1880 }
1881 if (decoder.messageName() == Messages::WebPage::GetBytecodeProfile::name()) {
1882 IPC::handleMessage<Messages::WebPage::GetBytecodeProfile>(decoder, this, &WebPage::getBytecodeProfile);
1883 return;
1884 }
1885 if (decoder.messageName() == Messages::WebPage::GetSamplingProfilerOutput::name()) {
1886 IPC::handleMessage<Messages::WebPage::GetSamplingProfilerOutput>(decoder, this, &WebPage::getSamplingProfilerOutput);
1887 return;
1888 }
1889 if (decoder.messageName() == Messages::WebPage::TakeSnapshot::name()) {
1890 IPC::handleMessage<Messages::WebPage::TakeSnapshot>(decoder, this, &WebPage::takeSnapshot);
1891 return;
1892 }
1893#if PLATFORM(MAC)
1894 if (decoder.messageName() == Messages::WebPage::PerformImmediateActionHitTestAtLocation::name()) {
1895 IPC::handleMessage<Messages::WebPage::PerformImmediateActionHitTestAtLocation>(decoder, this, &WebPage::performImmediateActionHitTestAtLocation);
1896 return;
1897 }
1898#endif
1899#if PLATFORM(MAC)
1900 if (decoder.messageName() == Messages::WebPage::ImmediateActionDidUpdate::name()) {
1901 IPC::handleMessage<Messages::WebPage::ImmediateActionDidUpdate>(decoder, this, &WebPage::immediateActionDidUpdate);
1902 return;
1903 }
1904#endif
1905#if PLATFORM(MAC)
1906 if (decoder.messageName() == Messages::WebPage::ImmediateActionDidCancel::name()) {
1907 IPC::handleMessage<Messages::WebPage::ImmediateActionDidCancel>(decoder, this, &WebPage::immediateActionDidCancel);
1908 return;
1909 }
1910#endif
1911#if PLATFORM(MAC)
1912 if (decoder.messageName() == Messages::WebPage::ImmediateActionDidComplete::name()) {
1913 IPC::handleMessage<Messages::WebPage::ImmediateActionDidComplete>(decoder, this, &WebPage::immediateActionDidComplete);
1914 return;
1915 }
1916#endif
1917#if PLATFORM(MAC)
1918 if (decoder.messageName() == Messages::WebPage::DataDetectorsDidPresentUI::name()) {
1919 IPC::handleMessage<Messages::WebPage::DataDetectorsDidPresentUI>(decoder, this, &WebPage::dataDetectorsDidPresentUI);
1920 return;
1921 }
1922#endif
1923#if PLATFORM(MAC)
1924 if (decoder.messageName() == Messages::WebPage::DataDetectorsDidChangeUI::name()) {
1925 IPC::handleMessage<Messages::WebPage::DataDetectorsDidChangeUI>(decoder, this, &WebPage::dataDetectorsDidChangeUI);
1926 return;
1927 }
1928#endif
1929#if PLATFORM(MAC)
1930 if (decoder.messageName() == Messages::WebPage::DataDetectorsDidHideUI::name()) {
1931 IPC::handleMessage<Messages::WebPage::DataDetectorsDidHideUI>(decoder, this, &WebPage::dataDetectorsDidHideUI);
1932 return;
1933 }
1934#endif
1935#if PLATFORM(MAC)
1936 if (decoder.messageName() == Messages::WebPage::HandleAcceptedCandidate::name()) {
1937 IPC::handleMessage<Messages::WebPage::HandleAcceptedCandidate>(decoder, this, &WebPage::handleAcceptedCandidate);
1938 return;
1939 }
1940#endif
1941#if PLATFORM(MAC)
1942 if (decoder.messageName() == Messages::WebPage::SetUseSystemAppearance::name()) {
1943 IPC::handleMessage<Messages::WebPage::SetUseSystemAppearance>(decoder, this, &WebPage::setUseSystemAppearance);
1944 return;
1945 }
1946#endif
1947#if PLATFORM(MAC)
1948 if (decoder.messageName() == Messages::WebPage::SetHeaderBannerHeightForTesting::name()) {
1949 IPC::handleMessage<Messages::WebPage::SetHeaderBannerHeightForTesting>(decoder, this, &WebPage::setHeaderBannerHeightForTesting);
1950 return;
1951 }
1952#endif
1953#if PLATFORM(MAC)
1954 if (decoder.messageName() == Messages::WebPage::SetFooterBannerHeightForTesting::name()) {
1955 IPC::handleMessage<Messages::WebPage::SetFooterBannerHeightForTesting>(decoder, this, &WebPage::setFooterBannerHeightForTesting);
1956 return;
1957 }
1958#endif
1959 if (decoder.messageName() == Messages::WebPage::EffectiveAppearanceDidChange::name()) {
1960 IPC::handleMessage<Messages::WebPage::EffectiveAppearanceDidChange>(decoder, this, &WebPage::effectiveAppearanceDidChange);
1961 return;
1962 }
1963#if PLATFORM(COCOA)
1964 if (decoder.messageName() == Messages::WebPage::RequestActiveNowPlayingSessionInfo::name()) {
1965 IPC::handleMessage<Messages::WebPage::RequestActiveNowPlayingSessionInfo>(decoder, this, &WebPage::requestActiveNowPlayingSessionInfo);
1966 return;
1967 }
1968#endif
1969 if (decoder.messageName() == Messages::WebPage::SetShouldDispatchFakeMouseMoveEvents::name()) {
1970 IPC::handleMessage<Messages::WebPage::SetShouldDispatchFakeMouseMoveEvents>(decoder, this, &WebPage::setShouldDispatchFakeMouseMoveEvents);
1971 return;
1972 }
1973#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1974 if (decoder.messageName() == Messages::WebPage::PlaybackTargetSelected::name()) {
1975 IPC::handleMessage<Messages::WebPage::PlaybackTargetSelected>(decoder, this, &WebPage::playbackTargetSelected);
1976 return;
1977 }
1978#endif
1979#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1980 if (decoder.messageName() == Messages::WebPage::PlaybackTargetAvailabilityDidChange::name()) {
1981 IPC::handleMessage<Messages::WebPage::PlaybackTargetAvailabilityDidChange>(decoder, this, &WebPage::playbackTargetAvailabilityDidChange);
1982 return;
1983 }
1984#endif
1985#if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
1986 if (decoder.messageName() == Messages::WebPage::SetShouldPlayToPlaybackTarget::name()) {
1987 IPC::handleMessage<Messages::WebPage::SetShouldPlayToPlaybackTarget>(decoder, this, &WebPage::setShouldPlayToPlaybackTarget);
1988 return;
1989 }
1990#endif
1991#if ENABLE(POINTER_LOCK)
1992 if (decoder.messageName() == Messages::WebPage::DidAcquirePointerLock::name()) {
1993 IPC::handleMessage<Messages::WebPage::DidAcquirePointerLock>(decoder, this, &WebPage::didAcquirePointerLock);
1994 return;
1995 }
1996#endif
1997#if ENABLE(POINTER_LOCK)
1998 if (decoder.messageName() == Messages::WebPage::DidNotAcquirePointerLock::name()) {
1999 IPC::handleMessage<Messages::WebPage::DidNotAcquirePointerLock>(decoder, this, &WebPage::didNotAcquirePointerLock);
2000 return;
2001 }
2002#endif
2003#if ENABLE(POINTER_LOCK)
2004 if (decoder.messageName() == Messages::WebPage::DidLosePointerLock::name()) {
2005 IPC::handleMessage<Messages::WebPage::DidLosePointerLock>(decoder, this, &WebPage::didLosePointerLock);
2006 return;
2007 }
2008#endif
2009 if (decoder.messageName() == Messages::WebPage::ClearWheelEventTestTrigger::name()) {
2010 IPC::handleMessage<Messages::WebPage::ClearWheelEventTestTrigger>(decoder, this, &WebPage::clearWheelEventTestTrigger);
2011 return;
2012 }
2013 if (decoder.messageName() == Messages::WebPage::SetShouldScaleViewToFitDocument::name()) {
2014 IPC::handleMessage<Messages::WebPage::SetShouldScaleViewToFitDocument>(decoder, this, &WebPage::setShouldScaleViewToFitDocument);
2015 return;
2016 }
2017#if ENABLE(VIDEO) && USE(GSTREAMER)
2018 if (decoder.messageName() == Messages::WebPage::DidEndRequestInstallMissingMediaPlugins::name()) {
2019 IPC::handleMessage<Messages::WebPage::DidEndRequestInstallMissingMediaPlugins>(decoder, this, &WebPage::didEndRequestInstallMissingMediaPlugins);
2020 return;
2021 }
2022#endif
2023 if (decoder.messageName() == Messages::WebPage::SetResourceCachingDisabled::name()) {
2024 IPC::handleMessage<Messages::WebPage::SetResourceCachingDisabled>(decoder, this, &WebPage::setResourceCachingDisabled);
2025 return;
2026 }
2027 if (decoder.messageName() == Messages::WebPage::SetUserInterfaceLayoutDirection::name()) {
2028 IPC::handleMessage<Messages::WebPage::SetUserInterfaceLayoutDirection>(decoder, this, &WebPage::setUserInterfaceLayoutDirection);
2029 return;
2030 }
2031 if (decoder.messageName() == Messages::WebPage::DidGetLoadDecisionForIcon::name()) {
2032 IPC::handleMessage<Messages::WebPage::DidGetLoadDecisionForIcon>(decoder, this, &WebPage::didGetLoadDecisionForIcon);
2033 return;
2034 }
2035 if (decoder.messageName() == Messages::WebPage::SetUseIconLoadingClient::name()) {
2036 IPC::handleMessage<Messages::WebPage::SetUseIconLoadingClient>(decoder, this, &WebPage::setUseIconLoadingClient);
2037 return;
2038 }
2039#if ENABLE(GAMEPAD)
2040 if (decoder.messageName() == Messages::WebPage::GamepadActivity::name()) {
2041 IPC::handleMessage<Messages::WebPage::GamepadActivity>(decoder, this, &WebPage::gamepadActivity);
2042 return;
2043 }
2044#endif
2045#if USE(QUICK_LOOK)
2046 if (decoder.messageName() == Messages::WebPage::DidReceivePasswordForQuickLookDocument::name()) {
2047 IPC::handleMessage<Messages::WebPage::DidReceivePasswordForQuickLookDocument>(decoder, this, &WebPage::didReceivePasswordForQuickLookDocument);
2048 return;
2049 }
2050#endif
2051 if (decoder.messageName() == Messages::WebPage::FrameBecameRemote::name()) {
2052 IPC::handleMessage<Messages::WebPage::FrameBecameRemote>(decoder, this, &WebPage::frameBecameRemote);
2053 return;
2054 }
2055 if (decoder.messageName() == Messages::WebPage::RegisterURLSchemeHandler::name()) {
2056 IPC::handleMessage<Messages::WebPage::RegisterURLSchemeHandler>(decoder, this, &WebPage::registerURLSchemeHandler);
2057 return;
2058 }
2059 if (decoder.messageName() == Messages::WebPage::URLSchemeTaskDidPerformRedirection::name()) {
2060 IPC::handleMessage<Messages::WebPage::URLSchemeTaskDidPerformRedirection>(decoder, this, &WebPage::urlSchemeTaskDidPerformRedirection);
2061 return;
2062 }
2063 if (decoder.messageName() == Messages::WebPage::URLSchemeTaskDidReceiveResponse::name()) {
2064 IPC::handleMessage<Messages::WebPage::URLSchemeTaskDidReceiveResponse>(decoder, this, &WebPage::urlSchemeTaskDidReceiveResponse);
2065 return;
2066 }
2067 if (decoder.messageName() == Messages::WebPage::URLSchemeTaskDidReceiveData::name()) {
2068 IPC::handleMessage<Messages::WebPage::URLSchemeTaskDidReceiveData>(decoder, this, &WebPage::urlSchemeTaskDidReceiveData);
2069 return;
2070 }
2071 if (decoder.messageName() == Messages::WebPage::URLSchemeTaskDidComplete::name()) {
2072 IPC::handleMessage<Messages::WebPage::URLSchemeTaskDidComplete>(decoder, this, &WebPage::urlSchemeTaskDidComplete);
2073 return;
2074 }
2075 if (decoder.messageName() == Messages::WebPage::SetIsSuspended::name()) {
2076 IPC::handleMessage<Messages::WebPage::SetIsSuspended>(decoder, this, &WebPage::setIsSuspended);
2077 return;
2078 }
2079#if ENABLE(ATTACHMENT_ELEMENT)
2080 if (decoder.messageName() == Messages::WebPage::InsertAttachment::name()) {
2081 IPC::handleMessage<Messages::WebPage::InsertAttachment>(decoder, this, &WebPage::insertAttachment);
2082 return;
2083 }
2084#endif
2085#if ENABLE(ATTACHMENT_ELEMENT)
2086 if (decoder.messageName() == Messages::WebPage::UpdateAttachmentAttributes::name()) {
2087 IPC::handleMessage<Messages::WebPage::UpdateAttachmentAttributes>(decoder, this, &WebPage::updateAttachmentAttributes);
2088 return;
2089 }
2090#endif
2091#if ENABLE(APPLICATION_MANIFEST)
2092 if (decoder.messageName() == Messages::WebPage::GetApplicationManifest::name()) {
2093 IPC::handleMessage<Messages::WebPage::GetApplicationManifest>(decoder, this, &WebPage::getApplicationManifest);
2094 return;
2095 }
2096#endif
2097 if (decoder.messageName() == Messages::WebPage::SetDefersLoading::name()) {
2098 IPC::handleMessage<Messages::WebPage::SetDefersLoading>(decoder, this, &WebPage::setDefersLoading);
2099 return;
2100 }
2101 if (decoder.messageName() == Messages::WebPage::UpdateCurrentModifierState::name()) {
2102 IPC::handleMessage<Messages::WebPage::UpdateCurrentModifierState>(decoder, this, &WebPage::updateCurrentModifierState);
2103 return;
2104 }
2105 if (decoder.messageName() == Messages::WebPage::SimulateDeviceOrientationChange::name()) {
2106 IPC::handleMessage<Messages::WebPage::SimulateDeviceOrientationChange>(decoder, this, &WebPage::simulateDeviceOrientationChange);
2107 return;
2108 }
2109#if ENABLE(SPEECH_SYNTHESIS)
2110 if (decoder.messageName() == Messages::WebPage::SpeakingErrorOccurred::name()) {
2111 IPC::handleMessage<Messages::WebPage::SpeakingErrorOccurred>(decoder, this, &WebPage::speakingErrorOccurred);
2112 return;
2113 }
2114#endif
2115#if ENABLE(SPEECH_SYNTHESIS)
2116 if (decoder.messageName() == Messages::WebPage::BoundaryEventOccurred::name()) {
2117 IPC::handleMessage<Messages::WebPage::BoundaryEventOccurred>(decoder, this, &WebPage::boundaryEventOccurred);
2118 return;
2119 }
2120#endif
2121#if ENABLE(SPEECH_SYNTHESIS)
2122 if (decoder.messageName() == Messages::WebPage::VoicesDidChange::name()) {
2123 IPC::handleMessage<Messages::WebPage::VoicesDidChange>(decoder, this, &WebPage::voicesDidChange);
2124 return;
2125 }
2126#endif
2127 if (decoder.messageName() == Messages::WebPage::TextInputContextsInRect::name()) {
2128 IPC::handleMessageAsync<Messages::WebPage::TextInputContextsInRect>(connection, decoder, this, &WebPage::textInputContextsInRect);
2129 return;
2130 }
2131 if (decoder.messageName() == Messages::WebPage::FocusTextInputContext::name()) {
2132 IPC::handleMessageAsync<Messages::WebPage::FocusTextInputContext>(connection, decoder, this, &WebPage::focusTextInputContext);
2133 return;
2134 }
2135#if ENABLE(RESOURCE_LOAD_STATISTICS)
2136 if (decoder.messageName() == Messages::WebPage::WasLoadedWithDataTransferFromPrevalentResource::name()) {
2137 IPC::handleMessage<Messages::WebPage::WasLoadedWithDataTransferFromPrevalentResource>(decoder, this, &WebPage::wasLoadedWithDataTransferFromPrevalentResource);
2138 return;
2139 }
2140#endif
2141 UNUSED_PARAM(connection);
2142 UNUSED_PARAM(decoder);
2143 ASSERT_NOT_REACHED();
2144}
2145
2146void WebPage::didReceiveSyncWebPageMessage(IPC::Connection& connection, IPC::Decoder& decoder, std::unique_ptr<IPC::Encoder>& replyEncoder)
2147{
2148#if PLATFORM(IOS_FAMILY)
2149 if (decoder.messageName() == Messages::WebPage::SyncApplyAutocorrection::name()) {
2150 IPC::handleMessageSynchronous<Messages::WebPage::SyncApplyAutocorrection>(connection, decoder, replyEncoder, this, &WebPage::syncApplyAutocorrection);
2151 return;
2152 }
2153#endif
2154#if PLATFORM(IOS_FAMILY)
2155 if (decoder.messageName() == Messages::WebPage::GetPositionInformation::name()) {
2156 IPC::handleMessageSynchronous<Messages::WebPage::GetPositionInformation>(connection, decoder, replyEncoder, this, &WebPage::getPositionInformation);
2157 return;
2158 }
2159#endif
2160#if ENABLE(IOS_TOUCH_EVENTS)
2161 if (decoder.messageName() == Messages::WebPage::TouchEventSync::name()) {
2162 IPC::handleMessageSynchronous<Messages::WebPage::TouchEventSync>(connection, decoder, replyEncoder, this, &WebPage::touchEventSync);
2163 return;
2164 }
2165#endif
2166#if (PLATFORM(COCOA) && PLATFORM(IOS_FAMILY))
2167 if (decoder.messageName() == Messages::WebPage::ComputePagesForPrintingAndDrawToPDF::name()) {
2168 IPC::handleMessageSynchronous<Messages::WebPage::ComputePagesForPrintingAndDrawToPDF>(connection, decoder, replyEncoder, this, &WebPage::computePagesForPrintingAndDrawToPDF);
2169 return;
2170 }
2171#endif
2172#if PLATFORM (GTK) && HAVE(GTK_GESTURES)
2173 if (decoder.messageName() == Messages::WebPage::GetCenterForZoomGesture::name()) {
2174 IPC::handleMessageSynchronous<Messages::WebPage::GetCenterForZoomGesture>(connection, decoder, replyEncoder, this, &WebPage::getCenterForZoomGesture);
2175 return;
2176 }
2177#endif
2178#if PLATFORM(COCOA)
2179 if (decoder.messageName() == Messages::WebPage::GetStringSelectionForPasteboard::name()) {
2180 IPC::handleMessageSynchronous<Messages::WebPage::GetStringSelectionForPasteboard>(connection, decoder, replyEncoder, this, &WebPage::getStringSelectionForPasteboard);
2181 return;
2182 }
2183#endif
2184#if PLATFORM(COCOA)
2185 if (decoder.messageName() == Messages::WebPage::GetDataSelectionForPasteboard::name()) {
2186 IPC::handleMessageSynchronous<Messages::WebPage::GetDataSelectionForPasteboard>(connection, decoder, replyEncoder, this, &WebPage::getDataSelectionForPasteboard);
2187 return;
2188 }
2189#endif
2190#if PLATFORM(COCOA)
2191 if (decoder.messageName() == Messages::WebPage::ReadSelectionFromPasteboard::name()) {
2192 IPC::handleMessageSynchronous<Messages::WebPage::ReadSelectionFromPasteboard>(connection, decoder, replyEncoder, this, &WebPage::readSelectionFromPasteboard);
2193 return;
2194 }
2195#endif
2196#if PLATFORM(COCOA)
2197 if (decoder.messageName() == Messages::WebPage::ShouldDelayWindowOrderingEvent::name()) {
2198 IPC::handleMessageSynchronous<Messages::WebPage::ShouldDelayWindowOrderingEvent>(connection, decoder, replyEncoder, this, &WebPage::shouldDelayWindowOrderingEvent);
2199 return;
2200 }
2201#endif
2202#if PLATFORM(COCOA)
2203 if (decoder.messageName() == Messages::WebPage::AcceptsFirstMouse::name()) {
2204 IPC::handleMessageSynchronous<Messages::WebPage::AcceptsFirstMouse>(connection, decoder, replyEncoder, this, &WebPage::acceptsFirstMouse);
2205 return;
2206 }
2207#endif
2208 UNUSED_PARAM(connection);
2209 UNUSED_PARAM(decoder);
2210 UNUSED_PARAM(replyEncoder);
2211 ASSERT_NOT_REACHED();
2212}
2213
2214} // namespace WebKit
2215
2216