OLD | NEW |
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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 Send(new ViewMsg_ForceRedraw(GetRoutingID(), latency_info)); | 1533 Send(new ViewMsg_ForceRedraw(GetRoutingID(), latency_info)); |
1534 } | 1534 } |
1535 | 1535 |
1536 const NativeWebKeyboardEvent* | 1536 const NativeWebKeyboardEvent* |
1537 RenderWidgetHostImpl::GetLastKeyboardEvent() const { | 1537 RenderWidgetHostImpl::GetLastKeyboardEvent() const { |
1538 return input_router_->GetLastKeyboardEvent(); | 1538 return input_router_->GetLastKeyboardEvent(); |
1539 } | 1539 } |
1540 | 1540 |
1541 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, | 1541 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, |
1542 uint32_t offset, | 1542 uint32_t offset, |
1543 const gfx::Range& range) { | 1543 const gfx::Range& range, |
1544 if (view_) | 1544 bool user_initiated) { |
1545 view_->SelectionChanged(text, static_cast<size_t>(offset), range); | 1545 if (view_) { |
| 1546 view_->SelectionChanged(text, static_cast<size_t>(offset), range, |
| 1547 user_initiated); |
| 1548 } |
1546 } | 1549 } |
1547 | 1550 |
1548 void RenderWidgetHostImpl::OnSelectionBoundsChanged( | 1551 void RenderWidgetHostImpl::OnSelectionBoundsChanged( |
1549 const ViewHostMsg_SelectionBounds_Params& params) { | 1552 const ViewHostMsg_SelectionBounds_Params& params) { |
1550 if (view_) { | 1553 if (view_) { |
1551 view_->SelectionBoundsChanged(params); | 1554 view_->SelectionBoundsChanged(params); |
1552 } | 1555 } |
1553 } | 1556 } |
1554 | 1557 |
1555 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { | 1558 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2649 RenderProcessHost* rph = GetProcess(); | 2652 RenderProcessHost* rph = GetProcess(); |
2650 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); | 2653 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); |
2651 i != messages.end(); ++i) { | 2654 i != messages.end(); ++i) { |
2652 rph->OnMessageReceived(*i); | 2655 rph->OnMessageReceived(*i); |
2653 if (i->dispatch_error()) | 2656 if (i->dispatch_error()) |
2654 rph->OnBadMessageReceived(*i); | 2657 rph->OnBadMessageReceived(*i); |
2655 } | 2658 } |
2656 } | 2659 } |
2657 | 2660 |
2658 } // namespace content | 2661 } // namespace content |
OLD | NEW |