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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2791223002: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: DCHECK update Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 } 1993 }
1994 1994
1995 void WebViewImpl::didExitFullscreen() { 1995 void WebViewImpl::didExitFullscreen() {
1996 m_fullscreenController->didExitFullscreen(); 1996 m_fullscreenController->didExitFullscreen();
1997 } 1997 }
1998 1998
1999 void WebViewImpl::didUpdateFullscreenSize() { 1999 void WebViewImpl::didUpdateFullscreenSize() {
2000 m_fullscreenController->updateSize(); 2000 m_fullscreenController->updateSize();
2001 } 2001 }
2002 2002
2003 void WebViewImpl::setSuppressFrameRequestsWorkaroundFor704763Only(
2004 bool suppressFrameRequests) {
2005 m_page->animator().setSuppressFrameRequestsWorkaroundFor704763Only(
2006 suppressFrameRequests);
2007 }
2003 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) { 2008 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) {
2004 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime", 2009 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime",
2005 lastFrameTimeMonotonic); 2010 lastFrameTimeMonotonic);
2006 DCHECK(lastFrameTimeMonotonic); 2011 DCHECK(lastFrameTimeMonotonic);
2007 2012
2008 // Create synthetic wheel events as necessary for fling. 2013 // Create synthetic wheel events as necessary for fling.
2009 if (m_gestureAnimation) { 2014 if (m_gestureAnimation) {
2010 if (m_gestureAnimation->animate(lastFrameTimeMonotonic)) 2015 if (m_gestureAnimation->animate(lastFrameTimeMonotonic))
2011 mainFrameImpl()->frameWidget()->scheduleAnimation(); 2016 mainFrameImpl()->frameWidget()->scheduleAnimation();
2012 else { 2017 else {
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
4226 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4231 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4227 return nullptr; 4232 return nullptr;
4228 return focusedFrame; 4233 return focusedFrame;
4229 } 4234 }
4230 4235
4231 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4236 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4232 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4237 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4233 } 4238 }
4234 4239
4235 } // namespace blink 4240 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698