blob: b95c04e51bcaea3fdfc2557768eaedaa33826fa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef InspectorRenderingAgent_h
#define InspectorRenderingAgent_h
#include "core/inspector/InspectorBaseAgent.h"
namespace blink {
class InspectorOverlay;
class WebLocalFrameImpl;
class WebViewImpl;
class InspectorRenderingAgent final : public InspectorBaseAgent<InspectorRenderingAgent, protocol::Frontend::Rendering>, public protocol::Dispatcher::RenderingCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent);
public:
static PassOwnPtrWillBeRawPtr<InspectorRenderingAgent> create(WebLocalFrameImpl*, InspectorOverlay*);
// protocol::Dispatcher::PageCommandHandler implementation.
void setShowPaintRects(ErrorString*, bool show) override;
void setShowDebugBorders(ErrorString*, bool show) override;
void setShowFPSCounter(ErrorString*, bool show) override;
void setShowScrollBottleneckRects(ErrorString*, bool show) override;
void setShowViewportSizeOnResize(ErrorString*, bool show) override;
// InspectorBaseAgent overrides.
void disable(ErrorString*) override;
void restore() override;
DECLARE_VIRTUAL_TRACE();
private:
InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*);
bool compositingEnabled(ErrorString*);
WebViewImpl* webViewImpl();
RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl;
RawPtrWillBeMember<InspectorOverlay> m_overlay;
};
} // namespace blink
#endif // !defined(InspectorRenderingAgent_h)
|