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

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

Issue 11316244: [content shell] add support for a testRunner.setXSSAuditorEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 4294 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::OverrideWebkitPreferences(
4316 const WebPreferences& preferences) {
4317 OnUpdateWebPreferences(preferences);
4318 }
4319
4315 WebKit::WebView* RenderViewImpl::GetWebView() { 4320 WebKit::WebView* RenderViewImpl::GetWebView() {
4316 return webview(); 4321 return webview();
4317 } 4322 }
4318 4323
4319 WebKit::WebNode RenderViewImpl::GetFocusedNode() const { 4324 WebKit::WebNode RenderViewImpl::GetFocusedNode() const {
4320 if (!webview()) 4325 if (!webview())
4321 return WebNode(); 4326 return WebNode();
4322 WebFrame* focused_frame = webview()->focusedFrame(); 4327 WebFrame* focused_frame = webview()->focusedFrame();
4323 if (focused_frame) { 4328 if (focused_frame) {
4324 WebDocument doc = focused_frame->document(); 4329 WebDocument doc = focused_frame->document();
(...skipping 2093 matching lines...) Expand 10 before | Expand all | Expand 10 after
6418 } 6423 }
6419 #endif 6424 #endif
6420 6425
6421 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6426 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6422 TransportDIB::Handle dib_handle) { 6427 TransportDIB::Handle dib_handle) {
6423 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6428 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6424 RenderProcess::current()->ReleaseTransportDIB(dib); 6429 RenderProcess::current()->ReleaseTransportDIB(dib);
6425 } 6430 }
6426 6431
6427 } // namespace content 6432 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698