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

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

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 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
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 InspectorEmulationAgent_h 5 #ifndef InspectorEmulationAgent_h
6 #define InspectorEmulationAgent_h 6 #define InspectorEmulationAgent_h
7 7
8 #include "core/inspector/InspectorBaseAgent.h" 8 #include "core/inspector/InspectorBaseAgent.h"
9 #include "core/inspector/protocol/Emulation.h" 9 #include "core/inspector/protocol/Emulation.h"
10 #include "platform/WebTaskRunner.h" 10 #include "platform/WebTaskRunner.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class WebLocalFrameImpl; 14 class WebLocalFrameImpl;
15 class WebViewImpl; 15 class WebViewBase;
16 16
17 namespace protocol { 17 namespace protocol {
18 namespace DOM { 18 namespace DOM {
19 class RGBA; 19 class RGBA;
20 } // namespace DOM 20 } // namespace DOM
21 } // namespace protocol 21 } // namespace protocol
22 22
23 class InspectorEmulationAgent final 23 class InspectorEmulationAgent final
24 : public InspectorBaseAgent<protocol::Emulation::Metainfo> { 24 : public InspectorBaseAgent<protocol::Emulation::Metainfo> {
25 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); 25 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent);
(...skipping 27 matching lines...) Expand all
53 protocol::Maybe<protocol::DOM::RGBA>) override; 53 protocol::Maybe<protocol::DOM::RGBA>) override;
54 54
55 // InspectorBaseAgent overrides. 55 // InspectorBaseAgent overrides.
56 protocol::Response disable() override; 56 protocol::Response disable() override;
57 void Restore() override; 57 void Restore() override;
58 58
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 private: 61 private:
62 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); 62 InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
63 WebViewImpl* GetWebViewImpl(); 63 WebViewBase* GetWebViewBase();
64 void VirtualTimeBudgetExpired(); 64 void VirtualTimeBudgetExpired();
65 65
66 Member<WebLocalFrameImpl> web_local_frame_impl_; 66 Member<WebLocalFrameImpl> web_local_frame_impl_;
67 Client* client_; 67 Client* client_;
68 TaskHandle virtual_time_budget_expired_task_handle_; 68 TaskHandle virtual_time_budget_expired_task_handle_;
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // !defined(InspectorEmulationAgent_h) 73 #endif // !defined(InspectorEmulationAgent_h)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FullscreenController.cpp ('k') | third_party/WebKit/Source/web/InspectorEmulationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698