Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlayAgent.cpp

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include <memory> 31 #include <memory>
32 32
33 #include "bindings/core/v8/ScriptController.h" 33 #include "bindings/core/v8/ScriptController.h"
34 #include "bindings/core/v8/ScriptSourceCode.h" 34 #include "bindings/core/v8/ScriptSourceCode.h"
35 #include "bindings/core/v8/V8BindingForCore.h" 35 #include "bindings/core/v8/V8BindingForCore.h"
36 #include "bindings/core/v8/V8InspectorOverlayHost.h" 36 #include "bindings/core/v8/V8InspectorOverlayHost.h"
37 #include "core/dom/DOMNodeIds.h" 37 #include "core/dom/DOMNodeIds.h"
38 #include "core/dom/Node.h" 38 #include "core/dom/Node.h"
39 #include "core/dom/StaticNodeList.h" 39 #include "core/dom/StaticNodeList.h"
40 #include "core/dom/TaskRunnerHelper.h" 40 #include "core/dom/TaskRunnerHelper.h"
41 #include "core/exported/WebViewBase.h"
41 #include "core/frame/FrameView.h" 42 #include "core/frame/FrameView.h"
42 #include "core/frame/LocalFrame.h" 43 #include "core/frame/LocalFrame.h"
43 #include "core/frame/LocalFrameClient.h" 44 #include "core/frame/LocalFrameClient.h"
44 #include "core/frame/Settings.h" 45 #include "core/frame/Settings.h"
45 #include "core/frame/VisualViewport.h" 46 #include "core/frame/VisualViewport.h"
46 #include "core/html/HTMLFrameOwnerElement.h" 47 #include "core/html/HTMLFrameOwnerElement.h"
47 #include "core/input/EventHandler.h" 48 #include "core/input/EventHandler.h"
48 #include "core/inspector/IdentifiersFactory.h" 49 #include "core/inspector/IdentifiersFactory.h"
49 #include "core/inspector/InspectedFrames.h" 50 #include "core/inspector/InspectedFrames.h"
50 #include "core/inspector/InspectorDOMAgent.h" 51 #include "core/inspector/InspectorDOMAgent.h"
51 #include "core/inspector/InspectorOverlayHost.h" 52 #include "core/inspector/InspectorOverlayHost.h"
52 #include "core/layout/api/LayoutViewItem.h" 53 #include "core/layout/api/LayoutViewItem.h"
53 #include "core/loader/EmptyClients.h" 54 #include "core/loader/EmptyClients.h"
54 #include "core/loader/FrameLoadRequest.h" 55 #include "core/loader/FrameLoadRequest.h"
55 #include "core/page/ChromeClient.h" 56 #include "core/page/ChromeClient.h"
56 #include "core/page/Page.h" 57 #include "core/page/Page.h"
57 #include "platform/ScriptForbiddenScope.h" 58 #include "platform/ScriptForbiddenScope.h"
58 #include "platform/graphics/Color.h" 59 #include "platform/graphics/Color.h"
59 #include "platform/graphics/GraphicsContext.h" 60 #include "platform/graphics/GraphicsContext.h"
60 #include "platform/graphics/paint/CullRect.h" 61 #include "platform/graphics/paint/CullRect.h"
61 #include "platform/wtf/AutoReset.h" 62 #include "platform/wtf/AutoReset.h"
62 #include "public/platform/Platform.h" 63 #include "public/platform/Platform.h"
63 #include "public/platform/WebData.h" 64 #include "public/platform/WebData.h"
64 #include "v8/include/v8.h" 65 #include "v8/include/v8.h"
65 #include "web/ChromeClientImpl.h" 66 #include "web/ChromeClientImpl.h"
66 #include "web/PageOverlay.h" 67 #include "web/PageOverlay.h"
67 #include "web/WebInputEventConversion.h" 68 #include "web/WebInputEventConversion.h"
68 #include "web/WebLocalFrameImpl.h" 69 #include "web/WebLocalFrameImpl.h"
69 #include "web/WebViewImpl.h"
70 70
71 namespace blink { 71 namespace blink {
72 72
73 using protocol::Maybe; 73 using protocol::Maybe;
74 using protocol::Response; 74 using protocol::Response;
75 75
76 namespace { 76 namespace {
77 77
78 namespace OverlayAgentState { 78 namespace OverlayAgentState {
79 static const char kEnabled[] = "enabled"; 79 static const char kEnabled[] = "enabled";
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 InspectorDOMAgent::ParseColor(config->getShapeColor(nullptr)); 1153 InspectorDOMAgent::ParseColor(config->getShapeColor(nullptr));
1154 highlight_config->shape_margin = 1154 highlight_config->shape_margin =
1155 InspectorDOMAgent::ParseColor(config->getShapeMarginColor(nullptr)); 1155 InspectorDOMAgent::ParseColor(config->getShapeMarginColor(nullptr));
1156 highlight_config->selector_list = config->getSelectorList(""); 1156 highlight_config->selector_list = config->getSelectorList("");
1157 1157
1158 *out_config = std::move(highlight_config); 1158 *out_config = std::move(highlight_config);
1159 return Response::OK(); 1159 return Response::OK();
1160 } 1160 }
1161 1161
1162 } // namespace blink 1162 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698