| OLD | NEW |
| 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 4512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4523 void RenderFrameImpl::didChangeScrollOffset(blink::WebLocalFrame* frame) { | 4523 void RenderFrameImpl::didChangeScrollOffset(blink::WebLocalFrame* frame) { |
| 4524 DCHECK_EQ(frame_, frame); | 4524 DCHECK_EQ(frame_, frame); |
| 4525 render_view_->StartNavStateSyncTimerIfNecessary(this); | 4525 render_view_->StartNavStateSyncTimerIfNecessary(this); |
| 4526 | 4526 |
| 4527 for (auto& observer : observers_) | 4527 for (auto& observer : observers_) |
| 4528 observer.DidChangeScrollOffset(); | 4528 observer.DidChangeScrollOffset(); |
| 4529 } | 4529 } |
| 4530 | 4530 |
| 4531 void RenderFrameImpl::willInsertBody(blink::WebLocalFrame* frame) { | 4531 void RenderFrameImpl::willInsertBody(blink::WebLocalFrame* frame) { |
| 4532 DCHECK(!frame_ || frame_ == frame); | 4532 DCHECK(!frame_ || frame_ == frame); |
| 4533 if (!frame->parent()) { | 4533 Send(new FrameHostMsg_WillInsertBody(routing_id_, |
| 4534 render_view_->Send(new ViewHostMsg_WillInsertBody( | 4534 render_view_->GetRoutingID())); |
| 4535 render_view_->GetRoutingID())); | |
| 4536 } | |
| 4537 } | 4535 } |
| 4538 | 4536 |
| 4539 void RenderFrameImpl::reportFindInPageMatchCount(int request_id, | 4537 void RenderFrameImpl::reportFindInPageMatchCount(int request_id, |
| 4540 int count, | 4538 int count, |
| 4541 bool final_update) { | 4539 bool final_update) { |
| 4542 // -1 here means don't update the active match ordinal. | 4540 // -1 here means don't update the active match ordinal. |
| 4543 int active_match_ordinal = count ? -1 : 0; | 4541 int active_match_ordinal = count ? -1 : 0; |
| 4544 | 4542 |
| 4545 SendFindReply(request_id, count, active_match_ordinal, gfx::Rect(), | 4543 SendFindReply(request_id, count, active_match_ordinal, gfx::Rect(), |
| 4546 final_update); | 4544 final_update); |
| (...skipping 2283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6830 // event target. Potentially a Pepper plugin will receive the event. | 6828 // event target. Potentially a Pepper plugin will receive the event. |
| 6831 // In order to tell whether a plugin gets the last mouse event and which it | 6829 // In order to tell whether a plugin gets the last mouse event and which it |
| 6832 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6830 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6833 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6831 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6834 // |pepper_last_mouse_event_target_|. | 6832 // |pepper_last_mouse_event_target_|. |
| 6835 pepper_last_mouse_event_target_ = nullptr; | 6833 pepper_last_mouse_event_target_ = nullptr; |
| 6836 #endif | 6834 #endif |
| 6837 } | 6835 } |
| 6838 | 6836 |
| 6839 } // namespace content | 6837 } // namespace content |
| OLD | NEW |