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 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1969 } | 1969 } |
1970 | 1970 |
1971 gfx::Size RenderViewImpl::GetSize() const { | 1971 gfx::Size RenderViewImpl::GetSize() const { |
1972 return size(); | 1972 return size(); |
1973 } | 1973 } |
1974 | 1974 |
1975 float RenderViewImpl::GetDeviceScaleFactor() const { | 1975 float RenderViewImpl::GetDeviceScaleFactor() const { |
1976 return device_scale_factor_; | 1976 return device_scale_factor_; |
1977 } | 1977 } |
1978 | 1978 |
1979 WebPreferences& RenderViewImpl::GetWebkitPreferences() { | 1979 const WebPreferences& RenderViewImpl::GetWebkitPreferences() { |
1980 return webkit_preferences_; | 1980 return webkit_preferences_; |
1981 } | 1981 } |
1982 | 1982 |
1983 void RenderViewImpl::SetWebkitPreferences(const WebPreferences& preferences) { | 1983 void RenderViewImpl::SetWebkitPreferences(const WebPreferences& preferences) { |
1984 OnUpdateWebPreferences(preferences); | 1984 OnUpdateWebPreferences(preferences); |
1985 } | 1985 } |
1986 | 1986 |
1987 blink::WebView* RenderViewImpl::GetWebView() { | 1987 blink::WebView* RenderViewImpl::GetWebView() { |
1988 return webview(); | 1988 return webview(); |
1989 } | 1989 } |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2669 input_event.GetCoalescedEventsPointers(), latency_info, | 2669 input_event.GetCoalescedEventsPointers(), latency_info, |
2670 dispatch_type); | 2670 dispatch_type); |
2671 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 2671 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
2672 } | 2672 } |
2673 idle_user_detector_->ActivityDetected(); | 2673 idle_user_detector_->ActivityDetected(); |
2674 return RenderWidget::HandleInputEvent(input_event, latency_info, | 2674 return RenderWidget::HandleInputEvent(input_event, latency_info, |
2675 dispatch_type); | 2675 dispatch_type); |
2676 } | 2676 } |
2677 | 2677 |
2678 } // namespace content | 2678 } // namespace content |
OLD | NEW |