| Index: third_party/WebKit/Source/web/InspectorRenderingAgent.h
|
| diff --git a/third_party/WebKit/Source/web/InspectorRenderingAgent.h b/third_party/WebKit/Source/web/InspectorRenderingAgent.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a22ba791a4a387eb4493205d8a75890192d97f1c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/web/InspectorRenderingAgent.h
|
| @@ -0,0 +1,48 @@
|
| +// 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"
|
| +#include "core/inspector/protocol/Rendering.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class InspectorOverlay;
|
| +class WebLocalFrameImpl;
|
| +class WebViewImpl;
|
| +
|
| +class InspectorRenderingAgent final
|
| + : public InspectorBaseAgent<protocol::Rendering::Metainfo> {
|
| + WTF_MAKE_NONCOPYABLE(InspectorRenderingAgent);
|
| +
|
| + public:
|
| + static InspectorRenderingAgent* Create(WebLocalFrameImpl*, InspectorOverlay*);
|
| +
|
| + // protocol::Dispatcher::PageCommandHandler implementation.
|
| + protocol::Response setShowPaintRects(bool) override;
|
| + protocol::Response setShowDebugBorders(bool) override;
|
| + protocol::Response setShowFPSCounter(bool) override;
|
| + protocol::Response setShowScrollBottleneckRects(bool) override;
|
| + protocol::Response setShowViewportSizeOnResize(bool) override;
|
| +
|
| + // InspectorBaseAgent overrides.
|
| + protocol::Response disable() override;
|
| + void Restore() override;
|
| +
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + private:
|
| + InspectorRenderingAgent(WebLocalFrameImpl*, InspectorOverlay*);
|
| + protocol::Response CompositingEnabled();
|
| + WebViewImpl* GetWebViewImpl();
|
| +
|
| + Member<WebLocalFrameImpl> web_local_frame_impl_;
|
| + Member<InspectorOverlay> overlay_;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // !defined(InspectorRenderingAgent_h)
|
|
|