| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 101 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 102 agent->clearBrowserCookies(); | 102 agent->clearBrowserCookies(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev
iceScaleFactor, bool emulateViewport, bool fitWindow) | 105 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev
iceScaleFactor, bool emulateViewport, bool fitWindow) |
| 106 { | 106 { |
| 107 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 107 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 108 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateVi
ewport, fitWindow); | 108 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateVi
ewport, fitWindow); |
| 109 } | 109 } |
| 110 | 110 |
| 111 void InspectorClientImpl::setTouchEventEmulationEnabled(bool enabled) |
| 112 { |
| 113 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 114 agent->setTouchEventEmulationEnabled(enabled); |
| 115 } |
| 116 |
| 111 bool InspectorClientImpl::overridesShowPaintRects() | 117 bool InspectorClientImpl::overridesShowPaintRects() |
| 112 { | 118 { |
| 113 return m_inspectedWebView->isAcceleratedCompositingActive(); | 119 return m_inspectedWebView->isAcceleratedCompositingActive(); |
| 114 } | 120 } |
| 115 | 121 |
| 116 void InspectorClientImpl::setShowPaintRects(bool show) | 122 void InspectorClientImpl::setShowPaintRects(bool show) |
| 117 { | 123 { |
| 118 m_inspectedWebView->setShowPaintRects(show); | 124 m_inspectedWebView->setShowPaintRects(show); |
| 119 } | 125 } |
| 120 | 126 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 197 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
| 192 agent->stopGPUEventsRecording(); | 198 agent->stopGPUEventsRecording(); |
| 193 } | 199 } |
| 194 | 200 |
| 195 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 201 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() |
| 196 { | 202 { |
| 197 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); | 203 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); |
| 198 } | 204 } |
| 199 | 205 |
| 200 } // namespace blink | 206 } // namespace blink |
| OLD | NEW |