OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 15 matching lines...) Expand all Loading... |
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #include "config.h" | 30 #include "config.h" |
31 #include "core/inspector/InspectorFrontendHost.h" | 31 #include "core/inspector/InspectorFrontendHost.h" |
32 | 32 |
33 #include "bindings/v8/ScriptFunctionCall.h" | 33 #include "bindings/v8/ScriptFunctionCall.h" |
34 #include "core/fetch/ResourceFetcher.h" | 34 #include "core/fetch/ResourceFetcher.h" |
35 #include "core/fetch/TextResourceDecoder.h" | 35 #include "core/fetch/TextResourceDecoder.h" |
| 36 #include "core/frame/Frame.h" |
36 #include "core/inspector/InspectorController.h" | 37 #include "core/inspector/InspectorController.h" |
37 #include "core/inspector/InspectorFrontendClient.h" | 38 #include "core/inspector/InspectorFrontendClient.h" |
38 #include "core/loader/FrameLoader.h" | 39 #include "core/loader/FrameLoader.h" |
39 #include "core/page/ContextMenuController.h" | 40 #include "core/page/ContextMenuController.h" |
40 #include "core/page/ContextMenuProvider.h" | 41 #include "core/page/ContextMenuProvider.h" |
41 #include "core/frame/Frame.h" | |
42 #include "core/page/Page.h" | 42 #include "core/page/Page.h" |
43 #include "core/platform/ContextMenu.h" | 43 #include "core/platform/ContextMenu.h" |
44 #include "core/platform/ContextMenuItem.h" | 44 #include "core/platform/ContextMenuItem.h" |
45 #include "core/platform/Pasteboard.h" | 45 #include "core/platform/Pasteboard.h" |
46 #include "core/platform/network/ResourceRequest.h" | |
47 #include "core/platform/network/ResourceResponse.h" | |
48 #include "core/rendering/RenderTheme.h" | 46 #include "core/rendering/RenderTheme.h" |
49 #include "modules/filesystem/DOMFileSystem.h" | 47 #include "modules/filesystem/DOMFileSystem.h" |
50 #include "platform/JSONValues.h" | 48 #include "platform/JSONValues.h" |
51 #include "platform/SharedBuffer.h" | 49 #include "platform/SharedBuffer.h" |
52 #include "platform/UserGestureIndicator.h" | 50 #include "platform/UserGestureIndicator.h" |
53 #include "platform/network/ResourceError.h" | 51 #include "platform/network/ResourceError.h" |
| 52 #include "platform/network/ResourceRequest.h" |
| 53 #include "platform/network/ResourceResponse.h" |
54 | 54 |
55 namespace WebCore { | 55 namespace WebCore { |
56 | 56 |
57 class FrontendMenuProvider : public ContextMenuProvider { | 57 class FrontendMenuProvider : public ContextMenuProvider { |
58 public: | 58 public: |
59 static PassRefPtr<FrontendMenuProvider> create(InspectorFrontendHost* fronte
ndHost, ScriptObject frontendApiObject, const Vector<ContextMenuItem>& items) | 59 static PassRefPtr<FrontendMenuProvider> create(InspectorFrontendHost* fronte
ndHost, ScriptObject frontendApiObject, const Vector<ContextMenuItem>& items) |
60 { | 60 { |
61 return adoptRef(new FrontendMenuProvider(frontendHost, frontendApiObject
, items)); | 61 return adoptRef(new FrontendMenuProvider(frontendHost, frontendApiObject
, items)); |
62 } | 62 } |
63 | 63 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 ExecutionContext* context = m_frontendPage->mainFrame()->document(); | 213 ExecutionContext* context = m_frontendPage->mainFrame()->document(); |
214 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated
, KURL(ParsedURLString, rootURL)); | 214 return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated
, KURL(ParsedURLString, rootURL)); |
215 } | 215 } |
216 | 216 |
217 bool InspectorFrontendHost::isUnderTest() | 217 bool InspectorFrontendHost::isUnderTest() |
218 { | 218 { |
219 return m_client && m_client->isUnderTest(); | 219 return m_client && m_client->isUnderTest(); |
220 } | 220 } |
221 | 221 |
222 } // namespace WebCore | 222 } // namespace WebCore |
OLD | NEW |