OLD | NEW |
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 "core/inspector/InspectorEmulationAgent.h" | 5 #include "core/inspector/InspectorEmulationAgent.h" |
6 | 6 |
7 #include "core/exported/WebViewBase.h" | 7 #include "core/exported/WebViewBase.h" |
8 #include "core/frame/LocalFrameView.h" | 8 #include "core/frame/LocalFrameView.h" |
9 #include "core/frame/Settings.h" | 9 #include "core/frame/Settings.h" |
10 #include "core/frame/WebLocalFrameBase.h" | 10 #include "core/frame/WebLocalFrameBase.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 namespace EmulationAgentState { | 27 namespace EmulationAgentState { |
28 static const char kScriptExecutionDisabled[] = "scriptExecutionDisabled"; | 28 static const char kScriptExecutionDisabled[] = "scriptExecutionDisabled"; |
29 static const char kTouchEventEmulationEnabled[] = "touchEventEmulationEnabled"; | 29 static const char kTouchEventEmulationEnabled[] = "touchEventEmulationEnabled"; |
30 static const char kEmulatedMedia[] = "emulatedMedia"; | 30 static const char kEmulatedMedia[] = "emulatedMedia"; |
31 static const char kForcedViewportEnabled[] = "forcedViewportEnabled"; | 31 static const char kForcedViewportEnabled[] = "forcedViewportEnabled"; |
32 static const char kForcedViewportX[] = "forcedViewportX"; | 32 static const char kForcedViewportX[] = "forcedViewportX"; |
33 static const char kForcedViewportY[] = "forcedViewportY"; | 33 static const char kForcedViewportY[] = "forcedViewportY"; |
34 static const char kForcedViewportScale[] = "forcedViewportScale"; | 34 static const char kForcedViewportScale[] = "forcedViewportScale"; |
35 static const char kDefaultBackgroundColorOverrideRGBA[] = | 35 static const char kDefaultBackgroundColorOverrideRGBA[] = |
36 "defaultBackgroundColorOverrideRGBA"; | 36 "defaultBackgroundColorOverrideRGBA"; |
37 } | 37 } // namespace EmulationAgentState |
38 | 38 |
39 InspectorEmulationAgent* InspectorEmulationAgent::Create( | 39 InspectorEmulationAgent* InspectorEmulationAgent::Create( |
40 WebLocalFrameBase* web_local_frame_impl, | 40 WebLocalFrameBase* web_local_frame_impl, |
41 Client* client) { | 41 Client* client) { |
42 return new InspectorEmulationAgent(web_local_frame_impl, client); | 42 return new InspectorEmulationAgent(web_local_frame_impl, client); |
43 } | 43 } |
44 | 44 |
45 InspectorEmulationAgent::InspectorEmulationAgent( | 45 InspectorEmulationAgent::InspectorEmulationAgent( |
46 WebLocalFrameBase* web_local_frame_impl, | 46 WebLocalFrameBase* web_local_frame_impl, |
47 Client* client) | 47 Client* client) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 Color(rgba->getR(), rgba->getG(), rgba->getB(), alpha).Rgb()); | 204 Color(rgba->getR(), rgba->getG(), rgba->getB(), alpha).Rgb()); |
205 return Response::OK(); | 205 return Response::OK(); |
206 } | 206 } |
207 | 207 |
208 DEFINE_TRACE(InspectorEmulationAgent) { | 208 DEFINE_TRACE(InspectorEmulationAgent) { |
209 visitor->Trace(web_local_frame_); | 209 visitor->Trace(web_local_frame_); |
210 InspectorBaseAgent::Trace(visitor); | 210 InspectorBaseAgent::Trace(visitor); |
211 } | 211 } |
212 | 212 |
213 } // namespace blink | 213 } // namespace blink |
OLD | NEW |