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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebLocalFrameImpl; 12 class WebLocalFrameImpl;
13 class WebViewImpl; 13 class WebViewImpl;
14 14
15 using ErrorString = String;
16
17 class InspectorEmulationAgent final : public InspectorBaseAgent<InspectorEmulati onAgent, protocol::Frontend::Emulation>, public protocol::Dispatcher::EmulationC ommandHandler { 15 class InspectorEmulationAgent final : public InspectorBaseAgent<InspectorEmulati onAgent, protocol::Frontend::Emulation>, public protocol::Dispatcher::EmulationC ommandHandler {
18 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent); 16 WTF_MAKE_NONCOPYABLE(InspectorEmulationAgent);
19 public: 17 public:
20 class Client { 18 class Client {
21 public: 19 public:
22 virtual ~Client() {} 20 virtual ~Client() {}
23 21
24 virtual void setCPUThrottlingRate(double rate) {} 22 virtual void setCPUThrottlingRate(double rate) {}
25 }; 23 };
26 24
(...skipping 18 matching lines...) Expand all
45 InspectorEmulationAgent(WebLocalFrameImpl*, Client*); 43 InspectorEmulationAgent(WebLocalFrameImpl*, Client*);
46 WebViewImpl* webViewImpl(); 44 WebViewImpl* webViewImpl();
47 45
48 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; 46 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl;
49 Client* m_client; 47 Client* m_client;
50 }; 48 };
51 49
52 } // namespace blink 50 } // namespace blink
53 51
54 #endif // !defined(InspectorEmulationAgent_h) 52 #endif // !defined(InspectorEmulationAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698