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