Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: content/renderer/render_widget.cc

Issue 2139303002: Clean up around methods to enter/exit fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_frame_proxy.cc ('k') | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698