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