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

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

Issue 2955283002: Revert of Relanding [Android] Adding Smart GO/NEXT feature in Chrome
Patch Set: Created 3 years, 5 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 <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
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"
180 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 179 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
181 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 180 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
182 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 181 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
183 #include "third_party/WebKit/public/platform/WebPoint.h" 182 #include "third_party/WebKit/public/platform/WebPoint.h"
184 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 183 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
185 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 184 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
186 #include "third_party/WebKit/public/platform/WebString.h" 185 #include "third_party/WebKit/public/platform/WebString.h"
187 #include "third_party/WebKit/public/platform/WebURL.h" 186 #include "third_party/WebKit/public/platform/WebURL.h"
188 #include "third_party/WebKit/public/platform/WebURLError.h" 187 #include "third_party/WebKit/public/platform/WebURLError.h"
189 #include "third_party/WebKit/public/platform/WebURLResponse.h" 188 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 OnSetAccessibilityMode) 1633 OnSetAccessibilityMode)
1635 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, 1634 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree,
1636 OnSnapshotAccessibilityTree) 1635 OnSnapshotAccessibilityTree)
1637 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) 1636 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData)
1638 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 1637 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
1639 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) 1638 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation)
1640 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 1639 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
1641 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 1640 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
1642 OnSetFrameOwnerProperties) 1641 OnSetFrameOwnerProperties)
1643 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) 1642 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
1644 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
1645 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 1643 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
1646 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, 1644 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
1647 OnTextTrackSettingsChanged) 1645 OnTextTrackSettingsChanged)
1648 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) 1646 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent)
1649 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) 1647 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation)
1650 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, 1648 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation,
1651 OnReportContentSecurityPolicyViolation) 1649 OnReportContentSecurityPolicyViolation)
1652 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, 1650 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks,
1653 OnGetSavableResourceLinks) 1651 OnGetSavableResourceLinks)
1654 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, 1652 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks,
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 if (!source_frame) { 2263 if (!source_frame) {
2266 render_view_->webview()->SetInitialFocus(type == 2264 render_view_->webview()->SetInitialFocus(type ==
2267 blink::kWebFocusTypeBackward); 2265 blink::kWebFocusTypeBackward);
2268 return; 2266 return;
2269 } 2267 }
2270 2268
2271 render_view_->webview()->AdvanceFocusAcrossFrames( 2269 render_view_->webview()->AdvanceFocusAcrossFrames(
2272 type, source_frame->web_frame(), frame_); 2270 type, source_frame->web_frame(), frame_);
2273 } 2271 }
2274 2272
2275 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
2276 if (render_view_->webview()->FocusedFrame() != frame_)
2277 return;
2278 frame_->AdvanceFocusInForm(focus_type);
2279 }
2280
2281 void RenderFrameImpl::OnSetFocusedFrame() { 2273 void RenderFrameImpl::OnSetFocusedFrame() {
2282 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur 2274 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
2283 // events are properly dispatched on any currently focused elements. 2275 // events are properly dispatched on any currently focused elements.
2284 render_view_->webview()->FocusDocumentView(frame_); 2276 render_view_->webview()->FocusDocumentView(frame_);
2285 } 2277 }
2286 2278
2287 void RenderFrameImpl::OnTextTrackSettingsChanged( 2279 void RenderFrameImpl::OnTextTrackSettingsChanged(
2288 const FrameMsg_TextTrackSettings_Params& params) { 2280 const FrameMsg_TextTrackSettings_Params& params) {
2289 DCHECK(!frame_->Parent()); 2281 DCHECK(!frame_->Parent());
2290 if (!render_view_->webview()) 2282 if (!render_view_->webview())
(...skipping 4592 matching lines...) Expand 10 before | Expand all | Expand 10 after
6883 replaces_current_history_item(info.replaces_current_history_item), 6875 replaces_current_history_item(info.replaces_current_history_item),
6884 history_navigation_in_new_child_frame( 6876 history_navigation_in_new_child_frame(
6885 info.is_history_navigation_in_new_child_frame), 6877 info.is_history_navigation_in_new_child_frame),
6886 client_redirect(info.is_client_redirect), 6878 client_redirect(info.is_client_redirect),
6887 triggering_event_info(info.triggering_event_info), 6879 triggering_event_info(info.triggering_event_info),
6888 cache_disabled(info.is_cache_disabled), 6880 cache_disabled(info.is_cache_disabled),
6889 form(info.form), 6881 form(info.form),
6890 source_location(info.source_location) {} 6882 source_location(info.source_location) {}
6891 6883
6892 } // namespace content 6884 } // 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