| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "web/WebFrameWidgetImpl.h" | 31 #include "web/WebFrameWidgetImpl.h" |
| 32 | 32 |
| 33 #include <memory> |
| 33 #include "core/dom/DocumentUserGestureToken.h" | 34 #include "core/dom/DocumentUserGestureToken.h" |
| 34 #include "core/editing/EditingUtilities.h" | 35 #include "core/editing/EditingUtilities.h" |
| 35 #include "core/editing/Editor.h" | 36 #include "core/editing/Editor.h" |
| 36 #include "core/editing/FrameSelection.h" | 37 #include "core/editing/FrameSelection.h" |
| 37 #include "core/editing/InputMethodController.h" | 38 #include "core/editing/InputMethodController.h" |
| 38 #include "core/editing/PlainTextRange.h" | 39 #include "core/editing/PlainTextRange.h" |
| 39 #include "core/frame/FrameHost.h" | 40 #include "core/frame/FrameHost.h" |
| 40 #include "core/frame/FrameView.h" | 41 #include "core/frame/FrameView.h" |
| 41 #include "core/frame/RemoteFrame.h" | 42 #include "core/frame/RemoteFrame.h" |
| 42 #include "core/frame/Settings.h" | 43 #include "core/frame/Settings.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 67 #include "web/PageOverlay.h" | 68 #include "web/PageOverlay.h" |
| 68 #include "web/WebDevToolsAgentImpl.h" | 69 #include "web/WebDevToolsAgentImpl.h" |
| 69 #include "web/WebInputEventConversion.h" | 70 #include "web/WebInputEventConversion.h" |
| 70 #include "web/WebInputMethodControllerImpl.h" | 71 #include "web/WebInputMethodControllerImpl.h" |
| 71 #include "web/WebLocalFrameImpl.h" | 72 #include "web/WebLocalFrameImpl.h" |
| 72 #include "web/WebPluginContainerImpl.h" | 73 #include "web/WebPluginContainerImpl.h" |
| 73 #include "web/WebRemoteFrameImpl.h" | 74 #include "web/WebRemoteFrameImpl.h" |
| 74 #include "web/WebViewFrameWidget.h" | 75 #include "web/WebViewFrameWidget.h" |
| 75 #include "wtf/AutoReset.h" | 76 #include "wtf/AutoReset.h" |
| 76 #include "wtf/PtrUtil.h" | 77 #include "wtf/PtrUtil.h" |
| 77 #include <memory> | |
| 78 | 78 |
| 79 namespace blink { | 79 namespace blink { |
| 80 | 80 |
| 81 // WebFrameWidget ------------------------------------------------------------ | 81 // WebFrameWidget ------------------------------------------------------------ |
| 82 | 82 |
| 83 WebFrameWidget* WebFrameWidget::create(WebWidgetClient* client, | 83 WebFrameWidget* WebFrameWidget::create(WebWidgetClient* client, |
| 84 WebLocalFrame* localRoot) { | 84 WebLocalFrame* localRoot) { |
| 85 // Pass the WebFrameWidget's self-reference to the caller. | 85 // Pass the WebFrameWidget's self-reference to the caller. |
| 86 return WebFrameWidgetImpl::create(client, localRoot); | 86 return WebFrameWidgetImpl::create(client, localRoot); |
| 87 } | 87 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 210 |
| 211 FrameView* view = m_localRoot->frameView(); | 211 FrameView* view = m_localRoot->frameView(); |
| 212 if (!view) | 212 if (!view) |
| 213 return; | 213 return; |
| 214 | 214 |
| 215 WebSize layoutSize = m_size; | 215 WebSize layoutSize = m_size; |
| 216 | 216 |
| 217 view->setLayoutSize(layoutSize); | 217 view->setLayoutSize(layoutSize); |
| 218 } | 218 } |
| 219 | 219 |
| 220 | |
| 221 void WebFrameWidgetImpl::didEnterFullscreen() { | 220 void WebFrameWidgetImpl::didEnterFullscreen() { |
| 222 view()->didEnterFullscreen(); | 221 view()->didEnterFullscreen(); |
| 223 } | 222 } |
| 224 | 223 |
| 225 void WebFrameWidgetImpl::didExitFullscreen() { | 224 void WebFrameWidgetImpl::didExitFullscreen() { |
| 226 view()->didExitFullscreen(); | 225 view()->didExitFullscreen(); |
| 227 } | 226 } |
| 228 | 227 |
| 229 void WebFrameWidgetImpl::beginFrame(double lastFrameTimeMonotonic) { | 228 void WebFrameWidgetImpl::beginFrame(double lastFrameTimeMonotonic) { |
| 230 TRACE_EVENT1("blink", "WebFrameWidgetImpl::beginFrame", "frameTime", | 229 TRACE_EVENT1("blink", "WebFrameWidgetImpl::beginFrame", "frameTime", |
| (...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 return nullptr; | 1127 return nullptr; |
| 1129 } | 1128 } |
| 1130 | 1129 |
| 1131 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { | 1130 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { |
| 1132 if (!m_imeAcceptEvents) | 1131 if (!m_imeAcceptEvents) |
| 1133 return nullptr; | 1132 return nullptr; |
| 1134 return focusedLocalFrameInWidget(); | 1133 return focusedLocalFrameInWidget(); |
| 1135 } | 1134 } |
| 1136 | 1135 |
| 1137 } // namespace blink | 1136 } // namespace blink |
| OLD | NEW |