| 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 18 matching lines...) Expand all Loading... |
| 29 #ifndef EmptyClients_h | 29 #ifndef EmptyClients_h |
| 30 #define EmptyClients_h | 30 #define EmptyClients_h |
| 31 | 31 |
| 32 #include "core/editing/UndoStep.h" | 32 #include "core/editing/UndoStep.h" |
| 33 #include "core/inspector/InspectorClient.h" | 33 #include "core/inspector/InspectorClient.h" |
| 34 #include "core/loader/FrameLoaderClient.h" | 34 #include "core/loader/FrameLoaderClient.h" |
| 35 #include "core/page/ChromeClient.h" | 35 #include "core/page/ChromeClient.h" |
| 36 #include "core/page/ContextMenuClient.h" | 36 #include "core/page/ContextMenuClient.h" |
| 37 #include "core/page/DragClient.h" | 37 #include "core/page/DragClient.h" |
| 38 #include "core/page/EditorClient.h" | 38 #include "core/page/EditorClient.h" |
| 39 #include "core/page/FocusType.h" | |
| 40 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 41 #include "core/page/SpellCheckerClient.h" | 40 #include "core/page/SpellCheckerClient.h" |
| 42 #include "core/page/StorageClient.h" | 41 #include "core/page/StorageClient.h" |
| 43 #include "platform/DragImage.h" | 42 #include "platform/DragImage.h" |
| 44 #include "platform/geometry/FloatRect.h" | 43 #include "platform/geometry/FloatRect.h" |
| 45 #include "platform/heap/Handle.h" | 44 #include "platform/heap/Handle.h" |
| 46 #include "platform/network/ResourceError.h" | 45 #include "platform/network/ResourceError.h" |
| 47 #include "platform/text/TextCheckerClient.h" | 46 #include "platform/text/TextCheckerClient.h" |
| 47 #include "public/platform/WebFocusType.h" |
| 48 #include "public/platform/WebScreenInfo.h" | 48 #include "public/platform/WebScreenInfo.h" |
| 49 #include "wtf/Forward.h" | 49 #include "wtf/Forward.h" |
| 50 #include <v8.h> | 50 #include <v8.h> |
| 51 | 51 |
| 52 /* | 52 /* |
| 53 This file holds empty Client stubs for use by WebCore. | 53 This file holds empty Client stubs for use by WebCore. |
| 54 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. | 54 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. |
| 55 This tree depends heavily on Clients (usually provided by WebKit classes). | 55 This tree depends heavily on Clients (usually provided by WebKit classes). |
| 56 | 56 |
| 57 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, | 57 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 virtual void chromeDestroyed() override { } | 71 virtual void chromeDestroyed() override { } |
| 72 | 72 |
| 73 virtual void* webView() const override { return 0; } | 73 virtual void* webView() const override { return 0; } |
| 74 virtual void setWindowRect(const FloatRect&) override { } | 74 virtual void setWindowRect(const FloatRect&) override { } |
| 75 virtual FloatRect windowRect() override { return FloatRect(); } | 75 virtual FloatRect windowRect() override { return FloatRect(); } |
| 76 | 76 |
| 77 virtual FloatRect pageRect() override { return FloatRect(); } | 77 virtual FloatRect pageRect() override { return FloatRect(); } |
| 78 | 78 |
| 79 virtual void focus() override { } | 79 virtual void focus() override { } |
| 80 | 80 |
| 81 virtual bool canTakeFocus(FocusType) override { return false; } | 81 virtual bool canTakeFocus(WebFocusType) override { return false; } |
| 82 virtual void takeFocus(FocusType) override { } | 82 virtual void takeFocus(WebFocusType) override { } |
| 83 | 83 |
| 84 virtual void focusedNodeChanged(Node*) override { } | 84 virtual void focusedNodeChanged(Node*) override { } |
| 85 virtual void focusedFrameChanged(LocalFrame*) override { } | 85 virtual void focusedFrameChanged(LocalFrame*) override { } |
| 86 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSendReferrer) override { return 0; } | 86 virtual Page* createWindow(LocalFrame*, const FrameLoadRequest&, const Windo
wFeatures&, NavigationPolicy, ShouldSendReferrer) override { return 0; } |
| 87 virtual void show(NavigationPolicy) override { } | 87 virtual void show(NavigationPolicy) override { } |
| 88 | 88 |
| 89 virtual bool canRunModal() override { return false; } | 89 virtual bool canRunModal() override { return false; } |
| 90 virtual void runModal() override { } | 90 virtual void runModal() override { } |
| 91 | 91 |
| 92 virtual void setToolbarsVisible(bool) override { } | 92 virtual void setToolbarsVisible(bool) override { } |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 public: | 327 public: |
| 328 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid
e; | 328 virtual PassOwnPtr<StorageNamespace> createSessionStorageNamespace() overrid
e; |
| 329 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret
urn false; } | 329 virtual bool canAccessStorage(LocalFrame*, StorageType) const override { ret
urn false; } |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 void fillWithEmptyClients(Page::PageClients&); | 332 void fillWithEmptyClients(Page::PageClients&); |
| 333 | 333 |
| 334 } | 334 } |
| 335 | 335 |
| 336 #endif // EmptyClients_h | 336 #endif // EmptyClients_h |
| OLD | NEW |