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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 88 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
89 agent->clearBrowserCache(); | 89 agent->clearBrowserCache(); |
90 } | 90 } |
91 | 91 |
92 void InspectorClientImpl::clearBrowserCookies() | 92 void InspectorClientImpl::clearBrowserCookies() |
93 { | 93 { |
94 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 94 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
95 agent->clearBrowserCookies(); | 95 agent->clearBrowserCookies(); |
96 } | 96 } |
97 | 97 |
98 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev
iceScaleFactor, bool fitWindow) | 98 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float dev
iceScaleFactor, bool emulateViewport, bool fitWindow) |
99 { | 99 { |
100 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 100 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
101 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, fitWindow
); | 101 agent->overrideDeviceMetrics(width, height, deviceScaleFactor, emulateVi
ewport, fitWindow); |
102 } | 102 } |
103 | 103 |
104 bool InspectorClientImpl::overridesShowPaintRects() | 104 bool InspectorClientImpl::overridesShowPaintRects() |
105 { | 105 { |
106 return m_inspectedWebView->isAcceleratedCompositingActive(); | 106 return m_inspectedWebView->isAcceleratedCompositingActive(); |
107 } | 107 } |
108 | 108 |
109 void InspectorClientImpl::setShowPaintRects(bool show) | 109 void InspectorClientImpl::setShowPaintRects(bool show) |
110 { | 110 { |
111 m_inspectedWebView->setShowPaintRects(show); | 111 m_inspectedWebView->setShowPaintRects(show); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 165 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
166 agent->setTraceEventCallback(callback); | 166 agent->setTraceEventCallback(callback); |
167 } | 167 } |
168 | 168 |
169 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 169 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() |
170 { | 170 { |
171 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); | 171 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); |
172 } | 172 } |
173 | 173 |
174 } // namespace WebKit | 174 } // namespace WebKit |
OLD | NEW |