| 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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 frame()->loader().client()->dispatchWillSendRequest( | 934 frame()->loader().client()->dispatchWillSendRequest( |
| 935 request.toMutableResourceRequest()); | 935 request.toMutableResourceRequest()); |
| 936 } | 936 } |
| 937 | 937 |
| 938 WebAssociatedURLLoader* WebLocalFrameImpl::createAssociatedURLLoader( | 938 WebAssociatedURLLoader* WebLocalFrameImpl::createAssociatedURLLoader( |
| 939 const WebAssociatedURLLoaderOptions& options) { | 939 const WebAssociatedURLLoaderOptions& options) { |
| 940 return new WebAssociatedURLLoaderImpl(this, options); | 940 return new WebAssociatedURLLoaderImpl(this, options); |
| 941 } | 941 } |
| 942 | 942 |
| 943 unsigned WebLocalFrameImpl::unloadListenerCount() const { | 943 unsigned WebLocalFrameImpl::unloadListenerCount() const { |
| 944 return frame()->localDOMWindow()->pendingUnloadEventListeners(); | 944 return frame()->domWindow()->pendingUnloadEventListeners(); |
| 945 } | 945 } |
| 946 | 946 |
| 947 void WebLocalFrameImpl::replaceSelection(const WebString& text) { | 947 void WebLocalFrameImpl::replaceSelection(const WebString& text) { |
| 948 // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets | 948 // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |
| 949 // needs to be audited. See http://crbug.com/590369 for more details. | 949 // needs to be audited. See http://crbug.com/590369 for more details. |
| 950 frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); | 950 frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
| 951 | 951 |
| 952 bool selectReplacement = | 952 bool selectReplacement = |
| 953 frame()->editor().behavior().shouldSelectReplacement(); | 953 frame()->editor().behavior().shouldSelectReplacement(); |
| 954 bool smartReplace = true; | 954 bool smartReplace = true; |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2055 void WebLocalFrameImpl::sendOrientationChangeEvent() { | 2055 void WebLocalFrameImpl::sendOrientationChangeEvent() { |
| 2056 if (!frame()) | 2056 if (!frame()) |
| 2057 return; | 2057 return; |
| 2058 | 2058 |
| 2059 // Screen Orientation API | 2059 // Screen Orientation API |
| 2060 if (ScreenOrientationControllerImpl::from(*frame())) | 2060 if (ScreenOrientationControllerImpl::from(*frame())) |
| 2061 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); | 2061 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); |
| 2062 | 2062 |
| 2063 // Legacy window.orientation API | 2063 // Legacy window.orientation API |
| 2064 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) | 2064 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) |
| 2065 frame()->localDOMWindow()->sendOrientationChangeEvent(); | 2065 frame()->domWindow()->sendOrientationChangeEvent(); |
| 2066 } | 2066 } |
| 2067 | 2067 |
| 2068 void WebLocalFrameImpl::didCallAddSearchProvider() { | 2068 void WebLocalFrameImpl::didCallAddSearchProvider() { |
| 2069 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); | 2069 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); |
| 2070 } | 2070 } |
| 2071 | 2071 |
| 2072 void WebLocalFrameImpl::didCallIsSearchProviderInstalled() { | 2072 void WebLocalFrameImpl::didCallIsSearchProviderInstalled() { |
| 2073 UseCounter::count(frame(), UseCounter::ExternalIsSearchProviderInstalled); | 2073 UseCounter::count(frame(), UseCounter::ExternalIsSearchProviderInstalled); |
| 2074 } | 2074 } |
| 2075 | 2075 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2172 } | 2172 } |
| 2173 | 2173 |
| 2174 void WebLocalFrameImpl::increaseMatchCount(int count, int identifier) { | 2174 void WebLocalFrameImpl::increaseMatchCount(int count, int identifier) { |
| 2175 ensureTextFinder().increaseMatchCount(identifier, count); | 2175 ensureTextFinder().increaseMatchCount(identifier, count); |
| 2176 } | 2176 } |
| 2177 | 2177 |
| 2178 void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck( | 2178 void WebLocalFrameImpl::dispatchMessageEventWithOriginCheck( |
| 2179 const WebSecurityOrigin& intendedTargetOrigin, | 2179 const WebSecurityOrigin& intendedTargetOrigin, |
| 2180 const WebDOMEvent& event) { | 2180 const WebDOMEvent& event) { |
| 2181 DCHECK(!event.isNull()); | 2181 DCHECK(!event.isNull()); |
| 2182 frame()->localDOMWindow()->dispatchMessageEventWithOriginCheck( | 2182 frame()->domWindow()->dispatchMessageEventWithOriginCheck( |
| 2183 intendedTargetOrigin.get(), event, | 2183 intendedTargetOrigin.get(), event, |
| 2184 SourceLocation::create(String(), 0, 0, nullptr)); | 2184 SourceLocation::create(String(), 0, 0, nullptr)); |
| 2185 } | 2185 } |
| 2186 | 2186 |
| 2187 int WebLocalFrameImpl::findMatchMarkersVersion() const { | 2187 int WebLocalFrameImpl::findMatchMarkersVersion() const { |
| 2188 if (m_textFinder) | 2188 if (m_textFinder) |
| 2189 return m_textFinder->findMatchMarkersVersion(); | 2189 return m_textFinder->findMatchMarkersVersion(); |
| 2190 return 0; | 2190 return 0; |
| 2191 } | 2191 } |
| 2192 | 2192 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2357 ->frameScheduler() | 2357 ->frameScheduler() |
| 2358 ->unthrottledTaskRunner() | 2358 ->unthrottledTaskRunner() |
| 2359 ->toSingleThreadTaskRunner(); | 2359 ->toSingleThreadTaskRunner(); |
| 2360 } | 2360 } |
| 2361 | 2361 |
| 2362 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2362 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
| 2363 return m_inputMethodController.get(); | 2363 return m_inputMethodController.get(); |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 } // namespace blink | 2366 } // namespace blink |
| OLD | NEW |