| OLD | NEW |
| 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 using protocol::Response; |
| 17 |
| 16 namespace RenderingAgentState { | 18 namespace RenderingAgentState { |
| 17 static const char showDebugBorders[] = "showDebugBorders"; | 19 static const char showDebugBorders[] = "showDebugBorders"; |
| 18 static const char showFPSCounter[] = "showFPSCounter"; | 20 static const char showFPSCounter[] = "showFPSCounter"; |
| 19 static const char showPaintRects[] = "showPaintRects"; | 21 static const char showPaintRects[] = "showPaintRects"; |
| 20 static const char showScrollBottleneckRects[] = "showScrollBottleneckRects"; | 22 static const char showScrollBottleneckRects[] = "showScrollBottleneckRects"; |
| 21 static const char showSizeOnResize[] = "showSizeOnResize"; | 23 static const char showSizeOnResize[] = "showSizeOnResize"; |
| 22 } | 24 } |
| 23 | 25 |
| 24 InspectorRenderingAgent* InspectorRenderingAgent::create( | 26 InspectorRenderingAgent* InspectorRenderingAgent::create( |
| 25 WebLocalFrameImpl* webLocalFrameImpl, | 27 WebLocalFrameImpl* webLocalFrameImpl, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 return Response::OK(); | 114 return Response::OK(); |
| 113 } | 115 } |
| 114 | 116 |
| 115 DEFINE_TRACE(InspectorRenderingAgent) { | 117 DEFINE_TRACE(InspectorRenderingAgent) { |
| 116 visitor->trace(m_webLocalFrameImpl); | 118 visitor->trace(m_webLocalFrameImpl); |
| 117 visitor->trace(m_overlay); | 119 visitor->trace(m_overlay); |
| 118 InspectorBaseAgent::trace(visitor); | 120 InspectorBaseAgent::trace(visitor); |
| 119 } | 121 } |
| 120 | 122 |
| 121 } // namespace blink | 123 } // namespace blink |
| OLD | NEW |