OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 2050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2061 render_thread ? render_thread->input_handler_manager() : NULL; | 2061 render_thread ? render_thread->input_handler_manager() : NULL; |
2062 if (input_handler_manager) { | 2062 if (input_handler_manager) { |
2063 input_handler_manager->AddInputHandler( | 2063 input_handler_manager->AddInputHandler( |
2064 GetRoutingID(), rwc->GetInputHandler(), AsWeakPtr(), | 2064 GetRoutingID(), rwc->GetInputHandler(), AsWeakPtr(), |
2065 webkit_preferences_.enable_scroll_animator, | 2065 webkit_preferences_.enable_scroll_animator, |
2066 UseGestureBasedWheelScrolling()); | 2066 UseGestureBasedWheelScrolling()); |
2067 } | 2067 } |
2068 } | 2068 } |
2069 } | 2069 } |
2070 | 2070 |
| 2071 bool RenderViewImpl::allowsBrokenNullLayerTreeView() const { |
| 2072 return RenderWidget::allowsBrokenNullLayerTreeView(); |
| 2073 } |
| 2074 |
| 2075 void RenderViewImpl::closeWidgetSoon() { |
| 2076 RenderWidget::closeWidgetSoon(); |
| 2077 } |
| 2078 |
| 2079 void RenderViewImpl::convertViewportToWindow(blink::WebRect* rect) { |
| 2080 RenderWidget::convertViewportToWindow(rect); |
| 2081 } |
| 2082 |
| 2083 void RenderViewImpl::convertWindowToViewport(blink::WebFloatRect* rect) { |
| 2084 RenderWidget::convertWindowToViewport(rect); |
| 2085 } |
| 2086 |
| 2087 void RenderViewImpl::didAutoResize(const blink::WebSize& newSize) { |
| 2088 RenderWidget::didAutoResize(newSize); |
| 2089 } |
| 2090 |
| 2091 void RenderViewImpl::didChangeCursor(const blink::WebCursorInfo& info) { |
| 2092 RenderWidget::didChangeCursor(info); |
| 2093 } |
| 2094 |
| 2095 void RenderViewImpl::didInvalidateRect(const blink::WebRect& rect) { |
| 2096 RenderWidget::didInvalidateRect(rect); |
| 2097 } |
| 2098 |
| 2099 void RenderViewImpl::didMeaningfulLayout( |
| 2100 blink::WebMeaningfulLayout layout_type) { |
| 2101 RenderWidget::didMeaningfulLayout(layout_type); |
| 2102 } |
| 2103 |
| 2104 void RenderViewImpl::didOverscroll( |
| 2105 const blink::WebFloatSize& overscrollDelta, |
| 2106 const blink::WebFloatSize& accumulatedOverscroll, |
| 2107 const blink::WebFloatPoint& positionInViewport, |
| 2108 const blink::WebFloatSize& velocityInViewport) { |
| 2109 RenderWidget::didOverscroll(overscrollDelta, accumulatedOverscroll, |
| 2110 positionInViewport, velocityInViewport); |
| 2111 } |
| 2112 |
| 2113 void RenderViewImpl::didUpdateTextOfFocusedElementByNonUserInput() { |
| 2114 RenderWidget::didUpdateTextOfFocusedElementByNonUserInput(); |
| 2115 } |
| 2116 |
| 2117 void RenderViewImpl::hasTouchEventHandlers(bool has_handlers) { |
| 2118 RenderWidget::hasTouchEventHandlers(has_handlers); |
| 2119 } |
| 2120 |
| 2121 blink::WebLayerTreeView* RenderViewImpl::layerTreeView() { |
| 2122 return RenderWidget::layerTreeView(); |
| 2123 } |
| 2124 |
| 2125 void RenderViewImpl::resetInputMethod() { |
| 2126 RenderWidget::resetInputMethod(); |
| 2127 } |
| 2128 |
| 2129 blink::WebRect RenderViewImpl::rootWindowRect() { |
| 2130 return RenderWidget::rootWindowRect(); |
| 2131 } |
| 2132 |
| 2133 void RenderViewImpl::scheduleAnimation() { |
| 2134 RenderWidget::scheduleAnimation(); |
| 2135 } |
| 2136 |
| 2137 blink::WebScreenInfo RenderViewImpl::screenInfo() { |
| 2138 return RenderWidget::screenInfo(); |
| 2139 } |
| 2140 |
| 2141 void RenderViewImpl::setToolTipText(const blink::WebString& text, |
| 2142 blink::WebTextDirection hint) { |
| 2143 RenderWidget::setToolTipText(text, hint); |
| 2144 } |
| 2145 |
| 2146 void RenderViewImpl::setTouchAction(blink::WebTouchAction touchAction) { |
| 2147 RenderWidget::setTouchAction(touchAction); |
| 2148 } |
| 2149 |
| 2150 void RenderViewImpl::setWindowRect(const blink::WebRect& rect) { |
| 2151 RenderWidget::setWindowRect(rect); |
| 2152 } |
| 2153 |
| 2154 void RenderViewImpl::showImeIfNeeded() { |
| 2155 RenderWidget::showImeIfNeeded(); |
| 2156 } |
| 2157 |
| 2158 void RenderViewImpl::showUnhandledTapUIIfNeeded( |
| 2159 const blink::WebPoint& tappedPosition, |
| 2160 const blink::WebNode& tappedNode, |
| 2161 bool pageChanged) { |
| 2162 RenderWidget::showUnhandledTapUIIfNeeded(tappedPosition, tappedNode, |
| 2163 pageChanged); |
| 2164 } |
| 2165 |
| 2166 blink::WebRect RenderViewImpl::windowRect() { |
| 2167 return RenderWidget::windowRect(); |
| 2168 } |
| 2169 |
| 2170 blink::WebRect RenderViewImpl::windowResizerRect() { |
| 2171 return RenderWidget::windowResizerRect(); |
| 2172 } |
| 2173 |
2071 // blink::WebFrameClient ----------------------------------------------------- | 2174 // blink::WebFrameClient ----------------------------------------------------- |
2072 | 2175 |
2073 void RenderViewImpl::Repaint(const gfx::Size& size) { | 2176 void RenderViewImpl::Repaint(const gfx::Size& size) { |
2074 OnRepaint(size); | 2177 OnRepaint(size); |
2075 } | 2178 } |
2076 | 2179 |
2077 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, | 2180 void RenderViewImpl::SetEditCommandForNextKeyEvent(const std::string& name, |
2078 const std::string& value) { | 2181 const std::string& value) { |
2079 EditCommands edit_commands; | 2182 EditCommands edit_commands; |
2080 edit_commands.push_back(EditCommand(name, value)); | 2183 edit_commands.push_back(EditCommand(name, value)); |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3298 if (IsUseZoomForDSFEnabled()) { | 3401 if (IsUseZoomForDSFEnabled()) { |
3299 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3402 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
3300 } else { | 3403 } else { |
3301 webview()->setDeviceScaleFactor(device_scale_factor_); | 3404 webview()->setDeviceScaleFactor(device_scale_factor_); |
3302 } | 3405 } |
3303 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3406 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
3304 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3407 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
3305 } | 3408 } |
3306 | 3409 |
3307 } // namespace content | 3410 } // namespace content |
OLD | NEW |