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