Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2862753002: Mark Render{Frame,View}::GetWebkitPreferences() return values as const. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/sad_plugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/sad_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698