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 19 matching lines...) Expand all Loading... |
30 #define SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ | 30 #define SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ |
31 | 31 |
32 #include "sky/engine/core/editing/UndoStep.h" | 32 #include "sky/engine/core/editing/UndoStep.h" |
33 #include "sky/engine/core/loader/FrameLoaderClient.h" | 33 #include "sky/engine/core/loader/FrameLoaderClient.h" |
34 #include "sky/engine/core/page/ChromeClient.h" | 34 #include "sky/engine/core/page/ChromeClient.h" |
35 #include "sky/engine/core/page/EditorClient.h" | 35 #include "sky/engine/core/page/EditorClient.h" |
36 #include "sky/engine/core/page/FocusType.h" | 36 #include "sky/engine/core/page/FocusType.h" |
37 #include "sky/engine/core/page/Page.h" | 37 #include "sky/engine/core/page/Page.h" |
38 #include "sky/engine/core/page/SpellCheckerClient.h" | 38 #include "sky/engine/core/page/SpellCheckerClient.h" |
39 #include "sky/engine/platform/geometry/FloatRect.h" | 39 #include "sky/engine/platform/geometry/FloatRect.h" |
40 #include "sky/engine/platform/network/ResourceError.h" | |
41 #include "sky/engine/platform/text/TextCheckerClient.h" | 40 #include "sky/engine/platform/text/TextCheckerClient.h" |
42 #include "sky/engine/public/platform/WebScreenInfo.h" | 41 #include "sky/engine/public/platform/WebScreenInfo.h" |
43 #include "sky/engine/wtf/Forward.h" | 42 #include "sky/engine/wtf/Forward.h" |
44 | 43 |
45 /* | 44 /* |
46 This file holds empty Client stubs for use by WebCore. | 45 This file holds empty Client stubs for use by WebCore. |
47 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. | 46 Viewless element needs to create a dummy Page->LocalFrame->FrameView tree for u
se in parsing or executing JavaScript. |
48 This tree depends heavily on Clients (usually provided by WebKit classes). | 47 This tree depends heavily on Clients (usually provided by WebKit classes). |
49 | 48 |
50 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, | 49 This file was first created for SVGImage as it had no way to access the current
Page (nor should it, |
(...skipping 15 matching lines...) Expand all Loading... |
66 virtual void detachedFromParent() override { } | 65 virtual void detachedFromParent() override { } |
67 | 66 |
68 virtual void dispatchWillSendRequest(Document*, unsigned long, ResourceReque
st&, const ResourceResponse&) override { } | 67 virtual void dispatchWillSendRequest(Document*, unsigned long, ResourceReque
st&, const ResourceResponse&) override { } |
69 virtual void dispatchDidReceiveResponse(Document*, unsigned long, const Reso
urceResponse&) override { } | 68 virtual void dispatchDidReceiveResponse(Document*, unsigned long, const Reso
urceResponse&) override { } |
70 virtual void dispatchDidFinishLoading(Document*, unsigned long) override { } | 69 virtual void dispatchDidFinishLoading(Document*, unsigned long) override { } |
71 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&,
const ResourceResponse&) override { } | 70 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&,
const ResourceResponse&) override { } |
72 | 71 |
73 virtual void dispatchDidHandleOnloadEvents() override { } | 72 virtual void dispatchDidHandleOnloadEvents() override { } |
74 virtual void dispatchWillClose() override { } | 73 virtual void dispatchWillClose() override { } |
75 virtual void dispatchDidReceiveTitle(const String&) override { } | 74 virtual void dispatchDidReceiveTitle(const String&) override { } |
76 virtual void dispatchDidFailLoad(const ResourceError&) override { } | |
77 | 75 |
78 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D
ocument*, NavigationPolicy, bool isTransitionNavigation) override; | 76 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D
ocument*, NavigationPolicy, bool isTransitionNavigation) override; |
79 | 77 |
80 virtual void didStartLoading(LoadStartType) override { } | 78 virtual void didStartLoading(LoadStartType) override { } |
81 virtual void progressEstimateChanged(double) override { } | 79 virtual void progressEstimateChanged(double) override { } |
82 virtual void didStopLoading() override { } | 80 virtual void didStopLoading() override { } |
83 | 81 |
84 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) override { } | 82 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con
st String& = String()) override { } |
85 virtual mojo::View* createChildFrame() override { return nullptr; } | 83 virtual mojo::View* createChildFrame() override { return nullptr; } |
86 | 84 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 virtual bool canPaste(LocalFrame*, bool defaultValue) const override { retur
n defaultValue; } | 133 virtual bool canPaste(LocalFrame*, bool defaultValue) const override { retur
n defaultValue; } |
136 | 134 |
137 virtual bool handleKeyboardEvent() override { return false; } | 135 virtual bool handleKeyboardEvent() override { return false; } |
138 }; | 136 }; |
139 | 137 |
140 void fillWithEmptyClients(Page::PageClients&); | 138 void fillWithEmptyClients(Page::PageClients&); |
141 | 139 |
142 } | 140 } |
143 | 141 |
144 #endif // SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ | 142 #endif // SKY_ENGINE_CORE_LOADER_EMPTYCLIENTS_H_ |
OLD | NEW |