OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 #include "core/editing/Editor.h" | 113 #include "core/editing/Editor.h" |
114 #include "core/editing/FindInPageCoordinates.h" | 114 #include "core/editing/FindInPageCoordinates.h" |
115 #include "core/editing/FrameSelection.h" | 115 #include "core/editing/FrameSelection.h" |
116 #include "core/editing/InputMethodController.h" | 116 #include "core/editing/InputMethodController.h" |
117 #include "core/editing/PlainTextRange.h" | 117 #include "core/editing/PlainTextRange.h" |
118 #include "core/editing/TextAffinity.h" | 118 #include "core/editing/TextAffinity.h" |
119 #include "core/editing/iterators/TextIterator.h" | 119 #include "core/editing/iterators/TextIterator.h" |
120 #include "core/editing/markers/DocumentMarkerController.h" | 120 #include "core/editing/markers/DocumentMarkerController.h" |
121 #include "core/editing/serializers/Serialization.h" | 121 #include "core/editing/serializers/Serialization.h" |
122 #include "core/editing/spellcheck/SpellChecker.h" | 122 #include "core/editing/spellcheck/SpellChecker.h" |
| 123 #include "core/exported/WebAssociatedURLLoaderImpl.h" |
123 #include "core/frame/FrameView.h" | 124 #include "core/frame/FrameView.h" |
124 #include "core/frame/LocalDOMWindow.h" | 125 #include "core/frame/LocalDOMWindow.h" |
125 #include "core/frame/PageScaleConstraintsSet.h" | 126 #include "core/frame/PageScaleConstraintsSet.h" |
126 #include "core/frame/RemoteFrame.h" | 127 #include "core/frame/RemoteFrame.h" |
127 #include "core/frame/ScreenOrientationController.h" | 128 #include "core/frame/ScreenOrientationController.h" |
128 #include "core/frame/Settings.h" | 129 #include "core/frame/Settings.h" |
129 #include "core/frame/SmartClip.h" | 130 #include "core/frame/SmartClip.h" |
130 #include "core/frame/SuspendableScriptExecutor.h" | 131 #include "core/frame/SuspendableScriptExecutor.h" |
131 #include "core/frame/UseCounter.h" | 132 #include "core/frame/UseCounter.h" |
132 #include "core/frame/VisualViewport.h" | 133 #include "core/frame/VisualViewport.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 #include "public/web/WebRange.h" | 219 #include "public/web/WebRange.h" |
219 #include "public/web/WebScriptSource.h" | 220 #include "public/web/WebScriptSource.h" |
220 #include "public/web/WebSerializedScriptValue.h" | 221 #include "public/web/WebSerializedScriptValue.h" |
221 #include "public/web/WebTreeScopeType.h" | 222 #include "public/web/WebTreeScopeType.h" |
222 #include "skia/ext/platform_canvas.h" | 223 #include "skia/ext/platform_canvas.h" |
223 #include "web/CompositionUnderlineVectorBuilder.h" | 224 #include "web/CompositionUnderlineVectorBuilder.h" |
224 #include "web/RemoteFrameOwner.h" | 225 #include "web/RemoteFrameOwner.h" |
225 #include "web/SharedWorkerRepositoryClientImpl.h" | 226 #include "web/SharedWorkerRepositoryClientImpl.h" |
226 #include "web/TextCheckerClientImpl.h" | 227 #include "web/TextCheckerClientImpl.h" |
227 #include "web/TextFinder.h" | 228 #include "web/TextFinder.h" |
228 #include "web/WebAssociatedURLLoaderImpl.h" | |
229 #include "web/WebDataSourceImpl.h" | 229 #include "web/WebDataSourceImpl.h" |
230 #include "web/WebDevToolsAgentImpl.h" | 230 #include "web/WebDevToolsAgentImpl.h" |
231 #include "web/WebFrameWidgetImpl.h" | 231 #include "web/WebFrameWidgetImpl.h" |
232 #include "web/WebPluginContainerImpl.h" | 232 #include "web/WebPluginContainerImpl.h" |
233 #include "web/WebRemoteFrameImpl.h" | 233 #include "web/WebRemoteFrameImpl.h" |
234 #include "web/WebViewImpl.h" | 234 #include "web/WebViewImpl.h" |
235 | 235 |
236 namespace blink { | 236 namespace blink { |
237 | 237 |
238 static int g_frame_count = 0; | 238 static int g_frame_count = 0; |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 ? GetFrame()->GetDocument()->OutgoingReferrer() | 958 ? GetFrame()->GetDocument()->OutgoingReferrer() |
959 : String(referrer_url.GetString()); | 959 : String(referrer_url.GetString()); |
960 request.ToMutableResourceRequest().SetHTTPReferrer( | 960 request.ToMutableResourceRequest().SetHTTPReferrer( |
961 SecurityPolicy::GenerateReferrer( | 961 SecurityPolicy::GenerateReferrer( |
962 GetFrame()->GetDocument()->GetReferrerPolicy(), request.Url(), | 962 GetFrame()->GetDocument()->GetReferrerPolicy(), request.Url(), |
963 referrer)); | 963 referrer)); |
964 } | 964 } |
965 | 965 |
966 WebAssociatedURLLoader* WebLocalFrameImpl::CreateAssociatedURLLoader( | 966 WebAssociatedURLLoader* WebLocalFrameImpl::CreateAssociatedURLLoader( |
967 const WebAssociatedURLLoaderOptions& options) { | 967 const WebAssociatedURLLoaderOptions& options) { |
968 return new WebAssociatedURLLoaderImpl(this, options); | 968 return new WebAssociatedURLLoaderImpl(GetFrame()->GetDocument(), options); |
969 } | 969 } |
970 | 970 |
971 unsigned WebLocalFrameImpl::UnloadListenerCount() const { | 971 unsigned WebLocalFrameImpl::UnloadListenerCount() const { |
972 return GetFrame()->DomWindow()->PendingUnloadEventListeners(); | 972 return GetFrame()->DomWindow()->PendingUnloadEventListeners(); |
973 } | 973 } |
974 | 974 |
975 void WebLocalFrameImpl::ReplaceSelection(const WebString& text) { | 975 void WebLocalFrameImpl::ReplaceSelection(const WebString& text) { |
976 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets | 976 // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets |
977 // needs to be audited. See http://crbug.com/590369 for more details. | 977 // needs to be audited. See http://crbug.com/590369 for more details. |
978 GetFrame()->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); | 978 GetFrame()->GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets(); |
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { | 2575 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { |
2576 return *text_checker_client_; | 2576 return *text_checker_client_; |
2577 } | 2577 } |
2578 | 2578 |
2579 void WebLocalFrameImpl::SetTextCheckClient( | 2579 void WebLocalFrameImpl::SetTextCheckClient( |
2580 WebTextCheckClient* text_check_client) { | 2580 WebTextCheckClient* text_check_client) { |
2581 text_check_client_ = text_check_client; | 2581 text_check_client_ = text_check_client; |
2582 } | 2582 } |
2583 | 2583 |
2584 } // namespace blink | 2584 } // namespace blink |
OLD | NEW |