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 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2065 | 2065 |
2066 void RenderWidget::requestPointerUnlock() { | 2066 void RenderWidget::requestPointerUnlock() { |
2067 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 2067 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
2068 } | 2068 } |
2069 | 2069 |
2070 bool RenderWidget::isPointerLocked() { | 2070 bool RenderWidget::isPointerLocked() { |
2071 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2071 return mouse_lock_dispatcher_->IsMouseLockedTo( |
2072 webwidget_mouse_lock_target_.get()); | 2072 webwidget_mouse_lock_target_.get()); |
2073 } | 2073 } |
2074 | 2074 |
| 2075 blink::WebWidget* RenderWidget::webwidget() const { |
| 2076 return webwidget_; |
| 2077 } |
| 2078 |
2075 } // namespace content | 2079 } // namespace content |
OLD | NEW |