| 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 #ifndef InspectorRenderingAgent_h | 5 #ifndef InspectorRenderingAgent_h |
| 6 #define InspectorRenderingAgent_h | 6 #define InspectorRenderingAgent_h |
| 7 | 7 |
| 8 #include "core/inspector/InspectorBaseAgent.h" | 8 #include "core/inspector/InspectorBaseAgent.h" |
| 9 #include "core/inspector/protocol/Rendering.h" | 9 #include "core/inspector/protocol/Rendering.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class InspectorOverlay; | 13 class InspectorOverlay; |
| 14 class WebLocalFrameImpl; | 14 class WebLocalFrameImpl; |
| 15 class WebViewImpl; | 15 class WebViewImpl; |
| 16 | 16 |
| 17 class InspectorRenderingAgent final | 17 class InspectorRenderingAgent final |
| 18 : public InspectorBaseAgent<protocol::Rendering::Metainfo> { | 18 : public InspectorBaseAgent<protocol::Rendering::Metainfo> { |
| 19 WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent); | 19 WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent); |
| 20 | 20 |
| 21 public: | 21 public: |
| 22 static InspectorRenderingAgent* create(WebLocalFrameImpl*, InspectorOverlay*); | 22 static InspectorRenderingAgent* create(WebLocalFrameImpl*, InspectorOverlay*); |
| 23 | 23 |
| 24 // protocol::Dispatcher::PageCommandHandler implementation. | 24 // protocol::Dispatcher::PageCommandHandler implementation. |
| 25 Response setShowPaintRects(bool) override; | 25 protocol::Response setShowPaintRects(bool) override; |
| 26 Response setShowDebugBorders(bool) override; | 26 protocol::Response setShowDebugBorders(bool) override; |
| 27 Response setShowFPSCounter(bool) override; | 27 protocol::Response setShowFPSCounter(bool) override; |
| 28 Response setShowScrollBottleneckRects(bool) override; | 28 protocol::Response setShowScrollBottleneckRects(bool) override; |
| 29 Response setShowViewportSizeOnResize(bool) override; | 29 protocol::Response setShowViewportSizeOnResize(bool) override; |
| 30 | 30 |
| 31 // InspectorBaseAgent overrides. | 31 // InspectorBaseAgent overrides. |
| 32 Response disable() override; | 32 protocol::Response disable() override; |
| 33 void restore() override; | 33 void restore() override; |
| 34 | 34 |
| 35 DECLARE_VIRTUAL_TRACE(); | 35 DECLARE_VIRTUAL_TRACE(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*); | 38 InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*); |
| 39 Response compositingEnabled(); | 39 protocol::Response compositingEnabled(); |
| 40 WebViewImpl* webViewImpl(); | 40 WebViewImpl* webViewImpl(); |
| 41 | 41 |
| 42 Member<WebLocalFrameImpl> m_webLocalFrameImpl; | 42 Member<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 43 Member<InspectorOverlay> m_overlay; | 43 Member<InspectorOverlay> m_overlay; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif // !defined(InspectorRenderingAgent_h) | 48 #endif // !defined(InspectorRenderingAgent_h) |
| OLD | NEW |