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

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

Issue 2813543003: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.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 /* 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 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1942 } 1942 }
1943 1943
1944 void WebViewImpl::didExitFullscreen() { 1944 void WebViewImpl::didExitFullscreen() {
1945 m_fullscreenController->didExitFullscreen(); 1945 m_fullscreenController->didExitFullscreen();
1946 } 1946 }
1947 1947
1948 void WebViewImpl::didUpdateFullscreenSize() { 1948 void WebViewImpl::didUpdateFullscreenSize() {
1949 m_fullscreenController->updateSize(); 1949 m_fullscreenController->updateSize();
1950 } 1950 }
1951 1951
1952 void WebViewImpl::setSuppressFrameRequestsWorkaroundFor704763Only(
1953 bool suppressFrameRequests) {
1954 m_page->animator().setSuppressFrameRequestsWorkaroundFor704763Only(
1955 suppressFrameRequests);
1956 }
1952 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) { 1957 void WebViewImpl::beginFrame(double lastFrameTimeMonotonic) {
1953 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime", 1958 TRACE_EVENT1("blink", "WebViewImpl::beginFrame", "frameTime",
1954 lastFrameTimeMonotonic); 1959 lastFrameTimeMonotonic);
1955 DCHECK(lastFrameTimeMonotonic); 1960 DCHECK(lastFrameTimeMonotonic);
1956 1961
1957 // Create synthetic wheel events as necessary for fling. 1962 // Create synthetic wheel events as necessary for fling.
1958 if (m_gestureAnimation) { 1963 if (m_gestureAnimation) {
1959 if (m_gestureAnimation->animate(lastFrameTimeMonotonic)) 1964 if (m_gestureAnimation->animate(lastFrameTimeMonotonic))
1960 mainFrameImpl()->frameWidget()->scheduleAnimation(); 1965 mainFrameImpl()->frameWidget()->scheduleAnimation();
1961 else { 1966 else {
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
4161 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4166 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4162 return nullptr; 4167 return nullptr;
4163 return focusedFrame; 4168 return focusedFrame;
4164 } 4169 }
4165 4170
4166 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4171 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4167 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4172 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4168 } 4173 }
4169 4174
4170 } // namespace blink 4175 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698