OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 #include "ppapi/features/features.h" | 169 #include "ppapi/features/features.h" |
170 #include "services/service_manager/public/cpp/connector.h" | 170 #include "services/service_manager/public/cpp/connector.h" |
171 #include "services/service_manager/public/cpp/interface_provider.h" | 171 #include "services/service_manager/public/cpp/interface_provider.h" |
172 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 172 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
173 #include "storage/common/data_element.h" | 173 #include "storage/common/data_element.h" |
174 #include "third_party/WebKit/public/platform/FilePathConversion.h" | 174 #include "third_party/WebKit/public/platform/FilePathConversion.h" |
175 #include "third_party/WebKit/public/platform/InterfaceProvider.h" | 175 #include "third_party/WebKit/public/platform/InterfaceProvider.h" |
176 #include "third_party/WebKit/public/platform/URLConversion.h" | 176 #include "third_party/WebKit/public/platform/URLConversion.h" |
177 #include "third_party/WebKit/public/platform/WebCachePolicy.h" | 177 #include "third_party/WebKit/public/platform/WebCachePolicy.h" |
178 #include "third_party/WebKit/public/platform/WebData.h" | 178 #include "third_party/WebKit/public/platform/WebData.h" |
| 179 #include "third_party/WebKit/public/platform/WebFocusType.h" |
179 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" | 180 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
180 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" | 181 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" |
181 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" | 182 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" |
182 #include "third_party/WebKit/public/platform/WebPoint.h" | 183 #include "third_party/WebKit/public/platform/WebPoint.h" |
183 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 184 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
184 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" | 185 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" |
185 #include "third_party/WebKit/public/platform/WebString.h" | 186 #include "third_party/WebKit/public/platform/WebString.h" |
186 #include "third_party/WebKit/public/platform/WebURL.h" | 187 #include "third_party/WebKit/public/platform/WebURL.h" |
187 #include "third_party/WebKit/public/platform/WebURLError.h" | 188 #include "third_party/WebKit/public/platform/WebURLError.h" |
188 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 189 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 OnSetAccessibilityMode) | 1634 OnSetAccessibilityMode) |
1634 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, | 1635 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, |
1635 OnSnapshotAccessibilityTree) | 1636 OnSnapshotAccessibilityTree) |
1636 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) | 1637 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) |
1637 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) | 1638 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) |
1638 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) | 1639 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) |
1639 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) | 1640 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) |
1640 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, | 1641 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, |
1641 OnSetFrameOwnerProperties) | 1642 OnSetFrameOwnerProperties) |
1642 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) | 1643 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) |
| 1644 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm) |
1643 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) | 1645 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) |
1644 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, | 1646 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, |
1645 OnTextTrackSettingsChanged) | 1647 OnTextTrackSettingsChanged) |
1646 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) | 1648 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) |
1647 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) | 1649 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) |
1648 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, | 1650 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, |
1649 OnReportContentSecurityPolicyViolation) | 1651 OnReportContentSecurityPolicyViolation) |
1650 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, | 1652 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, |
1651 OnGetSavableResourceLinks) | 1653 OnGetSavableResourceLinks) |
1652 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, | 1654 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 if (!source_frame) { | 2265 if (!source_frame) { |
2264 render_view_->webview()->SetInitialFocus(type == | 2266 render_view_->webview()->SetInitialFocus(type == |
2265 blink::kWebFocusTypeBackward); | 2267 blink::kWebFocusTypeBackward); |
2266 return; | 2268 return; |
2267 } | 2269 } |
2268 | 2270 |
2269 render_view_->webview()->AdvanceFocusAcrossFrames( | 2271 render_view_->webview()->AdvanceFocusAcrossFrames( |
2270 type, source_frame->web_frame(), frame_); | 2272 type, source_frame->web_frame(), frame_); |
2271 } | 2273 } |
2272 | 2274 |
| 2275 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) { |
| 2276 if (render_view_->webview()->FocusedFrame() != frame_) |
| 2277 return; |
| 2278 frame_->AdvanceFocusInForm(focus_type); |
| 2279 } |
| 2280 |
2273 void RenderFrameImpl::OnSetFocusedFrame() { | 2281 void RenderFrameImpl::OnSetFocusedFrame() { |
2274 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur | 2282 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur |
2275 // events are properly dispatched on any currently focused elements. | 2283 // events are properly dispatched on any currently focused elements. |
2276 render_view_->webview()->FocusDocumentView(frame_); | 2284 render_view_->webview()->FocusDocumentView(frame_); |
2277 } | 2285 } |
2278 | 2286 |
2279 void RenderFrameImpl::OnTextTrackSettingsChanged( | 2287 void RenderFrameImpl::OnTextTrackSettingsChanged( |
2280 const FrameMsg_TextTrackSettings_Params& params) { | 2288 const FrameMsg_TextTrackSettings_Params& params) { |
2281 DCHECK(!frame_->Parent()); | 2289 DCHECK(!frame_->Parent()); |
2282 if (!render_view_->webview()) | 2290 if (!render_view_->webview()) |
(...skipping 4592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6875 replaces_current_history_item(info.replaces_current_history_item), | 6883 replaces_current_history_item(info.replaces_current_history_item), |
6876 history_navigation_in_new_child_frame( | 6884 history_navigation_in_new_child_frame( |
6877 info.is_history_navigation_in_new_child_frame), | 6885 info.is_history_navigation_in_new_child_frame), |
6878 client_redirect(info.is_client_redirect), | 6886 client_redirect(info.is_client_redirect), |
6879 triggering_event_info(info.triggering_event_info), | 6887 triggering_event_info(info.triggering_event_info), |
6880 cache_disabled(info.is_cache_disabled), | 6888 cache_disabled(info.is_cache_disabled), |
6881 form(info.form), | 6889 form(info.form), |
6882 source_location(info.source_location) {} | 6890 source_location(info.source_location) {} |
6883 | 6891 |
6884 } // namespace content | 6892 } // namespace content |
OLD | NEW |