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

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

Issue 2791223002: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: +willBeginMainFrameBasedSuppression 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 } 1992 }
1993 1993
1994 void WebViewImpl::didExitFullscreen() { 1994 void WebViewImpl::didExitFullscreen() {
1995 m_fullscreenController->didExitFullscreen(); 1995 m_fullscreenController->didExitFullscreen();
1996 } 1996 }
1997 1997
1998 void WebViewImpl::didUpdateFullscreenSize() { 1998 void WebViewImpl::didUpdateFullscreenSize() {
1999 m_fullscreenController->updateSize(); 1999 m_fullscreenController->updateSize();
2000 } 2000 }
2001 2001
2002 void WebViewImpl::setSuppressFrameRequestsWorkaroundFor704763Only(
2003 bool suppressFrameRequests) {
2004 m_page->animator().setSuppressFrameRequestsWorkaroundFor704763Only(
2005 suppressFrameRequests);
2006 }
2002 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) { 2007 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) {
2003 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime", 2008 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime",
2004 lastFrameTimeMonotonic); 2009 lastFrameTimeMonotonic);
2005 DCHECK(lastFrameTimeMonotonic); 2010 DCHECK(lastFrameTimeMonotonic);
2006 2011
2007 // Create synthetic wheel events as necessary for fling. 2012 // Create synthetic wheel events as necessary for fling.
2008 if (m_gestureAnimation) { 2013 if (m_gestureAnimation) {
2009 if (m_gestureAnimation->animate(lastFrameTimeMonotonic)) 2014 if (m_gestureAnimation->animate(lastFrameTimeMonotonic))
2010 mainFrameImpl()->frameWidget()->scheduleAnimation(); 2015 mainFrameImpl()->frameWidget()->scheduleAnimation();
2011 else { 2016 else {
(...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after
4225 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4230 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4226 return nullptr; 4231 return nullptr;
4227 return focusedFrame; 4232 return focusedFrame;
4228 } 4233 }
4229 4234
4230 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4235 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4231 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4236 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4232 } 4237 }
4233 4238
4234 } // namespace blink 4239 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698