| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "web_layer_tree_view_impl.h" | 5 #include "web_layer_tree_view_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "cc/font_atlas.h" | 9 #include "cc/font_atlas.h" |
| 10 #include "cc/input_handler.h" | 10 #include "cc/input_handler.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 return m_layerTreeHost->layoutViewportSize(); | 106 return m_layerTreeHost->layoutViewportSize(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 WebSize WebLayerTreeViewImpl::deviceViewportSize() const | 109 WebSize WebLayerTreeViewImpl::deviceViewportSize() const |
| 110 { | 110 { |
| 111 return m_layerTreeHost->deviceViewportSize(); | 111 return m_layerTreeHost->deviceViewportSize(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 WebFloatPoint WebLayerTreeViewImpl::adjustEventPointForPinchZoom(const WebFloatP
oint& point) const | 114 WebFloatPoint WebLayerTreeViewImpl::adjustEventPointForPinchZoom(const WebFloatP
oint& point) const |
| 115 { | 115 { |
| 116 return m_layerTreeHost->adjustEventPointForPinchZoom(point); | 116 return point; |
| 117 } | 117 } |
| 118 | 118 |
| 119 void WebLayerTreeViewImpl::setDeviceScaleFactor(const float deviceScaleFactor) | 119 void WebLayerTreeViewImpl::setDeviceScaleFactor(const float deviceScaleFactor) |
| 120 { | 120 { |
| 121 m_layerTreeHost->setDeviceScaleFactor(deviceScaleFactor); | 121 m_layerTreeHost->setDeviceScaleFactor(deviceScaleFactor); |
| 122 } | 122 } |
| 123 | 123 |
| 124 float WebLayerTreeViewImpl::deviceScaleFactor() const | 124 float WebLayerTreeViewImpl::deviceScaleFactor() const |
| 125 { | 125 { |
| 126 return m_layerTreeHost->deviceScaleFactor(); | 126 return m_layerTreeHost->deviceScaleFactor(); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 { | 304 { |
| 305 m_client->didCompleteSwapBuffers(); | 305 m_client->didCompleteSwapBuffers(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void WebLayerTreeViewImpl::scheduleComposite() | 308 void WebLayerTreeViewImpl::scheduleComposite() |
| 309 { | 309 { |
| 310 m_client->scheduleComposite(); | 310 m_client->scheduleComposite(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 } // namespace WebKit | 313 } // namespace WebKit |
| OLD | NEW |