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

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

Issue 2938123002: Revert of [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/test/data/android/input/input_forms.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 #include "ppapi/features/features.h" 168 #include "ppapi/features/features.h"
169 #include "services/service_manager/public/cpp/connector.h" 169 #include "services/service_manager/public/cpp/connector.h"
170 #include "services/service_manager/public/cpp/interface_provider.h" 170 #include "services/service_manager/public/cpp/interface_provider.h"
171 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 171 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
172 #include "storage/common/data_element.h" 172 #include "storage/common/data_element.h"
173 #include "third_party/WebKit/public/platform/FilePathConversion.h" 173 #include "third_party/WebKit/public/platform/FilePathConversion.h"
174 #include "third_party/WebKit/public/platform/InterfaceProvider.h" 174 #include "third_party/WebKit/public/platform/InterfaceProvider.h"
175 #include "third_party/WebKit/public/platform/URLConversion.h" 175 #include "third_party/WebKit/public/platform/URLConversion.h"
176 #include "third_party/WebKit/public/platform/WebCachePolicy.h" 176 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
177 #include "third_party/WebKit/public/platform/WebData.h" 177 #include "third_party/WebKit/public/platform/WebData.h"
178 #include "third_party/WebKit/public/platform/WebFocusType.h"
179 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 178 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
180 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 179 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
181 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 180 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
182 #include "third_party/WebKit/public/platform/WebPoint.h" 181 #include "third_party/WebKit/public/platform/WebPoint.h"
183 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 182 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
184 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 183 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
185 #include "third_party/WebKit/public/platform/WebString.h" 184 #include "third_party/WebKit/public/platform/WebString.h"
186 #include "third_party/WebKit/public/platform/WebURL.h" 185 #include "third_party/WebKit/public/platform/WebURL.h"
187 #include "third_party/WebKit/public/platform/WebURLError.h" 186 #include "third_party/WebKit/public/platform/WebURLError.h"
188 #include "third_party/WebKit/public/platform/WebURLResponse.h" 187 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 OnSetAccessibilityMode) 1639 OnSetAccessibilityMode)
1641 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, 1640 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree,
1642 OnSnapshotAccessibilityTree) 1641 OnSnapshotAccessibilityTree)
1643 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) 1642 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData)
1644 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 1643 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
1645 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) 1644 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation)
1646 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 1645 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
1647 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 1646 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
1648 OnSetFrameOwnerProperties) 1647 OnSetFrameOwnerProperties)
1649 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) 1648 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
1650 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
1651 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 1649 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
1652 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, 1650 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
1653 OnTextTrackSettingsChanged) 1651 OnTextTrackSettingsChanged)
1654 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) 1652 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent)
1655 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) 1653 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation)
1656 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, 1654 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation,
1657 OnReportContentSecurityPolicyViolation) 1655 OnReportContentSecurityPolicyViolation)
1658 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, 1656 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks,
1659 OnGetSavableResourceLinks) 1657 OnGetSavableResourceLinks)
1660 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, 1658 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 int32_t source_routing_id) { 2266 int32_t source_routing_id) {
2269 RenderFrameProxy* source_frame = 2267 RenderFrameProxy* source_frame =
2270 RenderFrameProxy::FromRoutingID(source_routing_id); 2268 RenderFrameProxy::FromRoutingID(source_routing_id);
2271 if (!source_frame) 2269 if (!source_frame)
2272 return; 2270 return;
2273 2271
2274 render_view_->webview()->AdvanceFocusAcrossFrames( 2272 render_view_->webview()->AdvanceFocusAcrossFrames(
2275 type, source_frame->web_frame(), frame_); 2273 type, source_frame->web_frame(), frame_);
2276 } 2274 }
2277 2275
2278 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
2279 if (render_view_->webview()->FocusedFrame() != frame_)
2280 return;
2281 frame_->AdvanceFocusInForm(focus_type);
2282 }
2283
2284 void RenderFrameImpl::OnSetFocusedFrame() { 2276 void RenderFrameImpl::OnSetFocusedFrame() {
2285 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur 2277 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
2286 // events are properly dispatched on any currently focused elements. 2278 // events are properly dispatched on any currently focused elements.
2287 render_view_->webview()->FocusDocumentView(frame_); 2279 render_view_->webview()->FocusDocumentView(frame_);
2288 } 2280 }
2289 2281
2290 void RenderFrameImpl::OnTextTrackSettingsChanged( 2282 void RenderFrameImpl::OnTextTrackSettingsChanged(
2291 const FrameMsg_TextTrackSettings_Params& params) { 2283 const FrameMsg_TextTrackSettings_Params& params) {
2292 DCHECK(!frame_->Parent()); 2284 DCHECK(!frame_->Parent());
2293 if (!render_view_->webview()) 2285 if (!render_view_->webview())
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after
6855 policy(info.default_policy), 6847 policy(info.default_policy),
6856 replaces_current_history_item(info.replaces_current_history_item), 6848 replaces_current_history_item(info.replaces_current_history_item),
6857 history_navigation_in_new_child_frame( 6849 history_navigation_in_new_child_frame(
6858 info.is_history_navigation_in_new_child_frame), 6850 info.is_history_navigation_in_new_child_frame),
6859 client_redirect(info.is_client_redirect), 6851 client_redirect(info.is_client_redirect),
6860 cache_disabled(info.is_cache_disabled), 6852 cache_disabled(info.is_cache_disabled),
6861 form(info.form), 6853 form(info.form),
6862 source_location(info.source_location) {} 6854 source_location(info.source_location) {}
6863 6855
6864 } // namespace content 6856 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | content/test/data/android/input/input_forms.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698