Commit ce3ea2a9 authored by kmadhusu's avatar kmadhusu Committed by Commit bot

Add a helper function in TabObserver.java to handle WebContents Instant support disabled event.

Server side bug: b/17140979

BUG=none
TEST=none

Review URL: https://codereview.chromium.org/532283003

Cr-Commit-Position: refs/heads/master@{#293182}
parent 594ca792
......@@ -38,6 +38,9 @@ public class EmptyTabObserver implements TabObserver {
@Override
public void onContextMenuShown(Tab tab, ContextMenu menu) { }
@Override
public void onWebContentsInstantSupportDisabled() { }
@Override
public void onLoadStarted(Tab tabBase) { }
......
......@@ -1025,7 +1025,8 @@ public class Tab implements NavigationClient {
* disabled event.
*/
@CalledByNative
protected void onWebContentsInstantSupportDisabled() {
private void onWebContentsInstantSupportDisabled() {
for (TabObserver observer : mObservers) observer.onWebContentsInstantSupportDisabled();
}
/**
......
......@@ -78,6 +78,11 @@ public interface TabObserver {
*/
void onContextMenuShown(Tab tab, ContextMenu menu);
/**
* Called when the WebContents Instant support is disabled.
*/
void onWebContentsInstantSupportDisabled();
// WebContentsDelegateAndroid methods ---------------------------------------------------------
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment