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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/PositionObserver.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.java b/content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.java
index 8f55f2f252752849b10505ad214e40340afc1bd6..552a305b0d383a5a67ee351b1de255483c5813b9 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ViewPositionObserver.java
@@ -99,5 +99,13 @@ public class ViewPositionObserver implements PositionObserver {
notifyListeners();
}
}
+
+ /**
+ * Clears installed listener(s).
+ */
+ @Override
+ public void clearListener() {
+ mListeners.clear();
+ }
}
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/PositionObserver.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698