| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "web/RemoteFrameClientImpl.h" | 5 #include "web/RemoteFrameClientImpl.h" |
| 6 | 6 |
| 7 #include "core/events/KeyboardEvent.h" | 7 #include "core/events/KeyboardEvent.h" |
| 8 #include "core/events/MouseEvent.h" | 8 #include "core/events/MouseEvent.h" |
| 9 #include "core/events/WheelEvent.h" | 9 #include "core/events/WheelEvent.h" |
| 10 #include "core/frame/RemoteFrame.h" | 10 #include "core/frame/RemoteFrame.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 133 } |
| 134 | 134 |
| 135 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should
ReplaceCurrentEntry) | 135 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should
ReplaceCurrentEntry) |
| 136 { | 136 { |
| 137 if (m_webFrame->client()) | 137 if (m_webFrame->client()) |
| 138 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe
placeCurrentEntry); | 138 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe
placeCurrentEntry); |
| 139 } | 139 } |
| 140 | 140 |
| 141 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy
clientRedirectPolicy) | 141 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy
clientRedirectPolicy) |
| 142 { | 142 { |
| 143 ASSERT(loadType == FrameLoadTypeReload || loadType == FrameLoadTypeReloadByp
assingCache); |
| 143 if (m_webFrame->client()) | 144 if (m_webFrame->client()) |
| 144 m_webFrame->client()->reload(loadType == FrameLoadTypeReloadBypassingCac
he, clientRedirectPolicy == ClientRedirect); | 145 m_webFrame->client()->reload(static_cast<WebFrameLoadType>(loadType), st
atic_cast<WebClientRedirectPolicy>(clientRedirectPolicy)); |
| 145 } | 146 } |
| 146 | 147 |
| 147 unsigned RemoteFrameClientImpl::backForwardLength() | 148 unsigned RemoteFrameClientImpl::backForwardLength() |
| 148 { | 149 { |
| 149 // TODO(creis,japhet): This method should return the real value for the | 150 // TODO(creis,japhet): This method should return the real value for the |
| 150 // session history length. For now, return static value for the initial | 151 // session history length. For now, return static value for the initial |
| 151 // navigation and the subsequent one moving the frame out-of-process. | 152 // navigation and the subsequent one moving the frame out-of-process. |
| 152 // See https://crbug.com/501116. | 153 // See https://crbug.com/501116. |
| 153 return 2; | 154 return 2; |
| 154 } | 155 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 { | 198 { |
| 198 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source
)); | 199 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source
)); |
| 199 } | 200 } |
| 200 | 201 |
| 201 void RemoteFrameClientImpl::visibilityChanged(bool visible) | 202 void RemoteFrameClientImpl::visibilityChanged(bool visible) |
| 202 { | 203 { |
| 203 m_webFrame->client()->visibilityChanged(visible); | 204 m_webFrame->client()->visibilityChanged(visible); |
| 204 } | 205 } |
| 205 | 206 |
| 206 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |