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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Rebased the patch from TOT 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"
178 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 179 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
179 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 180 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
180 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 181 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
181 #include "third_party/WebKit/public/platform/WebPoint.h" 182 #include "third_party/WebKit/public/platform/WebPoint.h"
182 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 183 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
183 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 184 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
184 #include "third_party/WebKit/public/platform/WebString.h" 185 #include "third_party/WebKit/public/platform/WebString.h"
185 #include "third_party/WebKit/public/platform/WebURL.h" 186 #include "third_party/WebKit/public/platform/WebURL.h"
186 #include "third_party/WebKit/public/platform/WebURLError.h" 187 #include "third_party/WebKit/public/platform/WebURLError.h"
187 #include "third_party/WebKit/public/platform/WebURLResponse.h" 188 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 OnSetAccessibilityMode) 1640 OnSetAccessibilityMode)
1640 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, 1641 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree,
1641 OnSnapshotAccessibilityTree) 1642 OnSnapshotAccessibilityTree)
1642 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) 1643 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData)
1643 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 1644 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
1644 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) 1645 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation)
1645 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 1646 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
1646 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 1647 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
1647 OnSetFrameOwnerProperties) 1648 OnSetFrameOwnerProperties)
1648 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) 1649 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
1650 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
1649 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 1651 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
1650 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, 1652 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
1651 OnTextTrackSettingsChanged) 1653 OnTextTrackSettingsChanged)
1652 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) 1654 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent)
1653 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) 1655 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation)
1654 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, 1656 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation,
1655 OnReportContentSecurityPolicyViolation) 1657 OnReportContentSecurityPolicyViolation)
1656 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, 1658 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks,
1657 OnGetSavableResourceLinks) 1659 OnGetSavableResourceLinks)
1658 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, 1660 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 int32_t source_routing_id) { 2268 int32_t source_routing_id) {
2267 RenderFrameProxy* source_frame = 2269 RenderFrameProxy* source_frame =
2268 RenderFrameProxy::FromRoutingID(source_routing_id); 2270 RenderFrameProxy::FromRoutingID(source_routing_id);
2269 if (!source_frame) 2271 if (!source_frame)
2270 return; 2272 return;
2271 2273
2272 render_view_->webview()->AdvanceFocusAcrossFrames( 2274 render_view_->webview()->AdvanceFocusAcrossFrames(
2273 type, source_frame->web_frame(), frame_); 2275 type, source_frame->web_frame(), frame_);
2274 } 2276 }
2275 2277
2278 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
2279 if (render_view_->webview()->FocusedFrame() != frame_)
2280 return;
2281 frame_->AdvanceFocusInForm(focus_type);
2282 }
2283
2276 void RenderFrameImpl::OnSetFocusedFrame() { 2284 void RenderFrameImpl::OnSetFocusedFrame() {
2277 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur 2285 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
2278 // events are properly dispatched on any currently focused elements. 2286 // events are properly dispatched on any currently focused elements.
2279 render_view_->webview()->FocusDocumentView(frame_); 2287 render_view_->webview()->FocusDocumentView(frame_);
2280 } 2288 }
2281 2289
2282 void RenderFrameImpl::OnTextTrackSettingsChanged( 2290 void RenderFrameImpl::OnTextTrackSettingsChanged(
2283 const FrameMsg_TextTrackSettings_Params& params) { 2291 const FrameMsg_TextTrackSettings_Params& params) {
2284 DCHECK(!frame_->Parent()); 2292 DCHECK(!frame_->Parent());
2285 if (!render_view_->webview()) 2293 if (!render_view_->webview())
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after
6847 policy(info.default_policy), 6855 policy(info.default_policy),
6848 replaces_current_history_item(info.replaces_current_history_item), 6856 replaces_current_history_item(info.replaces_current_history_item),
6849 history_navigation_in_new_child_frame( 6857 history_navigation_in_new_child_frame(
6850 info.is_history_navigation_in_new_child_frame), 6858 info.is_history_navigation_in_new_child_frame),
6851 client_redirect(info.is_client_redirect), 6859 client_redirect(info.is_client_redirect),
6852 cache_disabled(info.is_cache_disabled), 6860 cache_disabled(info.is_cache_disabled),
6853 form(info.form), 6861 form(info.form),
6854 source_location(info.source_location) {} 6862 source_location(info.source_location) {}
6855 6863
6856 } // namespace content 6864 } // 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