| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
| 3 // in the LICENSE file. | 3 // in the LICENSE file. |
| 4 | 4 |
| 5 #include "web/WebViewFrameWidget.h" | 5 #include "web/WebViewFrameWidget.h" |
| 6 | 6 |
| 7 #include "web/WebLocalFrameImpl.h" | 7 #include "web/WebLocalFrameImpl.h" |
| 8 #include "web/WebViewImpl.h" | 8 #include "web/WebViewImpl.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 void WebViewFrameWidget::applyViewportDeltas( | 114 void WebViewFrameWidget::applyViewportDeltas( |
| 115 const WebFloatSize& visualViewportDelta, | 115 const WebFloatSize& visualViewportDelta, |
| 116 const WebFloatSize& layoutViewportDelta, | 116 const WebFloatSize& layoutViewportDelta, |
| 117 const WebFloatSize& elasticOverscrollDelta, | 117 const WebFloatSize& elasticOverscrollDelta, |
| 118 float scaleFactor, | 118 float scaleFactor, |
| 119 float topControlsShownRatioDelta) | 119 float topControlsShownRatioDelta) |
| 120 { | 120 { |
| 121 return m_webView->applyViewportDeltas(visualViewportDelta, layoutViewportDel
ta, elasticOverscrollDelta, scaleFactor, topControlsShownRatioDelta); | 121 return m_webView->applyViewportDeltas(visualViewportDelta, layoutViewportDel
ta, elasticOverscrollDelta, scaleFactor, topControlsShownRatioDelta); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void WebViewFrameWidget::recordFrameTimingEvent(FrameTimingEventType eventType,
int64_t rectId, const WebVector<WebFrameTimingEvent>& events) | |
| 125 { | |
| 126 return m_webView->recordFrameTimingEvent(eventType, rectId, events); | |
| 127 } | |
| 128 | |
| 129 void WebViewFrameWidget::mouseCaptureLost() | 124 void WebViewFrameWidget::mouseCaptureLost() |
| 130 { | 125 { |
| 131 return m_webView->mouseCaptureLost(); | 126 return m_webView->mouseCaptureLost(); |
| 132 } | 127 } |
| 133 | 128 |
| 134 void WebViewFrameWidget::setFocus(bool enable) | 129 void WebViewFrameWidget::setFocus(bool enable) |
| 135 { | 130 { |
| 136 return m_webView->setFocus(enable); | 131 return m_webView->setFocus(enable); |
| 137 } | 132 } |
| 138 | 133 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 { | 264 { |
| 270 m_webView->setBaseBackgroundColor(color); | 265 m_webView->setBaseBackgroundColor(color); |
| 271 } | 266 } |
| 272 | 267 |
| 273 void WebViewFrameWidget::scheduleAnimation() | 268 void WebViewFrameWidget::scheduleAnimation() |
| 274 { | 269 { |
| 275 m_webView->scheduleAnimation(); | 270 m_webView->scheduleAnimation(); |
| 276 } | 271 } |
| 277 | 272 |
| 278 } // namespace blink | 273 } // namespace blink |
| OLD | NEW |