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 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1523 | 1523 |
1524 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, | 1524 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, |
1525 uint32_t offset, | 1525 uint32_t offset, |
1526 const gfx::Range& range) { | 1526 const gfx::Range& range) { |
1527 if (view_) | 1527 if (view_) |
1528 view_->SelectionChanged(text, static_cast<size_t>(offset), range); | 1528 view_->SelectionChanged(text, static_cast<size_t>(offset), range); |
1529 } | 1529 } |
1530 | 1530 |
1531 void RenderWidgetHostImpl::OnSelectionBoundsChanged( | 1531 void RenderWidgetHostImpl::OnSelectionBoundsChanged( |
1532 const ViewHostMsg_SelectionBounds_Params& params) { | 1532 const ViewHostMsg_SelectionBounds_Params& params) { |
1533 if (view_) { | 1533 if (view_) |
1534 view_->SelectionBoundsChanged(params); | 1534 view_->SelectionBoundsChanged(params); |
1535 } | |
1536 } | 1535 } |
1537 | 1536 |
1538 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { | 1537 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
1539 if (needs_begin_frames_ == needs_begin_frames) | 1538 if (needs_begin_frames_ == needs_begin_frames) |
1540 return; | 1539 return; |
1541 | 1540 |
1542 needs_begin_frames_ = needs_begin_frames; | 1541 needs_begin_frames_ = needs_begin_frames; |
1543 if (view_) | 1542 if (view_) |
1544 view_->SetNeedsBeginFrames(needs_begin_frames); | 1543 view_->SetNeedsBeginFrames(needs_begin_frames); |
1545 } | 1544 } |
(...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2632 RenderProcessHost* rph = GetProcess(); | 2631 RenderProcessHost* rph = GetProcess(); |
2633 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); | 2632 for (std::vector<IPC::Message>::const_iterator i = messages.begin(); |
2634 i != messages.end(); ++i) { | 2633 i != messages.end(); ++i) { |
2635 rph->OnMessageReceived(*i); | 2634 rph->OnMessageReceived(*i); |
2636 if (i->dispatch_error()) | 2635 if (i->dispatch_error()) |
2637 rph->OnBadMessageReceived(*i); | 2636 rph->OnBadMessageReceived(*i); |
2638 } | 2637 } |
2639 } | 2638 } |
2640 | 2639 |
2641 } // namespace content | 2640 } // namespace content |
OLD | NEW |