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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 95 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
96 agent->clearBrowserCookies(); | 96 agent->clearBrowserCookies(); |
97 } | 97 } |
98 | 98 |
99 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float fon
tScaleFactor, bool fitWindow) | 99 void InspectorClientImpl::overrideDeviceMetrics(int width, int height, float fon
tScaleFactor, bool fitWindow) |
100 { | 100 { |
101 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 101 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
102 agent->overrideDeviceMetrics(width, height, fontScaleFactor, fitWindow); | 102 agent->overrideDeviceMetrics(width, height, fontScaleFactor, fitWindow); |
103 } | 103 } |
104 | 104 |
105 void InspectorClientImpl::autoZoomPageToFitWidth() | |
106 { | |
107 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | |
108 agent->autoZoomPageToFitWidth(); | |
109 } | |
110 | |
111 bool InspectorClientImpl::overridesShowPaintRects() | 105 bool InspectorClientImpl::overridesShowPaintRects() |
112 { | 106 { |
113 return m_inspectedWebView->isAcceleratedCompositingActive(); | 107 return m_inspectedWebView->isAcceleratedCompositingActive(); |
114 } | 108 } |
115 | 109 |
116 void InspectorClientImpl::setShowPaintRects(bool show) | 110 void InspectorClientImpl::setShowPaintRects(bool show) |
117 { | 111 { |
118 m_inspectedWebView->setShowPaintRects(show); | 112 m_inspectedWebView->setShowPaintRects(show); |
119 } | 113 } |
120 | 114 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 if (WebDevToolsAgentImpl* agent = devToolsAgent()) | 161 if (WebDevToolsAgentImpl* agent = devToolsAgent()) |
168 agent->setTraceEventCallback(callback); | 162 agent->setTraceEventCallback(callback); |
169 } | 163 } |
170 | 164 |
171 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() | 165 WebDevToolsAgentImpl* InspectorClientImpl::devToolsAgent() |
172 { | 166 { |
173 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); | 167 return static_cast<WebDevToolsAgentImpl*>(m_inspectedWebView->devToolsAgent(
)); |
174 } | 168 } |
175 | 169 |
176 } // namespace WebKit | 170 } // namespace WebKit |
OLD | NEW |