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

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

Issue 2012753003: DevTools: consolidate protocol generators for front-end, backend and type builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 #include "web/InspectorEmulationAgent.h" 5 #include "web/InspectorEmulationAgent.h"
6 6
7 #include "core/frame/FrameHost.h" 7 #include "core/frame/FrameHost.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/Settings.h" 9 #include "core/frame/Settings.h"
10 #include "core/page/Page.h" 10 #include "core/page/Page.h"
11 #include "platform/geometry/DoubleRect.h" 11 #include "platform/geometry/DoubleRect.h"
12 #include "web/DevToolsEmulator.h" 12 #include "web/DevToolsEmulator.h"
13 #include "web/WebLocalFrameImpl.h" 13 #include "web/WebLocalFrameImpl.h"
14 #include "web/WebViewImpl.h" 14 #include "web/WebViewImpl.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 namespace EmulationAgentState { 18 namespace EmulationAgentState {
19 static const char scriptExecutionDisabled[] = "scriptExecutionDisabled"; 19 static const char scriptExecutionDisabled[] = "scriptExecutionDisabled";
20 static const char touchEventEmulationEnabled[] = "touchEventEmulationEnabled"; 20 static const char touchEventEmulationEnabled[] = "touchEventEmulationEnabled";
21 static const char emulatedMedia[] = "emulatedMedia"; 21 static const char emulatedMedia[] = "emulatedMedia";
22 } 22 }
23 23
24 InspectorEmulationAgent* InspectorEmulationAgent::create(WebLocalFrameImpl* webL ocalFrameImpl, Client* client) 24 InspectorEmulationAgent* InspectorEmulationAgent::create(WebLocalFrameImpl* webL ocalFrameImpl, Client* client)
25 { 25 {
26 return new InspectorEmulationAgent(webLocalFrameImpl, client); 26 return new InspectorEmulationAgent(webLocalFrameImpl, client);
27 } 27 }
28 28
29 InspectorEmulationAgent::InspectorEmulationAgent(WebLocalFrameImpl* webLocalFram eImpl, Client* client) 29 InspectorEmulationAgent::InspectorEmulationAgent(WebLocalFrameImpl* webLocalFram eImpl, Client* client)
30 : InspectorBaseAgent<InspectorEmulationAgent, protocol::Emulation::Frontend> ("Emulation") 30 : m_webLocalFrameImpl(webLocalFrameImpl)
31 , m_webLocalFrameImpl(webLocalFrameImpl)
32 , m_client(client) 31 , m_client(client)
33 { 32 {
34 } 33 }
35 34
36 InspectorEmulationAgent::~InspectorEmulationAgent() 35 InspectorEmulationAgent::~InspectorEmulationAgent()
37 { 36 {
38 } 37 }
39 38
40 WebViewImpl* InspectorEmulationAgent::webViewImpl() 39 WebViewImpl* InspectorEmulationAgent::webViewImpl()
41 { 40 {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 m_client->setCPUThrottlingRate(throttlingRate); 92 m_client->setCPUThrottlingRate(throttlingRate);
94 } 93 }
95 94
96 DEFINE_TRACE(InspectorEmulationAgent) 95 DEFINE_TRACE(InspectorEmulationAgent)
97 { 96 {
98 visitor->trace(m_webLocalFrameImpl); 97 visitor->trace(m_webLocalFrameImpl);
99 InspectorBaseAgent::trace(visitor); 98 InspectorBaseAgent::trace(visitor);
100 } 99 }
101 100
102 } // namespace blink 101 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorEmulationAgent.h ('k') | third_party/WebKit/Source/web/InspectorRenderingAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698