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

Side by Side Diff: Source/web/InspectorClientImpl.cpp

Issue 355393004: [DevTools] Rename "emulateViewport" to "mobile". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another rebase Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 83 if (WebDevToolsAgentImpl* agent = devToolsAgent())
84 agent->flush(); 84 agent->flush();
85 } 85 }
86 86
87 void InspectorClientImpl::updateInspectorStateCookie(const WTF::String& inspecto rState) 87 void InspectorClientImpl::updateInspectorStateCookie(const WTF::String& inspecto rState)
88 { 88 {
89 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 89 if (WebDevToolsAgentImpl* agent = devToolsAgent())
90 agent->updateInspectorStateCookie(inspectorState); 90 agent->updateInspectorStateCookie(inspectorState);
91 } 91 }
92 92
93 void InspectorClientImpl::setDeviceMetricsOverride(int width, int height, float deviceScaleFactor, bool emulateViewport, bool fitWindow, float scale, float offs etX, float offsetY) 93 void InspectorClientImpl::setDeviceMetricsOverride(int width, int height, float deviceScaleFactor, bool mobile, bool fitWindow, float scale, float offsetX, floa t offsetY)
94 { 94 {
95 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 95 if (WebDevToolsAgentImpl* agent = devToolsAgent())
96 agent->setDeviceMetricsOverride(width, height, deviceScaleFactor, emulat eViewport, fitWindow, scale, offsetX, offsetY); 96 agent->setDeviceMetricsOverride(width, height, deviceScaleFactor, mobile , fitWindow, scale, offsetX, offsetY);
97 } 97 }
98 98
99 void InspectorClientImpl::clearDeviceMetricsOverride() 99 void InspectorClientImpl::clearDeviceMetricsOverride()
100 { 100 {
101 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 101 if (WebDevToolsAgentImpl* agent = devToolsAgent())
102 agent->clearDeviceMetricsOverride(); 102 agent->clearDeviceMetricsOverride();
103 } 103 }
104 104
105 void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled) 105 void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled)
106 { 106 {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 if (WebDevToolsAgentImpl* agent = devToolsAgent()) 202 if (WebDevToolsAgentImpl* agent = devToolsAgent())
203 agent->stopGPUEventsRecording(); 203 agent->stopGPUEventsRecording();
204 } 204 }
205 205
206 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() 206 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent()
207 { 207 {
208 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( )); 208 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent( ));
209 } 209 }
210 210
211 } // namespace blink 211 } // namespace blink
OLDNEW
« no previous file with comments | « Source/devtools/protocol.json ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698