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