| 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 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class InspectorOverlay; | 12 class InspectorOverlay; |
| 13 class WebLocalFrameImpl; | 13 class WebLocalFrameImpl; |
| 14 class WebViewImpl; | 14 class WebViewImpl; |
| 15 | 15 |
| 16 class InspectorRenderingAgent final : public InspectorBaseAgent<InspectorRenderi
ngAgent, protocol::Frontend::Rendering>, public protocol::Backend::Rendering { | 16 class InspectorRenderingAgent final : public InspectorBaseAgent<InspectorRenderi
ngAgent, protocol::Frontend::Rendering>, public protocol::Backend::Rendering { |
| 17 WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent); | 17 WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent); |
| 18 public: | 18 public: |
| 19 static PassOwnPtrWillBeRawPtr<InspectorRenderingAgent> create(WebLocalFrameI
mpl*, InspectorOverlay*); | 19 static RawPtr<InspectorRenderingAgent> create(WebLocalFrameImpl*, InspectorO
verlay*); |
| 20 | 20 |
| 21 // protocol::Dispatcher::PageCommandHandler implementation. | 21 // protocol::Dispatcher::PageCommandHandler implementation. |
| 22 void setShowPaintRects(ErrorString*, bool show) override; | 22 void setShowPaintRects(ErrorString*, bool show) override; |
| 23 void setShowDebugBorders(ErrorString*, bool show) override; | 23 void setShowDebugBorders(ErrorString*, bool show) override; |
| 24 void setShowFPSCounter(ErrorString*, bool show) override; | 24 void setShowFPSCounter(ErrorString*, bool show) override; |
| 25 void setShowScrollBottleneckRects(ErrorString*, bool show) override; | 25 void setShowScrollBottleneckRects(ErrorString*, bool show) override; |
| 26 void setShowViewportSizeOnResize(ErrorString*, bool show) override; | 26 void setShowViewportSizeOnResize(ErrorString*, bool show) override; |
| 27 | 27 |
| 28 // InspectorBaseAgent overrides. | 28 // InspectorBaseAgent overrides. |
| 29 void disable(ErrorString*) override; | 29 void disable(ErrorString*) override; |
| 30 void restore() override; | 30 void restore() override; |
| 31 | 31 |
| 32 DECLARE_VIRTUAL_TRACE(); | 32 DECLARE_VIRTUAL_TRACE(); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*); | 35 InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*); |
| 36 bool compositingEnabled(ErrorString*); | 36 bool compositingEnabled(ErrorString*); |
| 37 WebViewImpl* webViewImpl(); | 37 WebViewImpl* webViewImpl(); |
| 38 | 38 |
| 39 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; | 39 Member<WebLocalFrameImpl> m_webLocalFrameImpl; |
| 40 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 40 Member<InspectorOverlay> m_overlay; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // !defined(InspectorRenderingAgent_h) | 46 #endif // !defined(InspectorRenderingAgent_h) |
| OLD | NEW |