OLD | NEW |
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 } | 873 } |
874 | 874 |
875 unsigned WebFrameImpl::unloadListenerCount() const { | 875 unsigned WebFrameImpl::unloadListenerCount() const { |
876 return frame()->domWindow()->pendingUnloadEventListeners(); | 876 return frame()->domWindow()->pendingUnloadEventListeners(); |
877 } | 877 } |
878 | 878 |
879 bool WebFrameImpl::isProcessingUserGesture() const { | 879 bool WebFrameImpl::isProcessingUserGesture() const { |
880 return frame()->loader()->isProcessingUserGesture(); | 880 return frame()->loader()->isProcessingUserGesture(); |
881 } | 881 } |
882 | 882 |
| 883 bool WebFrameImpl::willSuppressOpenerInNewFrame() const { |
| 884 return frame()->loader()->suppressOpenerInNewFrame(); |
| 885 } |
| 886 |
883 void WebFrameImpl::replaceSelection(const WebString& wtext) { | 887 void WebFrameImpl::replaceSelection(const WebString& wtext) { |
884 String text = webkit_glue::WebStringToString(wtext); | 888 String text = webkit_glue::WebStringToString(wtext); |
885 RefPtr<DocumentFragment> fragment = createFragmentFromText( | 889 RefPtr<DocumentFragment> fragment = createFragmentFromText( |
886 frame()->selection()->toNormalizedRange().get(), text); | 890 frame()->selection()->toNormalizedRange().get(), text); |
887 WebCore::applyCommand(WebCore::ReplaceSelectionCommand::create( | 891 WebCore::applyCommand(WebCore::ReplaceSelectionCommand::create( |
888 frame()->document(), fragment.get(), false, true, true)); | 892 frame()->document(), fragment.get(), false, true, true)); |
889 } | 893 } |
890 | 894 |
891 void WebFrameImpl::insertText(const WebString& text) { | 895 void WebFrameImpl::insertText(const WebString& text) { |
892 frame()->editor()->insertText(webkit_glue::WebStringToString(text), NULL); | 896 frame()->editor()->insertText(webkit_glue::WebStringToString(text), NULL); |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1870 | 1874 |
1871 SecurityOrigin* security_origin = frame_->document()->securityOrigin(); | 1875 SecurityOrigin* security_origin = frame_->document()->securityOrigin(); |
1872 | 1876 |
1873 if (!frame_->redirectScheduler()->locationChangePending()) { | 1877 if (!frame_->redirectScheduler()->locationChangePending()) { |
1874 frame_->loader()->stopAllLoaders(); | 1878 frame_->loader()->stopAllLoaders(); |
1875 frame_->loader()->begin(frame_->loader()->url(), true, security_origin); | 1879 frame_->loader()->begin(frame_->loader()->url(), true, security_origin); |
1876 frame_->loader()->write(script_result); | 1880 frame_->loader()->write(script_result); |
1877 frame_->loader()->end(); | 1881 frame_->loader()->end(); |
1878 } | 1882 } |
1879 } | 1883 } |
OLD | NEW |