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

Side by Side Diff: webkit/glue/webframe_impl.cc

Issue 284015: Swaps renderer processes on links with rel=noreferrer and target=_blank.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 } 906 }
907 907
908 unsigned WebFrameImpl::unloadListenerCount() const { 908 unsigned WebFrameImpl::unloadListenerCount() const {
909 return frame()->domWindow()->pendingUnloadEventListeners(); 909 return frame()->domWindow()->pendingUnloadEventListeners();
910 } 910 }
911 911
912 bool WebFrameImpl::isProcessingUserGesture() const { 912 bool WebFrameImpl::isProcessingUserGesture() const {
913 return frame()->loader()->isProcessingUserGesture(); 913 return frame()->loader()->isProcessingUserGesture();
914 } 914 }
915 915
916 bool WebFrameImpl::willSuppressOpenerInNewFrame() const {
917 return frame()->loader()->suppressOpenerInNewFrame();
918 }
919
916 void WebFrameImpl::replaceSelection(const WebString& wtext) { 920 void WebFrameImpl::replaceSelection(const WebString& wtext) {
917 String text = webkit_glue::WebStringToString(wtext); 921 String text = webkit_glue::WebStringToString(wtext);
918 RefPtr<DocumentFragment> fragment = createFragmentFromText( 922 RefPtr<DocumentFragment> fragment = createFragmentFromText(
919 frame()->selection()->toNormalizedRange().get(), text); 923 frame()->selection()->toNormalizedRange().get(), text);
920 WebCore::applyCommand(WebCore::ReplaceSelectionCommand::create( 924 WebCore::applyCommand(WebCore::ReplaceSelectionCommand::create(
921 frame()->document(), fragment.get(), false, true, true)); 925 frame()->document(), fragment.get(), false, true, true));
922 } 926 }
923 927
924 void WebFrameImpl::insertText(const WebString& text) { 928 void WebFrameImpl::insertText(const WebString& text) {
925 frame()->editor()->insertText(webkit_glue::WebStringToString(text), NULL); 929 frame()->editor()->insertText(webkit_glue::WebStringToString(text), NULL);
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 1909
1906 SecurityOrigin* security_origin = frame_->document()->securityOrigin(); 1910 SecurityOrigin* security_origin = frame_->document()->securityOrigin();
1907 1911
1908 if (!frame_->redirectScheduler()->locationChangePending()) { 1912 if (!frame_->redirectScheduler()->locationChangePending()) {
1909 frame_->loader()->stopAllLoaders(); 1913 frame_->loader()->stopAllLoaders();
1910 frame_->loader()->begin(frame_->loader()->url(), true, security_origin); 1914 frame_->loader()->begin(frame_->loader()->url(), true, security_origin);
1911 frame_->loader()->write(script_result); 1915 frame_->loader()->write(script_result);
1912 frame_->loader()->end(); 1916 frame_->loader()->end();
1913 } 1917 }
1914 } 1918 }
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698