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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/PositionObserver.java

Issue 407893003: Implement clearListener() method for PositionObserver to clear all registered listeners when Con (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes incorporated Created 6 years, 5 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: content/public/android/java/src/org/chromium/content/browser/PositionObserver.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/PositionObserver.java b/content/public/android/java/src/org/chromium/content/browser/PositionObserver.java
index 1c14d2fc153f7765c2c3ffa2b37184fbe16a549f..8bebe0870042651289dd7df93a6155fd7c451fcf 100644
--- a/content/public/android/java/src/org/chromium/content/browser/PositionObserver.java
+++ b/content/public/android/java/src/org/chromium/content/browser/PositionObserver.java
@@ -34,4 +34,9 @@ public interface PositionObserver {
* Remove a previously installed listener.
*/
void removeListener(Listener listener);
+
+ /**
+ * Clears registerned listener(s).
+ */
+ void clearListener();
}

Powered by Google App Engine
This is Rietveld 408576698