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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 } | 126 } |
127 | 127 |
128 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should
ReplaceCurrentEntry) | 128 void RemoteFrameClientImpl::navigate(const ResourceRequest& request, bool should
ReplaceCurrentEntry) |
129 { | 129 { |
130 if (m_webFrame->client()) | 130 if (m_webFrame->client()) |
131 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe
placeCurrentEntry); | 131 m_webFrame->client()->navigate(WrappedResourceRequest(request), shouldRe
placeCurrentEntry); |
132 } | 132 } |
133 | 133 |
134 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy
clientRedirectPolicy) | 134 void RemoteFrameClientImpl::reload(FrameLoadType loadType, ClientRedirectPolicy
clientRedirectPolicy) |
135 { | 135 { |
136 ASSERT(loadType == FrameLoadTypeReload || loadType == FrameLoadTypeReloadByp
assingCache); | 136 DCHECK(isReloadLoadType(loadType)); |
137 if (m_webFrame->client()) | 137 if (m_webFrame->client()) |
138 m_webFrame->client()->reload(static_cast<WebFrameLoadType>(loadType), st
atic_cast<WebClientRedirectPolicy>(clientRedirectPolicy)); | 138 m_webFrame->client()->reload(static_cast<WebFrameLoadType>(loadType), st
atic_cast<WebClientRedirectPolicy>(clientRedirectPolicy)); |
139 } | 139 } |
140 | 140 |
141 unsigned RemoteFrameClientImpl::backForwardLength() | 141 unsigned RemoteFrameClientImpl::backForwardLength() |
142 { | 142 { |
143 // TODO(creis,japhet): This method should return the real value for the | 143 // TODO(creis,japhet): This method should return the real value for the |
144 // session history length. For now, return static value for the initial | 144 // session history length. For now, return static value for the initial |
145 // navigation and the subsequent one moving the frame out-of-process. | 145 // navigation and the subsequent one moving the frame out-of-process. |
146 // See https://crbug.com/501116. | 146 // See https://crbug.com/501116. |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 { | 196 { |
197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source
)); | 197 m_webFrame->client()->advanceFocus(type, WebLocalFrameImpl::fromFrame(source
)); |
198 } | 198 } |
199 | 199 |
200 void RemoteFrameClientImpl::visibilityChanged(bool visible) | 200 void RemoteFrameClientImpl::visibilityChanged(bool visible) |
201 { | 201 { |
202 m_webFrame->client()->visibilityChanged(visible); | 202 m_webFrame->client()->visibilityChanged(visible); |
203 } | 203 } |
204 | 204 |
205 } // namespace blink | 205 } // namespace blink |
OLD | NEW |