| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 #include "core/editing/PlainTextRange.h" | 116 #include "core/editing/PlainTextRange.h" |
| 117 #include "core/editing/TextAffinity.h" | 117 #include "core/editing/TextAffinity.h" |
| 118 #include "core/editing/iterators/TextIterator.h" | 118 #include "core/editing/iterators/TextIterator.h" |
| 119 #include "core/editing/serializers/Serialization.h" | 119 #include "core/editing/serializers/Serialization.h" |
| 120 #include "core/editing/spellcheck/SpellChecker.h" | 120 #include "core/editing/spellcheck/SpellChecker.h" |
| 121 #include "core/frame/FrameHost.h" | 121 #include "core/frame/FrameHost.h" |
| 122 #include "core/frame/FrameView.h" | 122 #include "core/frame/FrameView.h" |
| 123 #include "core/frame/LocalDOMWindow.h" | 123 #include "core/frame/LocalDOMWindow.h" |
| 124 #include "core/frame/PageScaleConstraintsSet.h" | 124 #include "core/frame/PageScaleConstraintsSet.h" |
| 125 #include "core/frame/RemoteFrame.h" | 125 #include "core/frame/RemoteFrame.h" |
| 126 #include "core/frame/ScreenOrientationController.h" |
| 126 #include "core/frame/Settings.h" | 127 #include "core/frame/Settings.h" |
| 127 #include "core/frame/SmartClip.h" | 128 #include "core/frame/SmartClip.h" |
| 128 #include "core/frame/UseCounter.h" | 129 #include "core/frame/UseCounter.h" |
| 129 #include "core/frame/VisualViewport.h" | 130 #include "core/frame/VisualViewport.h" |
| 130 #include "core/html/HTMLAnchorElement.h" | 131 #include "core/html/HTMLAnchorElement.h" |
| 131 #include "core/html/HTMLCollection.h" | 132 #include "core/html/HTMLCollection.h" |
| 132 #include "core/html/HTMLFormElement.h" | 133 #include "core/html/HTMLFormElement.h" |
| 133 #include "core/html/HTMLFrameElementBase.h" | 134 #include "core/html/HTMLFrameElementBase.h" |
| 134 #include "core/html/HTMLFrameOwnerElement.h" | 135 #include "core/html/HTMLFrameOwnerElement.h" |
| 135 #include "core/html/HTMLHeadElement.h" | 136 #include "core/html/HTMLHeadElement.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 153 #include "core/page/FrameTree.h" | 154 #include "core/page/FrameTree.h" |
| 154 #include "core/page/Page.h" | 155 #include "core/page/Page.h" |
| 155 #include "core/page/PrintContext.h" | 156 #include "core/page/PrintContext.h" |
| 156 #include "core/paint/PaintLayer.h" | 157 #include "core/paint/PaintLayer.h" |
| 157 #include "core/paint/TransformRecorder.h" | 158 #include "core/paint/TransformRecorder.h" |
| 158 #include "core/style/StyleInheritedData.h" | 159 #include "core/style/StyleInheritedData.h" |
| 159 #include "core/timing/DOMWindowPerformance.h" | 160 #include "core/timing/DOMWindowPerformance.h" |
| 160 #include "core/timing/Performance.h" | 161 #include "core/timing/Performance.h" |
| 161 #include "modules/app_banner/AppBannerController.h" | 162 #include "modules/app_banner/AppBannerController.h" |
| 162 #include "modules/installation/InstallationServiceImpl.h" | 163 #include "modules/installation/InstallationServiceImpl.h" |
| 163 #include "modules/screen_orientation/ScreenOrientationControllerImpl.h" | |
| 164 #include "platform/ScriptForbiddenScope.h" | 164 #include "platform/ScriptForbiddenScope.h" |
| 165 #include "platform/UserGestureIndicator.h" | 165 #include "platform/UserGestureIndicator.h" |
| 166 #include "platform/WebFrameScheduler.h" | 166 #include "platform/WebFrameScheduler.h" |
| 167 #include "platform/clipboard/ClipboardUtilities.h" | 167 #include "platform/clipboard/ClipboardUtilities.h" |
| 168 #include "platform/fonts/FontCache.h" | 168 #include "platform/fonts/FontCache.h" |
| 169 #include "platform/graphics/GraphicsContext.h" | 169 #include "platform/graphics/GraphicsContext.h" |
| 170 #include "platform/graphics/GraphicsLayerClient.h" | 170 #include "platform/graphics/GraphicsLayerClient.h" |
| 171 #include "platform/graphics/paint/ClipRecorder.h" | 171 #include "platform/graphics/paint/ClipRecorder.h" |
| 172 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" | 172 #include "platform/graphics/paint/DisplayItemCacheSkipper.h" |
| 173 #include "platform/graphics/paint/DrawingRecorder.h" | 173 #include "platform/graphics/paint/DrawingRecorder.h" |
| (...skipping 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 MixedContentChecker::mixedContentFound( | 2162 MixedContentChecker::mixedContentFound( |
| 2163 frame(), mainResourceUrl, mixedContentUrl, requestContext, wasAllowed, | 2163 frame(), mainResourceUrl, mixedContentUrl, requestContext, wasAllowed, |
| 2164 hadRedirect, std::move(source)); | 2164 hadRedirect, std::move(source)); |
| 2165 } | 2165 } |
| 2166 | 2166 |
| 2167 void WebLocalFrameImpl::sendOrientationChangeEvent() { | 2167 void WebLocalFrameImpl::sendOrientationChangeEvent() { |
| 2168 if (!frame()) | 2168 if (!frame()) |
| 2169 return; | 2169 return; |
| 2170 | 2170 |
| 2171 // Screen Orientation API | 2171 // Screen Orientation API |
| 2172 if (ScreenOrientationControllerImpl::from(*frame())) | 2172 if (ScreenOrientationController::from(*frame())) |
| 2173 ScreenOrientationControllerImpl::from(*frame())->notifyOrientationChanged(); | 2173 ScreenOrientationController::from(*frame())->notifyOrientationChanged(); |
| 2174 | 2174 |
| 2175 // Legacy window.orientation API | 2175 // Legacy window.orientation API |
| 2176 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) | 2176 if (RuntimeEnabledFeatures::orientationEventEnabled() && frame()->domWindow()) |
| 2177 frame()->domWindow()->sendOrientationChangeEvent(); | 2177 frame()->domWindow()->sendOrientationChangeEvent(); |
| 2178 } | 2178 } |
| 2179 | 2179 |
| 2180 void WebLocalFrameImpl::didCallAddSearchProvider() { | 2180 void WebLocalFrameImpl::didCallAddSearchProvider() { |
| 2181 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); | 2181 UseCounter::count(frame(), UseCounter::ExternalAddSearchProvider); |
| 2182 } | 2182 } |
| 2183 | 2183 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2505 createMarkup(startPosition, endPosition, AnnotateForInterchange, | 2505 createMarkup(startPosition, endPosition, AnnotateForInterchange, |
| 2506 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2506 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2507 } else { | 2507 } else { |
| 2508 clipHtml = | 2508 clipHtml = |
| 2509 createMarkup(endPosition, startPosition, AnnotateForInterchange, | 2509 createMarkup(endPosition, startPosition, AnnotateForInterchange, |
| 2510 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); | 2510 ConvertBlocksToInlines::NotConvert, ResolveNonLocalURLs); |
| 2511 } | 2511 } |
| 2512 } | 2512 } |
| 2513 | 2513 |
| 2514 } // namespace blink | 2514 } // namespace blink |
| OLD | NEW |