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

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Refactor jank logic. Make RWHVA a WebContentsObserver to observe fullscreen state Created 3 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 package org.chromium.content_public.browser; 5 package org.chromium.content_public.browser;
6 6
7 import android.os.Handler; 7 import android.os.Handler;
8 import android.os.Parcelable; 8 import android.os.Parcelable;
9 9
10 import org.chromium.base.VisibleForTesting; 10 import org.chromium.base.VisibleForTesting;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 * @param mute Set to true to mute the WebContents, false to unmute. 166 * @param mute Set to true to mute the WebContents, false to unmute.
167 */ 167 */
168 void setAudioMuted(boolean mute); 168 void setAudioMuted(boolean mute);
169 169
170 /** 170 /**
171 * Get the Background color from underlying RenderWidgetHost for this WebCon tent. 171 * Get the Background color from underlying RenderWidgetHost for this WebCon tent.
172 */ 172 */
173 int getBackgroundColor(); 173 int getBackgroundColor();
174 174
175 /** 175 /**
176 * Ask the underlying RenderWidgetHost for this WebContent whether we can sh ow the static layer.
177 */
178 boolean canUseStaticLayer();
Khushal 2017/06/07 05:36:01 nit: Its unclear what a static layer is. Static/li
steimel 2017/06/13 23:15:44 Ack'd. Not included in the patch I'm uploading now
steimel 2017/06/14 00:29:38 Done.
179
180 /**
176 * Shows an interstitial page driven by the passed in delegate. 181 * Shows an interstitial page driven by the passed in delegate.
177 * 182 *
178 * @param url The URL being blocked by the interstitial. 183 * @param url The URL being blocked by the interstitial.
179 * @param interstitialPageDelegateAndroid The delegate handling the intersti tial. 184 * @param interstitialPageDelegateAndroid The delegate handling the intersti tial.
180 */ 185 */
181 @VisibleForTesting 186 @VisibleForTesting
182 void showInterstitialPage( 187 void showInterstitialPage(
183 String url, long interstitialPageDelegateAndroid); 188 String url, long interstitialPageDelegateAndroid);
184 189
185 /** 190 /**
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 public void simulateRendererKilledForTesting(boolean wasOomProtected); 437 public void simulateRendererKilledForTesting(boolean wasOomProtected);
433 438
434 /** 439 /**
435 * Notifies the WebContents about the new persistent video status. It should be called whenever 440 * Notifies the WebContents about the new persistent video status. It should be called whenever
436 * the value changes. 441 * the value changes.
437 * 442 *
438 * @param value Whether there is a persistent video associated with this Web Contents. 443 * @param value Whether there is a persistent video associated with this Web Contents.
439 */ 444 */
440 public void setHasPersistentVideo(boolean value); 445 public void setHasPersistentVideo(boolean value);
441 } 446 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698