Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Preserved the DCHECK and fixed browser_tests failure Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 #include "ppapi/features/features.h" 166 #include "ppapi/features/features.h"
167 #include "services/service_manager/public/cpp/connector.h" 167 #include "services/service_manager/public/cpp/connector.h"
168 #include "services/service_manager/public/cpp/interface_provider.h" 168 #include "services/service_manager/public/cpp/interface_provider.h"
169 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 169 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
170 #include "storage/common/data_element.h" 170 #include "storage/common/data_element.h"
171 #include "third_party/WebKit/public/platform/FilePathConversion.h" 171 #include "third_party/WebKit/public/platform/FilePathConversion.h"
172 #include "third_party/WebKit/public/platform/InterfaceProvider.h" 172 #include "third_party/WebKit/public/platform/InterfaceProvider.h"
173 #include "third_party/WebKit/public/platform/URLConversion.h" 173 #include "third_party/WebKit/public/platform/URLConversion.h"
174 #include "third_party/WebKit/public/platform/WebCachePolicy.h" 174 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
175 #include "third_party/WebKit/public/platform/WebData.h" 175 #include "third_party/WebKit/public/platform/WebData.h"
176 #include "third_party/WebKit/public/platform/WebFocusType.h"
176 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 177 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
177 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 178 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
178 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 179 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
179 #include "third_party/WebKit/public/platform/WebPoint.h" 180 #include "third_party/WebKit/public/platform/WebPoint.h"
180 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 181 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
181 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 182 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
182 #include "third_party/WebKit/public/platform/WebString.h" 183 #include "third_party/WebKit/public/platform/WebString.h"
183 #include "third_party/WebKit/public/platform/WebURL.h" 184 #include "third_party/WebKit/public/platform/WebURL.h"
184 #include "third_party/WebKit/public/platform/WebURLError.h" 185 #include "third_party/WebKit/public/platform/WebURLError.h"
185 #include "third_party/WebKit/public/platform/WebURLResponse.h" 186 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 OnSetAccessibilityMode) 1638 OnSetAccessibilityMode)
1638 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, 1639 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree,
1639 OnSnapshotAccessibilityTree) 1640 OnSnapshotAccessibilityTree)
1640 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) 1641 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData)
1641 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 1642 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
1642 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) 1643 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation)
1643 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 1644 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
1644 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 1645 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
1645 OnSetFrameOwnerProperties) 1646 OnSetFrameOwnerProperties)
1646 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) 1647 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
1648 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
1647 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 1649 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
1648 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, 1650 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
1649 OnTextTrackSettingsChanged) 1651 OnTextTrackSettingsChanged)
1650 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) 1652 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent)
1651 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) 1653 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation)
1652 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, 1654 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation,
1653 OnReportContentSecurityPolicyViolation) 1655 OnReportContentSecurityPolicyViolation)
1654 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, 1656 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks,
1655 OnGetSavableResourceLinks) 1657 OnGetSavableResourceLinks)
1656 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, 1658 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 int32_t source_routing_id) { 2266 int32_t source_routing_id) {
2265 RenderFrameProxy* source_frame = 2267 RenderFrameProxy* source_frame =
2266 RenderFrameProxy::FromRoutingID(source_routing_id); 2268 RenderFrameProxy::FromRoutingID(source_routing_id);
2267 if (!source_frame) 2269 if (!source_frame)
2268 return; 2270 return;
2269 2271
2270 render_view_->webview()->AdvanceFocusAcrossFrames( 2272 render_view_->webview()->AdvanceFocusAcrossFrames(
2271 type, source_frame->web_frame(), frame_); 2273 type, source_frame->web_frame(), frame_);
2272 } 2274 }
2273 2275
2276 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
2277 if (render_view_->webview()->FocusedFrame() != frame_)
2278 return;
2279 frame_->AdvanceFocusInForm(focus_type);
2280 }
2281
2274 void RenderFrameImpl::OnSetFocusedFrame() { 2282 void RenderFrameImpl::OnSetFocusedFrame() {
2275 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur 2283 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
2276 // events are properly dispatched on any currently focused elements. 2284 // events are properly dispatched on any currently focused elements.
2277 render_view_->webview()->FocusDocumentView(frame_); 2285 render_view_->webview()->FocusDocumentView(frame_);
2278 } 2286 }
2279 2287
2280 void RenderFrameImpl::OnTextTrackSettingsChanged( 2288 void RenderFrameImpl::OnTextTrackSettingsChanged(
2281 const FrameMsg_TextTrackSettings_Params& params) { 2289 const FrameMsg_TextTrackSettings_Params& params) {
2282 DCHECK(!frame_->Parent()); 2290 DCHECK(!frame_->Parent());
2283 if (!render_view_->webview()) 2291 if (!render_view_->webview())
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after
6845 policy(info.default_policy), 6853 policy(info.default_policy),
6846 replaces_current_history_item(info.replaces_current_history_item), 6854 replaces_current_history_item(info.replaces_current_history_item),
6847 history_navigation_in_new_child_frame( 6855 history_navigation_in_new_child_frame(
6848 info.is_history_navigation_in_new_child_frame), 6856 info.is_history_navigation_in_new_child_frame),
6849 client_redirect(info.is_client_redirect), 6857 client_redirect(info.is_client_redirect),
6850 cache_disabled(info.is_cache_disabled), 6858 cache_disabled(info.is_cache_disabled),
6851 form(info.form), 6859 form(info.form),
6852 source_location(info.source_location) {} 6860 source_location(info.source_location) {}
6853 6861
6854 } // namespace content 6862 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698