| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |