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 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 | 1611 |
1612 if (render_widget_scheduling_state_) | 1612 if (render_widget_scheduling_state_) |
1613 render_widget_scheduling_state_->SetHidden(hidden); | 1613 render_widget_scheduling_state_->SetHidden(hidden); |
1614 } | 1614 } |
1615 | 1615 |
1616 void RenderWidget::DidToggleFullscreen() { | 1616 void RenderWidget::DidToggleFullscreen() { |
1617 if (!webwidget_) | 1617 if (!webwidget_) |
1618 return; | 1618 return; |
1619 | 1619 |
1620 if (is_fullscreen_granted_) { | 1620 if (is_fullscreen_granted_) { |
1621 webwidget_->didEnterFullScreen(); | 1621 webwidget_->didEnterFullscreen(); |
1622 } else { | 1622 } else { |
1623 webwidget_->didExitFullScreen(); | 1623 webwidget_->didExitFullscreen(); |
1624 } | 1624 } |
1625 } | 1625 } |
1626 | 1626 |
1627 bool RenderWidget::next_paint_is_resize_ack() const { | 1627 bool RenderWidget::next_paint_is_resize_ack() const { |
1628 return ViewHostMsg_UpdateRect_Flags::is_resize_ack(next_paint_flags_); | 1628 return ViewHostMsg_UpdateRect_Flags::is_resize_ack(next_paint_flags_); |
1629 } | 1629 } |
1630 | 1630 |
1631 void RenderWidget::set_next_paint_is_resize_ack() { | 1631 void RenderWidget::set_next_paint_is_resize_ack() { |
1632 next_paint_flags_ |= ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK; | 1632 next_paint_flags_ |= ViewHostMsg_UpdateRect_Flags::IS_RESIZE_ACK; |
1633 } | 1633 } |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1979 void RenderWidget::requestPointerUnlock() { | 1979 void RenderWidget::requestPointerUnlock() { |
1980 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 1980 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
1981 } | 1981 } |
1982 | 1982 |
1983 bool RenderWidget::isPointerLocked() { | 1983 bool RenderWidget::isPointerLocked() { |
1984 return mouse_lock_dispatcher_->IsMouseLockedTo( | 1984 return mouse_lock_dispatcher_->IsMouseLockedTo( |
1985 webwidget_mouse_lock_target_.get()); | 1985 webwidget_mouse_lock_target_.get()); |
1986 } | 1986 } |
1987 | 1987 |
1988 } // namespace content | 1988 } // namespace content |
OLD | NEW |