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

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

Issue 2766053002: [refactor] Fix autofill features for payments when the form is inside an OOPIF (Closed)
Patch Set: Using Node& instead of Node* Created 3 years, 8 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 return opener_frame->GetWebFrame(); 1085 return opener_frame->GetWebFrame();
1086 1086
1087 return nullptr; 1087 return nullptr;
1088 } 1088 }
1089 1089
1090 blink::WebURL RenderFrameImpl::overrideFlashEmbedWithHTML( 1090 blink::WebURL RenderFrameImpl::overrideFlashEmbedWithHTML(
1091 const blink::WebURL& url) { 1091 const blink::WebURL& url) {
1092 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url); 1092 return GetContentClient()->renderer()->OverrideFlashEmbedWithHTML(url);
1093 } 1093 }
1094 1094
1095 void RenderFrameImpl::didCompleteLeftMouseDownOrGestureTapInNode(
Charlie Reis 2017/04/05 20:13:44 These should move down with the WebFrameClient ove
EhsanK 2017/04/06 21:31:28 Done. Both for this method and the one above. Than
1096 const blink::WebNode& node) {
1097 DCHECK(!node.isNull());
1098 if (!frame_)
1099 return;
1100 for (auto& observer : observers_)
1101 observer.DidCompleteLeftMouseDownOrGestureTapInNode(node);
1102 }
1103
1095 // RenderFrameImpl ---------------------------------------------------------- 1104 // RenderFrameImpl ----------------------------------------------------------
1096 RenderFrameImpl::RenderFrameImpl(const CreateParams& params) 1105 RenderFrameImpl::RenderFrameImpl(const CreateParams& params)
1097 : frame_(NULL), 1106 : frame_(NULL),
1098 is_main_frame_(true), 1107 is_main_frame_(true),
1099 unique_name_helper_(this), 1108 unique_name_helper_(this),
1100 in_browser_initiated_detach_(false), 1109 in_browser_initiated_detach_(false),
1101 in_frame_tree_(false), 1110 in_frame_tree_(false),
1102 render_view_(params.render_view), 1111 render_view_(params.render_view),
1103 routing_id_(params.routing_id), 1112 routing_id_(params.routing_id),
1104 proxy_routing_id_(MSG_ROUTING_NONE), 1113 proxy_routing_id_(MSG_ROUTING_NONE),
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 // ViewFlushedPaint regarding instances closing themselves, so we take 2441 // ViewFlushedPaint regarding instances closing themselves, so we take
2433 // similar precautions. 2442 // similar precautions.
2434 PepperPluginSet plugins = active_pepper_instances_; 2443 PepperPluginSet plugins = active_pepper_instances_;
2435 for (auto* plugin : plugins) { 2444 for (auto* plugin : plugins) {
2436 if (active_pepper_instances_.find(plugin) != active_pepper_instances_.end()) 2445 if (active_pepper_instances_.find(plugin) != active_pepper_instances_.end())
2437 plugin->ViewInitiatedPaint(); 2446 plugin->ViewInitiatedPaint();
2438 } 2447 }
2439 #endif 2448 #endif
2440 } 2449 }
2441 2450
2451 void RenderFrameImpl::DidCompleteFocusChange() {
2452 if (frame_ && frame_ == render_view_->webview()->focusedFrame()) {
Charlie Reis 2017/04/05 20:13:44 Can these methods be called when frame_ is null?
EhsanK 2017/04/06 21:31:27 You are right. WasHidden() only calls GetWebFrame(
2453 for (auto& observer : observers_)
2454 observer.DidCompleteFocusChangeInFrame();
2455 }
2456 }
2457
2442 RenderView* RenderFrameImpl::GetRenderView() { 2458 RenderView* RenderFrameImpl::GetRenderView() {
2443 return render_view_; 2459 return render_view_;
2444 } 2460 }
2445 2461
2446 RenderAccessibility* RenderFrameImpl::GetRenderAccessibility() { 2462 RenderAccessibility* RenderFrameImpl::GetRenderAccessibility() {
2447 return render_accessibility_; 2463 return render_accessibility_;
2448 } 2464 }
2449 2465
2450 int RenderFrameImpl::GetRoutingID() { 2466 int RenderFrameImpl::GetRoutingID() {
2451 return routing_id_; 2467 return routing_id_;
(...skipping 4514 matching lines...) Expand 10 before | Expand all | Expand 10 after
6966 policy(info.defaultPolicy), 6982 policy(info.defaultPolicy),
6967 replaces_current_history_item(info.replacesCurrentHistoryItem), 6983 replaces_current_history_item(info.replacesCurrentHistoryItem),
6968 history_navigation_in_new_child_frame( 6984 history_navigation_in_new_child_frame(
6969 info.isHistoryNavigationInNewChildFrame), 6985 info.isHistoryNavigationInNewChildFrame),
6970 client_redirect(info.isClientRedirect), 6986 client_redirect(info.isClientRedirect),
6971 cache_disabled(info.isCacheDisabled), 6987 cache_disabled(info.isCacheDisabled),
6972 form(info.form), 6988 form(info.form),
6973 source_location(info.sourceLocation) {} 6989 source_location(info.sourceLocation) {}
6974 6990
6975 } // namespace content 6991 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698