Commit 33f6d0f8 authored by Mei Liang's avatar Mei Liang Committed by Commit Bot

Deprecate the SceneChangeObserver interface

This cl annotates the SceneChangeObserver interface as deprecated to
avoid new usage.

Bug: 110846
Change-Id: I5b562b9100c4b674f4f6cd9197f2a41322d47c85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2529697Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Mei Liang <meiliang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#825995}
parent 454fa581
...@@ -4,20 +4,29 @@ ...@@ -4,20 +4,29 @@
package org.chromium.chrome.browser.compositor.layouts; package org.chromium.chrome.browser.compositor.layouts;
import org.chromium.chrome.browser.layouts.LayoutStateProvider.LayoutStateObserver;
/** /**
* An observer that listens for active {@link Layout} changes. * An observer that listens for active {@link Layout} changes.
*
* DEPRECATED, please use {@link LayoutStateObserver} instead.
*/ */
@Deprecated
public interface SceneChangeObserver { public interface SceneChangeObserver {
/** /**
* Called when a layout wants to hint that a new tab might be selected soon. This is not called * Called when a layout wants to hint that a new tab might be selected soon. This is not called
* every time a tab is selected. * every time a tab is selected.
* @param tabId The id of the tab that might be selected soon. * @param tabId The id of the tab that might be selected soon.
*
* DEPRECATED, please use {@link LayoutStateObserver#onTabSelectionHinted(int)} instead.
*/ */
void onTabSelectionHinted(int tabId); void onTabSelectionHinted(int tabId);
/** /**
* Called when the active {@link Layout} changes. * Called when the active {@link Layout} changes.
* @param layout The new active {@link Layout}. * @param layout The new active {@link Layout}.
*
* DEPRECATED, please use {@link LayoutStateObserver#onStartedShowing(int, boolean)} instead.
*/ */
void onSceneChange(Layout layout); void onSceneChange(Layout layout);
} }
\ No newline at end of file
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