| 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 11 matching lines...) Expand all Loading... |
| 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 "core/inspector/DevToolsHost.h" | 30 #include "core/inspector/DevToolsHost.h" |
| 31 | 31 |
| 32 #include "bindings/core/v8/ScriptState.h" | |
| 33 #include "bindings/core/v8/V8BindingForCore.h" | 32 #include "bindings/core/v8/V8BindingForCore.h" |
| 34 #include "bindings/core/v8/V8ScriptRunner.h" | 33 #include "bindings/core/v8/V8ScriptRunner.h" |
| 35 #include "core/clipboard/Pasteboard.h" | 34 #include "core/clipboard/Pasteboard.h" |
| 36 #include "core/dom/DocumentUserGestureToken.h" | 35 #include "core/dom/DocumentUserGestureToken.h" |
| 37 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
| 38 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
| 39 #include "core/events/EventTarget.h" | 38 #include "core/events/EventTarget.h" |
| 40 #include "core/frame/FrameView.h" | 39 #include "core/frame/FrameView.h" |
| 41 #include "core/frame/LocalDOMWindow.h" | 40 #include "core/frame/LocalDOMWindow.h" |
| 42 #include "core/frame/LocalFrame.h" | 41 #include "core/frame/LocalFrame.h" |
| 43 #include "core/html/parser/TextResourceDecoder.h" | 42 #include "core/html/parser/TextResourceDecoder.h" |
| 44 #include "core/inspector/InspectorFrontendClient.h" | 43 #include "core/inspector/InspectorFrontendClient.h" |
| 45 #include "core/layout/LayoutTheme.h" | 44 #include "core/layout/LayoutTheme.h" |
| 46 #include "core/loader/FrameLoader.h" | 45 #include "core/loader/FrameLoader.h" |
| 47 #include "core/page/ContextMenuController.h" | 46 #include "core/page/ContextMenuController.h" |
| 48 #include "core/page/ContextMenuProvider.h" | 47 #include "core/page/ContextMenuProvider.h" |
| 49 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 50 #include "platform/ContextMenu.h" | 49 #include "platform/ContextMenu.h" |
| 51 #include "platform/ContextMenuItem.h" | 50 #include "platform/ContextMenuItem.h" |
| 52 #include "platform/PlatformChromeClient.h" | 51 #include "platform/PlatformChromeClient.h" |
| 53 #include "platform/ScriptForbiddenScope.h" | 52 #include "platform/ScriptForbiddenScope.h" |
| 54 #include "platform/SharedBuffer.h" | 53 #include "platform/SharedBuffer.h" |
| 55 #include "platform/UserGestureIndicator.h" | 54 #include "platform/UserGestureIndicator.h" |
| 55 #include "platform/bindings/ScriptState.h" |
| 56 #include "platform/loader/fetch/ResourceError.h" | 56 #include "platform/loader/fetch/ResourceError.h" |
| 57 #include "platform/loader/fetch/ResourceFetcher.h" | 57 #include "platform/loader/fetch/ResourceFetcher.h" |
| 58 #include "platform/loader/fetch/ResourceRequest.h" | 58 #include "platform/loader/fetch/ResourceRequest.h" |
| 59 #include "platform/loader/fetch/ResourceResponse.h" | 59 #include "platform/loader/fetch/ResourceResponse.h" |
| 60 | 60 |
| 61 namespace blink { | 61 namespace blink { |
| 62 | 62 |
| 63 class FrontendMenuProvider final : public ContextMenuProvider { | 63 class FrontendMenuProvider final : public ContextMenuProvider { |
| 64 public: | 64 public: |
| 65 static FrontendMenuProvider* Create(DevToolsHost* devtools_host, | 65 static FrontendMenuProvider* Create(DevToolsHost* devtools_host, |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 228 |
| 229 bool DevToolsHost::isUnderTest() { | 229 bool DevToolsHost::isUnderTest() { |
| 230 return client_ && client_->IsUnderTest(); | 230 return client_ && client_->IsUnderTest(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 bool DevToolsHost::isHostedMode() { | 233 bool DevToolsHost::isHostedMode() { |
| 234 return false; | 234 return false; |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace blink | 237 } // namespace blink |
| OLD | NEW |