| 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 14 matching lines...) Expand all Loading... |
| 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 <memory> | 32 #include <memory> |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/frame/ContentSettingsClient.h" |
| 35 #include "core/frame/LocalFrameClient.h" | 36 #include "core/frame/LocalFrameClient.h" |
| 36 #include "core/frame/RemoteFrameClient.h" | 37 #include "core/frame/RemoteFrameClient.h" |
| 37 #include "core/page/ChromeClient.h" | 38 #include "core/page/ChromeClient.h" |
| 38 #include "core/page/ContextMenuClient.h" | 39 #include "core/page/ContextMenuClient.h" |
| 39 #include "core/page/EditorClient.h" | 40 #include "core/page/EditorClient.h" |
| 40 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
| 41 #include "core/page/SpellCheckerClient.h" | 42 #include "core/page/SpellCheckerClient.h" |
| 42 #include "platform/DragImage.h" | 43 #include "platform/DragImage.h" |
| 43 #include "platform/WebFrameScheduler.h" | 44 #include "platform/WebFrameScheduler.h" |
| 44 #include "platform/geometry/FloatPoint.h" | 45 #include "platform/geometry/FloatPoint.h" |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 | 360 |
| 360 void didCreateScriptContext(v8::Local<v8::Context>, | 361 void didCreateScriptContext(v8::Local<v8::Context>, |
| 361 int worldId) override {} | 362 int worldId) override {} |
| 362 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} | 363 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} |
| 363 bool allowScriptExtensions() override { return false; } | 364 bool allowScriptExtensions() override { return false; } |
| 364 | 365 |
| 365 WebCookieJar* cookieJar() const override { return 0; } | 366 WebCookieJar* cookieJar() const override { return 0; } |
| 366 | 367 |
| 367 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() | 368 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() |
| 368 override; | 369 override; |
| 370 ContentSettingsClient& contentSettingsClient() override; |
| 369 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( | 371 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( |
| 370 WebApplicationCacheHostClient*) override; | 372 WebApplicationCacheHostClient*) override; |
| 371 | 373 |
| 372 TextCheckerClient& textCheckerClient() const override; | 374 TextCheckerClient& textCheckerClient() const override; |
| 373 | 375 |
| 374 protected: | 376 protected: |
| 375 EmptyLocalFrameClient() {} | 377 EmptyLocalFrameClient() {} |
| 378 |
| 379 ContentSettingsClient m_contentSettingsClient; |
| 376 }; | 380 }; |
| 377 | 381 |
| 378 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { | 382 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { |
| 379 WTF_MAKE_NONCOPYABLE(EmptyTextCheckerClient); | 383 WTF_MAKE_NONCOPYABLE(EmptyTextCheckerClient); |
| 380 USING_FAST_MALLOC(EmptyTextCheckerClient); | 384 USING_FAST_MALLOC(EmptyTextCheckerClient); |
| 381 | 385 |
| 382 public: | 386 public: |
| 383 EmptyTextCheckerClient() {} | 387 EmptyTextCheckerClient() {} |
| 384 | 388 |
| 385 void checkSpellingOfString(const String&, int*, int*) override {} | 389 void checkSpellingOfString(const String&, int*, int*) override {} |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 Frame* nextSibling() const override { return nullptr; } | 470 Frame* nextSibling() const override { return nullptr; } |
| 467 Frame* firstChild() const override { return nullptr; } | 471 Frame* firstChild() const override { return nullptr; } |
| 468 void frameFocused() const override {} | 472 void frameFocused() const override {} |
| 469 }; | 473 }; |
| 470 | 474 |
| 471 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 475 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
| 472 | 476 |
| 473 } // namespace blink | 477 } // namespace blink |
| 474 | 478 |
| 475 #endif // EmptyClients_h | 479 #endif // EmptyClients_h |
| OLD | NEW |