| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) | 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) |
| 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef EmptyClients_h | 29 #ifndef EmptyClients_h |
| 30 #define EmptyClients_h | 30 #define EmptyClients_h |
| 31 | 31 |
| 32 #include "core/CoreExport.h" | 32 #include "core/CoreExport.h" |
| 33 #include "core/frame/RemoteFrameClient.h" |
| 33 #include "core/loader/FrameLoaderClient.h" | 34 #include "core/loader/FrameLoaderClient.h" |
| 34 #include "core/page/ChromeClient.h" | 35 #include "core/page/ChromeClient.h" |
| 35 #include "core/page/ContextMenuClient.h" | 36 #include "core/page/ContextMenuClient.h" |
| 36 #include "core/page/EditorClient.h" | 37 #include "core/page/EditorClient.h" |
| 37 #include "core/page/Page.h" | 38 #include "core/page/Page.h" |
| 38 #include "core/page/SpellCheckerClient.h" | 39 #include "core/page/SpellCheckerClient.h" |
| 39 #include "platform/DragImage.h" | 40 #include "platform/DragImage.h" |
| 40 #include "platform/WebFrameScheduler.h" | 41 #include "platform/WebFrameScheduler.h" |
| 41 #include "platform/geometry/FloatPoint.h" | 42 #include "platform/geometry/FloatPoint.h" |
| 42 #include "platform/geometry/FloatRect.h" | 43 #include "platform/geometry/FloatRect.h" |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); | 417 WTF_MAKE_NONCOPYABLE(EmptyContextMenuClient); |
| 417 USING_FAST_MALLOC(EmptyContextMenuClient); | 418 USING_FAST_MALLOC(EmptyContextMenuClient); |
| 418 | 419 |
| 419 public: | 420 public: |
| 420 EmptyContextMenuClient() {} | 421 EmptyContextMenuClient() {} |
| 421 ~EmptyContextMenuClient() override {} | 422 ~EmptyContextMenuClient() override {} |
| 422 bool showContextMenu(const ContextMenu*, bool) override { return false; } | 423 bool showContextMenu(const ContextMenu*, bool) override { return false; } |
| 423 void clearContextMenu() override {} | 424 void clearContextMenu() override {} |
| 424 }; | 425 }; |
| 425 | 426 |
| 427 class CORE_EXPORT EmptyRemoteFrameClient |
| 428 : NON_EXPORTED_BASE(public RemoteFrameClient) { |
| 429 WTF_MAKE_NONCOPYABLE(EmptyRemoteFrameClient); |
| 430 |
| 431 public: |
| 432 EmptyRemoteFrameClient(); |
| 433 |
| 434 // RemoteFrameClient implementation. |
| 435 void navigate(const ResourceRequest&, |
| 436 bool shouldReplaceCurrentEntry) override {} |
| 437 void reload(FrameLoadType, ClientRedirectPolicy) override {} |
| 438 unsigned backForwardLength() override { return 0; } |
| 439 void forwardPostMessage(MessageEvent*, |
| 440 PassRefPtr<SecurityOrigin> target, |
| 441 LocalFrame* sourceFrame) const override {} |
| 442 void forwardInputEvent(Event*) override {} |
| 443 void frameRectsChanged(const IntRect& frameRect) override {} |
| 444 void updateRemoteViewportIntersection( |
| 445 const IntRect& viewportIntersection) override {} |
| 446 void advanceFocus(WebFocusType, LocalFrame* source) override {} |
| 447 void visibilityChanged(bool visible) override {} |
| 448 void setHasReceivedUserGesture() override {} |
| 449 |
| 450 // FrameClient implementation. |
| 451 bool inShadowTree() const override { return false; } |
| 452 void willBeDetached() override {} |
| 453 void detached(FrameDetachType) override {} |
| 454 Frame* opener() const override { return nullptr; } |
| 455 void setOpener(Frame*) override {} |
| 456 Frame* parent() const override { return nullptr; } |
| 457 Frame* top() const override { return nullptr; } |
| 458 Frame* nextSibling() const override { return nullptr; } |
| 459 Frame* firstChild() const override { return nullptr; } |
| 460 void frameFocused() const override {} |
| 461 }; |
| 462 |
| 426 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 463 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 427 | 464 |
| 428 } // namespace blink | 465 } // namespace blink |
| 429 | 466 |
| 430 #endif // EmptyClients_h | 467 #endif // EmptyClients_h |
| OLD | NEW |