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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java

Issue 1738803004: Add methods to SceneOverlay interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make sure super.handlesTabCreating is run Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java
index 79648802cf39e3ce21e86fac0eca4c0100e4fb75..be165a9d4c766f485f75c709ca3aa49ed2d6f517 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/overlays/SceneOverlay.java
@@ -62,6 +62,22 @@ public interface SceneOverlay {
boolean updateOverlay(long time, long dt);
/**
+ * Notification that the system back button was pressed.
+ * @return True if system back button press was consumed by this overlay.
+ */
+ boolean onBackPressed();
+
+ /**
+ * A notification to the overlay that the containing layout is being hidden.
+ */
+ void onHideLayout();
+
+ /**
+ * @return True if this overlay handles tab creation.
+ */
+ boolean handlesTabCreating();
+
+ /**
* Notify the a title has changed.
*
* @param tabId The id of the tab that has changed.

Powered by Google App Engine
This is Rietveld 408576698