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

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: updates 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/shell_content_browser_client.cc » ('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 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::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
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
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698