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 bool user_initiated) { | 1544 if (view_) |
1545 if (view_) { | 1545 view_->SelectionChanged(text, static_cast<size_t>(offset), range); |
1546 view_->SelectionChanged(text, static_cast<size_t>(offset), range, | |
1547 user_initiated); | |
1548 } | |
1549 } | 1546 } |
1550 | 1547 |
1551 void RenderWidgetHostImpl::OnSelectionBoundsChanged( | 1548 void RenderWidgetHostImpl::OnSelectionBoundsChanged( |
1552 const ViewHostMsg_SelectionBounds_Params& params) { | 1549 const ViewHostMsg_SelectionBounds_Params& params) { |
1553 if (view_) { | 1550 if (view_) { |
1554 view_->SelectionBoundsChanged(params); | 1551 view_->SelectionBoundsChanged(params); |
1555 } | 1552 } |
1556 } | 1553 } |
1557 | 1554 |
1558 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { | 1555 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2652 RenderProcessHost* rph = GetProcess(); | 2649 RenderProcessHost* rph = GetProcess(); |
2653 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); | 2650 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); |
2654 i != messages.end(); ++i) { | 2651 i != messages.end(); ++i) { |
2655 rph->OnMessageReceived(*i); | 2652 rph->OnMessageReceived(*i); |
2656 if (i->dispatch_error()) | 2653 if (i->dispatch_error()) |
2657 rph->OnBadMessageReceived(*i); | 2654 rph->OnBadMessageReceived(*i); |
2658 } | 2655 } |
2659 } | 2656 } |
2660 | 2657 |
2661 } // namespace content | 2658 } // namespace content |
OLD | NEW |