Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: third_party/WebKit/Source/web/InspectorRenderingAgent.h

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlayAgent.cpp ('k') | third_party/WebKit/Source/web/InspectorRenderingAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698