| 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/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2016 } | 2016 } |
| 2017 | 2017 |
| 2018 RenderWidgetCompositor* RenderWidget::compositor() const { | 2018 RenderWidgetCompositor* RenderWidget::compositor() const { |
| 2019 return compositor_.get(); | 2019 return compositor_.get(); |
| 2020 } | 2020 } |
| 2021 | 2021 |
| 2022 void RenderWidget::SetHandlingInputEventForTesting(bool handling_input_event) { | 2022 void RenderWidget::SetHandlingInputEventForTesting(bool handling_input_event) { |
| 2023 input_handler_->set_handling_input_event(handling_input_event); | 2023 input_handler_->set_handling_input_event(handling_input_event); |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 bool RenderWidget::SendAckForMouseMoveFromDebugger() { | |
| 2027 return input_handler_->SendAckForMouseMoveFromDebugger(); | |
| 2028 } | |
| 2029 | |
| 2030 void RenderWidget::IgnoreAckForMouseMoveFromDebugger() { | |
| 2031 input_handler_->IgnoreAckForMouseMoveFromDebugger(); | |
| 2032 } | |
| 2033 | |
| 2034 void RenderWidget::hasTouchEventHandlers(bool has_handlers) { | 2026 void RenderWidget::hasTouchEventHandlers(bool has_handlers) { |
| 2035 if (render_widget_scheduling_state_) | 2027 if (render_widget_scheduling_state_) |
| 2036 render_widget_scheduling_state_->SetHasTouchHandler(has_handlers); | 2028 render_widget_scheduling_state_->SetHasTouchHandler(has_handlers); |
| 2037 Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers)); | 2029 Send(new ViewHostMsg_HasTouchEventHandlers(routing_id_, has_handlers)); |
| 2038 } | 2030 } |
| 2039 | 2031 |
| 2040 void RenderWidget::setTouchAction( | 2032 void RenderWidget::setTouchAction( |
| 2041 blink::WebTouchAction web_touch_action) { | 2033 blink::WebTouchAction web_touch_action) { |
| 2042 | 2034 |
| 2043 // Ignore setTouchAction calls that result from synthetic touch events (eg. | 2035 // Ignore setTouchAction calls that result from synthetic touch events (eg. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 bool RenderWidget::isPointerLocked() { | 2088 bool RenderWidget::isPointerLocked() { |
| 2097 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2089 return mouse_lock_dispatcher_->IsMouseLockedTo( |
| 2098 webwidget_mouse_lock_target_.get()); | 2090 webwidget_mouse_lock_target_.get()); |
| 2099 } | 2091 } |
| 2100 | 2092 |
| 2101 blink::WebWidget* RenderWidget::GetWebWidget() const { | 2093 blink::WebWidget* RenderWidget::GetWebWidget() const { |
| 2102 return webwidget_internal_; | 2094 return webwidget_internal_; |
| 2103 } | 2095 } |
| 2104 | 2096 |
| 2105 } // namespace content | 2097 } // namespace content |
| OLD | NEW |