| 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 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 | 1529 |
| 1530 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, | 1530 void RenderWidgetHostImpl::SelectionChanged(const base::string16& text, |
| 1531 uint32_t offset, | 1531 uint32_t offset, |
| 1532 const gfx::Range& range) { | 1532 const gfx::Range& range) { |
| 1533 if (view_) | 1533 if (view_) |
| 1534 view_->SelectionChanged(text, static_cast<size_t>(offset), range); | 1534 view_->SelectionChanged(text, static_cast<size_t>(offset), range); |
| 1535 } | 1535 } |
| 1536 | 1536 |
| 1537 void RenderWidgetHostImpl::OnSelectionBoundsChanged( | 1537 void RenderWidgetHostImpl::OnSelectionBoundsChanged( |
| 1538 const ViewHostMsg_SelectionBounds_Params& params) { | 1538 const ViewHostMsg_SelectionBounds_Params& params) { |
| 1539 if (view_) { | 1539 if (view_) |
| 1540 view_->SelectionBoundsChanged(params); | 1540 view_->SelectionBoundsChanged(params); |
| 1541 } | |
| 1542 } | 1541 } |
| 1543 | 1542 |
| 1544 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { | 1543 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { |
| 1545 if (needs_begin_frames_ == needs_begin_frames) | 1544 if (needs_begin_frames_ == needs_begin_frames) |
| 1546 return; | 1545 return; |
| 1547 | 1546 |
| 1548 needs_begin_frames_ = needs_begin_frames; | 1547 needs_begin_frames_ = needs_begin_frames; |
| 1549 if (view_) | 1548 if (view_) |
| 1550 view_->SetNeedsBeginFrames(needs_begin_frames); | 1549 view_->SetNeedsBeginFrames(needs_begin_frames); |
| 1551 } | 1550 } |
| (...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2659 device::mojom::WakeLockType::PreventDisplaySleep, | 2658 device::mojom::WakeLockType::PreventDisplaySleep, |
| 2660 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", | 2659 device::mojom::WakeLockReason::ReasonOther, "GetSnapshot", |
| 2661 std::move(request)); | 2660 std::move(request)); |
| 2662 } | 2661 } |
| 2663 } | 2662 } |
| 2664 return wake_lock_.get(); | 2663 return wake_lock_.get(); |
| 2665 } | 2664 } |
| 2666 #endif | 2665 #endif |
| 2667 | 2666 |
| 2668 } // namespace content | 2667 } // namespace content |
| OLD | NEW |