OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 3463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3474 return true; | 3474 return true; |
3475 } | 3475 } |
3476 | 3476 |
3477 void WebViewImpl::setInspectorSetting(const WebString& key, | 3477 void WebViewImpl::setInspectorSetting(const WebString& key, |
3478 const WebString& value) | 3478 const WebString& value) |
3479 { | 3479 { |
3480 m_inspectorSettingsMap->set(key, value); | 3480 m_inspectorSettingsMap->set(key, value); |
3481 client()->didUpdateInspectorSetting(key, value); | 3481 client()->didUpdateInspectorSetting(key, value); |
3482 } | 3482 } |
3483 | 3483 |
| 3484 void WebViewImpl::setCompositorDeviceScaleFactorOverride(float deviceScaleFactor
) |
| 3485 { |
| 3486 } |
| 3487 |
| 3488 void WebViewImpl::setRootLayerScaleTransform(float rootLayerScale) |
| 3489 { |
| 3490 } |
| 3491 |
3484 WebDevToolsAgent* WebViewImpl::devToolsAgent() | 3492 WebDevToolsAgent* WebViewImpl::devToolsAgent() |
3485 { | 3493 { |
3486 return m_devToolsAgent.get(); | 3494 return m_devToolsAgent.get(); |
3487 } | 3495 } |
3488 | 3496 |
3489 WebAXObject WebViewImpl::accessibilityObject() | 3497 WebAXObject WebViewImpl::accessibilityObject() |
3490 { | 3498 { |
3491 if (!mainFrameImpl()) | 3499 if (!mainFrameImpl()) |
3492 return WebAXObject(); | 3500 return WebAXObject(); |
3493 | 3501 |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4196 // the initial viewport width. | 4204 // the initial viewport width. |
4197 // 2. The author has disabled viewport zoom. | 4205 // 2. The author has disabled viewport zoom. |
4198 | 4206 |
4199 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4207 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4200 | 4208 |
4201 return fixedLayoutSize().width == m_size.width | 4209 return fixedLayoutSize().width == m_size.width |
4202 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4210 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4203 } | 4211 } |
4204 | 4212 |
4205 } // namespace WebKit | 4213 } // namespace WebKit |
OLD | NEW |