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