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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed the build break by replacing WebViewImpl object with WebViewBase Created 3 years, 7 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 #include "ppapi/features/features.h" 180 #include "ppapi/features/features.h"
181 #include "services/service_manager/public/cpp/connector.h" 181 #include "services/service_manager/public/cpp/connector.h"
182 #include "services/service_manager/public/cpp/interface_provider.h" 182 #include "services/service_manager/public/cpp/interface_provider.h"
183 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 183 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
184 #include "storage/common/data_element.h" 184 #include "storage/common/data_element.h"
185 #include "third_party/WebKit/public/platform/FilePathConversion.h" 185 #include "third_party/WebKit/public/platform/FilePathConversion.h"
186 #include "third_party/WebKit/public/platform/InterfaceProvider.h" 186 #include "third_party/WebKit/public/platform/InterfaceProvider.h"
187 #include "third_party/WebKit/public/platform/URLConversion.h" 187 #include "third_party/WebKit/public/platform/URLConversion.h"
188 #include "third_party/WebKit/public/platform/WebCachePolicy.h" 188 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
189 #include "third_party/WebKit/public/platform/WebData.h" 189 #include "third_party/WebKit/public/platform/WebData.h"
190 #include "third_party/WebKit/public/platform/WebFocusType.h"
190 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" 191 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
191 #include "third_party/WebKit/public/platform/WebMediaPlayer.h" 192 #include "third_party/WebKit/public/platform/WebMediaPlayer.h"
192 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h" 193 #include "third_party/WebKit/public/platform/WebMediaPlayerSource.h"
193 #include "third_party/WebKit/public/platform/WebPoint.h" 194 #include "third_party/WebKit/public/platform/WebPoint.h"
194 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" 195 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
195 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" 196 #include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h"
196 #include "third_party/WebKit/public/platform/WebString.h" 197 #include "third_party/WebKit/public/platform/WebString.h"
197 #include "third_party/WebKit/public/platform/WebURL.h" 198 #include "third_party/WebKit/public/platform/WebURL.h"
198 #include "third_party/WebKit/public/platform/WebURLError.h" 199 #include "third_party/WebKit/public/platform/WebURLError.h"
199 #include "third_party/WebKit/public/platform/WebURLResponse.h" 200 #include "third_party/WebKit/public/platform/WebURLResponse.h"
(...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 OnSetAccessibilityMode) 1596 OnSetAccessibilityMode)
1596 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree, 1597 IPC_MESSAGE_HANDLER(AccessibilityMsg_SnapshotTree,
1597 OnSnapshotAccessibilityTree) 1598 OnSnapshotAccessibilityTree)
1598 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData) 1599 IPC_MESSAGE_HANDLER(FrameMsg_ExtractSmartClipData, OnExtractSmartClipData)
1599 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener) 1600 IPC_MESSAGE_HANDLER(FrameMsg_UpdateOpener, OnUpdateOpener)
1600 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation) 1601 IPC_MESSAGE_HANDLER(FrameMsg_CommitNavigation, OnCommitNavigation)
1601 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy) 1602 IPC_MESSAGE_HANDLER(FrameMsg_DidUpdateFramePolicy, OnDidUpdateFramePolicy)
1602 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties, 1603 IPC_MESSAGE_HANDLER(FrameMsg_SetFrameOwnerProperties,
1603 OnSetFrameOwnerProperties) 1604 OnSetFrameOwnerProperties)
1604 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus) 1605 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocus, OnAdvanceFocus)
1606 IPC_MESSAGE_HANDLER(FrameMsg_AdvanceFocusInForm, OnAdvanceFocusInForm)
1605 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame) 1607 IPC_MESSAGE_HANDLER(FrameMsg_SetFocusedFrame, OnSetFocusedFrame)
1606 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings, 1608 IPC_MESSAGE_HANDLER(FrameMsg_SetTextTrackSettings,
1607 OnTextTrackSettingsChanged) 1609 OnTextTrackSettingsChanged)
1608 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent) 1610 IPC_MESSAGE_HANDLER(FrameMsg_PostMessageEvent, OnPostMessageEvent)
1609 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation) 1611 IPC_MESSAGE_HANDLER(FrameMsg_FailedNavigation, OnFailedNavigation)
1610 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation, 1612 IPC_MESSAGE_HANDLER(FrameMsg_ReportContentSecurityPolicyViolation,
1611 OnReportContentSecurityPolicyViolation) 1613 OnReportContentSecurityPolicyViolation)
1612 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks, 1614 IPC_MESSAGE_HANDLER(FrameMsg_GetSavableResourceLinks,
1613 OnGetSavableResourceLinks) 1615 OnGetSavableResourceLinks)
1614 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks, 1616 IPC_MESSAGE_HANDLER(FrameMsg_GetSerializedHtmlWithLocalLinks,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 int32_t source_routing_id) { 2224 int32_t source_routing_id) {
2223 RenderFrameProxy* source_frame = 2225 RenderFrameProxy* source_frame =
2224 RenderFrameProxy::FromRoutingID(source_routing_id); 2226 RenderFrameProxy::FromRoutingID(source_routing_id);
2225 if (!source_frame) 2227 if (!source_frame)
2226 return; 2228 return;
2227 2229
2228 render_view_->webview()->AdvanceFocusAcrossFrames( 2230 render_view_->webview()->AdvanceFocusAcrossFrames(
2229 type, source_frame->web_frame(), frame_); 2231 type, source_frame->web_frame(), frame_);
2230 } 2232 }
2231 2233
2234 void RenderFrameImpl::OnAdvanceFocusInForm(blink::WebFocusType focus_type) {
2235 if (render_view_->webview()->FocusedFrame() != frame_)
2236 return;
2237 frame_->AdvanceFocusInForm(focus_type);
2238 }
2239
2232 void RenderFrameImpl::OnSetFocusedFrame() { 2240 void RenderFrameImpl::OnSetFocusedFrame() {
2233 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur 2241 // This uses focusDocumentView rather than setFocusedFrame so that focus/blur
2234 // events are properly dispatched on any currently focused elements. 2242 // events are properly dispatched on any currently focused elements.
2235 render_view_->webview()->FocusDocumentView(frame_); 2243 render_view_->webview()->FocusDocumentView(frame_);
2236 } 2244 }
2237 2245
2238 void RenderFrameImpl::OnTextTrackSettingsChanged( 2246 void RenderFrameImpl::OnTextTrackSettingsChanged(
2239 const FrameMsg_TextTrackSettings_Params& params) { 2247 const FrameMsg_TextTrackSettings_Params& params) {
2240 DCHECK(!frame_->Parent()); 2248 DCHECK(!frame_->Parent());
2241 if (!render_view_->webview()) 2249 if (!render_view_->webview())
(...skipping 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after
7065 policy(info.default_policy), 7073 policy(info.default_policy),
7066 replaces_current_history_item(info.replaces_current_history_item), 7074 replaces_current_history_item(info.replaces_current_history_item),
7067 history_navigation_in_new_child_frame( 7075 history_navigation_in_new_child_frame(
7068 info.is_history_navigation_in_new_child_frame), 7076 info.is_history_navigation_in_new_child_frame),
7069 client_redirect(info.is_client_redirect), 7077 client_redirect(info.is_client_redirect),
7070 cache_disabled(info.is_cache_disabled), 7078 cache_disabled(info.is_cache_disabled),
7071 form(info.form), 7079 form(info.form),
7072 source_location(info.source_location) {} 7080 source_location(info.source_location) {}
7073 7081
7074 } // namespace content 7082 } // 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