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

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

Issue 2008183002: DevTools: generate frontend and backend interfaces under domains. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment addressed Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/web/InspectorRenderingAgent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/InspectorRenderingAgent.h" 5 #include "web/InspectorRenderingAgent.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 #include "core/page/Page.h" 9 #include "core/page/Page.h"
10 #include "web/InspectorOverlay.h" 10 #include "web/InspectorOverlay.h"
11 #include "web/WebLocalFrameImpl.h" 11 #include "web/WebLocalFrameImpl.h"
12 #include "web/WebViewImpl.h" 12 #include "web/WebViewImpl.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 namespace RenderingAgentState { 16 namespace RenderingAgentState {
17 static const char showDebugBorders[] = "showDebugBorders"; 17 static const char showDebugBorders[] = "showDebugBorders";
18 static const char showFPSCounter[] = "showFPSCounter"; 18 static const char showFPSCounter[] = "showFPSCounter";
19 static const char showPaintRects[] = "showPaintRects"; 19 static const char showPaintRects[] = "showPaintRects";
20 static const char showScrollBottleneckRects[] = "showScrollBottleneckRects"; 20 static const char showScrollBottleneckRects[] = "showScrollBottleneckRects";
21 static const char showSizeOnResize[] = "showSizeOnResize"; 21 static const char showSizeOnResize[] = "showSizeOnResize";
22 } 22 }
23 23
24 InspectorRenderingAgent* InspectorRenderingAgent::create(WebLocalFrameImpl* webL ocalFrameImpl, InspectorOverlay* overlay) 24 InspectorRenderingAgent* InspectorRenderingAgent::create(WebLocalFrameImpl* webL ocalFrameImpl, InspectorOverlay* overlay)
25 { 25 {
26 return new InspectorRenderingAgent(webLocalFrameImpl, overlay); 26 return new InspectorRenderingAgent(webLocalFrameImpl, overlay);
27 } 27 }
28 28
29 InspectorRenderingAgent::InspectorRenderingAgent(WebLocalFrameImpl* webLocalFram eImpl, InspectorOverlay* overlay) 29 InspectorRenderingAgent::InspectorRenderingAgent(WebLocalFrameImpl* webLocalFram eImpl, InspectorOverlay* overlay)
30 : InspectorBaseAgent<InspectorRenderingAgent, protocol::Frontend::Rendering> ("Rendering") 30 : InspectorBaseAgent<InspectorRenderingAgent, protocol::Rendering::Frontend> ("Rendering")
31 , m_webLocalFrameImpl(webLocalFrameImpl) 31 , m_webLocalFrameImpl(webLocalFrameImpl)
32 , m_overlay(overlay) 32 , m_overlay(overlay)
33 { 33 {
34 } 34 }
35 35
36 WebViewImpl* InspectorRenderingAgent::webViewImpl() 36 WebViewImpl* InspectorRenderingAgent::webViewImpl()
37 { 37 {
38 return m_webLocalFrameImpl->viewImpl(); 38 return m_webLocalFrameImpl->viewImpl();
39 } 39 }
40 40
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 DEFINE_TRACE(InspectorRenderingAgent) 110 DEFINE_TRACE(InspectorRenderingAgent)
111 { 111 {
112 visitor->trace(m_webLocalFrameImpl); 112 visitor->trace(m_webLocalFrameImpl);
113 visitor->trace(m_overlay); 113 visitor->trace(m_overlay);
114 InspectorBaseAgent::trace(visitor); 114 InspectorBaseAgent::trace(visitor);
115 } 115 }
116 116
117 } // namespace blink 117 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorRenderingAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698