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 11 matching lines...) Expand all Loading... |
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
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 <v8.h> |
| 33 #include <memory> |
32 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
33 #include "core/frame/RemoteFrameClient.h" | 35 #include "core/frame/RemoteFrameClient.h" |
34 #include "core/loader/FrameLoaderClient.h" | 36 #include "core/loader/FrameLoaderClient.h" |
35 #include "core/page/ChromeClient.h" | 37 #include "core/page/ChromeClient.h" |
36 #include "core/page/ContextMenuClient.h" | 38 #include "core/page/ContextMenuClient.h" |
37 #include "core/page/EditorClient.h" | 39 #include "core/page/EditorClient.h" |
38 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
39 #include "core/page/SpellCheckerClient.h" | 41 #include "core/page/SpellCheckerClient.h" |
40 #include "platform/DragImage.h" | 42 #include "platform/DragImage.h" |
41 #include "platform/WebFrameScheduler.h" | 43 #include "platform/WebFrameScheduler.h" |
42 #include "platform/geometry/FloatPoint.h" | 44 #include "platform/geometry/FloatPoint.h" |
43 #include "platform/geometry/FloatRect.h" | 45 #include "platform/geometry/FloatRect.h" |
44 #include "platform/geometry/IntRect.h" | 46 #include "platform/geometry/IntRect.h" |
45 #include "platform/heap/Handle.h" | 47 #include "platform/heap/Handle.h" |
46 #include "platform/network/ResourceError.h" | 48 #include "platform/network/ResourceError.h" |
47 #include "platform/text/TextCheckerClient.h" | 49 #include "platform/text/TextCheckerClient.h" |
48 #include "public/platform/WebFocusType.h" | 50 #include "public/platform/WebFocusType.h" |
49 #include "public/platform/WebScreenInfo.h" | 51 #include "public/platform/WebScreenInfo.h" |
50 #include "wtf/Forward.h" | 52 #include "wtf/Forward.h" |
51 #include <memory> | |
52 #include <v8.h> | |
53 | 53 |
54 /* | 54 /* |
55 This file holds empty Client stubs for use by WebCore. | 55 This file holds empty Client stubs for use by WebCore. |
56 | 56 |
57 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for | 57 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for |
58 use in parsing or executing JavaScript. This tree depends heavily on Clients | 58 use in parsing or executing JavaScript. This tree depends heavily on Clients |
59 (usually provided by WebKit classes). | 59 (usually provided by WebKit classes). |
60 | 60 |
61 This file was first created for SVGImage as it had no way to access the current | 61 This file was first created for SVGImage as it had no way to access the current |
62 Page (nor should it, since Images are not tied to a page). See | 62 Page (nor should it, since Images are not tied to a page). See |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 bool) override { | 343 bool) override { |
344 return ObjectContentType(); | 344 return ObjectContentType(); |
345 } | 345 } |
346 | 346 |
347 void didCreateNewDocument() override {} | 347 void didCreateNewDocument() override {} |
348 void dispatchDidClearWindowObjectInMainWorld() override {} | 348 void dispatchDidClearWindowObjectInMainWorld() override {} |
349 void documentElementAvailable() override {} | 349 void documentElementAvailable() override {} |
350 void runScriptsAtDocumentElementAvailable() override {} | 350 void runScriptsAtDocumentElementAvailable() override {} |
351 void runScriptsAtDocumentReady(bool) override {} | 351 void runScriptsAtDocumentReady(bool) override {} |
352 | 352 |
353 void didCreateScriptContext(v8::Local<v8::Context>, | 353 void didCreateScriptContext(v8::Local<v8::Context>, int worldId) override {} |
354 int worldId) override {} | |
355 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} | 354 void willReleaseScriptContext(v8::Local<v8::Context>, int worldId) override {} |
356 bool allowScriptExtensions() override { return false; } | 355 bool allowScriptExtensions() override { return false; } |
357 | 356 |
358 WebCookieJar* cookieJar() const override { return 0; } | 357 WebCookieJar* cookieJar() const override { return 0; } |
359 | 358 |
360 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() | 359 std::unique_ptr<WebServiceWorkerProvider> createServiceWorkerProvider() |
361 override; | 360 override; |
362 bool isControlledByServiceWorker(DocumentLoader&) override { return false; } | 361 bool isControlledByServiceWorker(DocumentLoader&) override { return false; } |
363 int64_t serviceWorkerID(DocumentLoader&) override { return -1; } | 362 int64_t serviceWorkerID(DocumentLoader&) override { return -1; } |
364 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( | 363 std::unique_ptr<WebApplicationCacheHost> createApplicationCacheHost( |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 Frame* nextSibling() const override { return nullptr; } | 464 Frame* nextSibling() const override { return nullptr; } |
466 Frame* firstChild() const override { return nullptr; } | 465 Frame* firstChild() const override { return nullptr; } |
467 void frameFocused() const override {} | 466 void frameFocused() const override {} |
468 }; | 467 }; |
469 | 468 |
470 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); | 469 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); |
471 | 470 |
472 } // namespace blink | 471 } // namespace blink |
473 | 472 |
474 #endif // EmptyClients_h | 473 #endif // EmptyClients_h |
OLD | NEW |