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 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 4294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4305 } | 4305 } |
4306 | 4306 |
4307 gfx::Size RenderViewImpl::GetSize() const { | 4307 gfx::Size RenderViewImpl::GetSize() const { |
4308 return size(); | 4308 return size(); |
4309 } | 4309 } |
4310 | 4310 |
4311 WebPreferences& RenderViewImpl::GetWebkitPreferences() { | 4311 WebPreferences& RenderViewImpl::GetWebkitPreferences() { |
4312 return webkit_preferences_; | 4312 return webkit_preferences_; |
4313 } | 4313 } |
4314 | 4314 |
| 4315 void RenderViewImpl::SetWebkitPreferences(const WebPreferences& preferences) { |
| 4316 OnUpdateWebPreferences(preferences); |
| 4317 } |
| 4318 |
4315 WebKit::WebView* RenderViewImpl::GetWebView() { | 4319 WebKit::WebView* RenderViewImpl::GetWebView() { |
4316 return webview(); | 4320 return webview(); |
4317 } | 4321 } |
4318 | 4322 |
4319 WebKit::WebNode RenderViewImpl::GetFocusedNode() const { | 4323 WebKit::WebNode RenderViewImpl::GetFocusedNode() const { |
4320 if (!webview()) | 4324 if (!webview()) |
4321 return WebNode(); | 4325 return WebNode(); |
4322 WebFrame* focused_frame = webview()->focusedFrame(); | 4326 WebFrame* focused_frame = webview()->focusedFrame(); |
4323 if (focused_frame) { | 4327 if (focused_frame) { |
4324 WebDocument doc = focused_frame->document(); | 4328 WebDocument doc = focused_frame->document(); |
(...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6418 } | 6422 } |
6419 #endif | 6423 #endif |
6420 | 6424 |
6421 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6425 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6422 TransportDIB::Handle dib_handle) { | 6426 TransportDIB::Handle dib_handle) { |
6423 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6427 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6424 RenderProcess::current()->ReleaseTransportDIB(dib); | 6428 RenderProcess::current()->ReleaseTransportDIB(dib); |
6425 } | 6429 } |
6426 | 6430 |
6427 } // namespace content | 6431 } // namespace content |
OLD | NEW |