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

Side by Side Diff: content/renderer/render_widget.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 std::unique_ptr<cc::SwapPromise> RenderWidget::RequestCopyOfOutputForLayoutTest( 965 std::unique_ptr<cc::SwapPromise> RenderWidget::RequestCopyOfOutputForLayoutTest(
966 std::unique_ptr<cc::CopyOutputRequest> request) { 966 std::unique_ptr<cc::CopyOutputRequest> request) {
967 return RenderThreadImpl::current()->RequestCopyOfOutputForLayoutTest( 967 return RenderThreadImpl::current()->RequestCopyOfOutputForLayoutTest(
968 routing_id_, std::move(request)); 968 routing_id_, std::move(request));
969 } 969 }
970 970
971 /////////////////////////////////////////////////////////////////////////////// 971 ///////////////////////////////////////////////////////////////////////////////
972 // RenderWidgetInputHandlerDelegate 972 // RenderWidgetInputHandlerDelegate
973 973
974 void RenderWidget::FocusChangeComplete() { 974 void RenderWidget::FocusChangeComplete() {
975 if (owner_delegate_) 975 for (auto& render_frame : render_frames_)
976 owner_delegate_->RenderWidgetFocusChangeComplete(); 976 render_frame.DidCompleteFocusChange();
Charlie Reis 2017/04/05 20:13:45 How often is this called? I'm mildly concerned ab
EhsanK 2017/04/06 21:31:28 I think quite often and basically whenever we focu
Charlie Reis 2017/04/10 06:22:33 Daniel and Ken, what are your thoughts on this? R
977 } 977 }
978 978
979 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { 979 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const {
980 if (owner_delegate_) 980 if (owner_delegate_)
981 return owner_delegate_->DoesRenderWidgetHaveTouchEventHandlersAt(point); 981 return owner_delegate_->DoesRenderWidgetHaveTouchEventHandlersAt(point);
982 982
983 return true; 983 return true;
984 } 984 }
985 985
986 void RenderWidget::ObserveGestureEventAndResult( 986 void RenderWidget::ObserveGestureEventAndResult(
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2325 // browser side (https://crbug.com/669219). 2325 // browser side (https://crbug.com/669219).
2326 // If there is no WebFrameWidget, then there will be no 2326 // If there is no WebFrameWidget, then there will be no
2327 // InputMethodControllers for a WebLocalFrame. 2327 // InputMethodControllers for a WebLocalFrame.
2328 return nullptr; 2328 return nullptr;
2329 } 2329 }
2330 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) 2330 return static_cast<blink::WebFrameWidget*>(GetWebWidget())
2331 ->getActiveWebInputMethodController(); 2331 ->getActiveWebInputMethodController();
2332 } 2332 }
2333 2333
2334 } // namespace content 2334 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698