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