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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java

Issue 11351002: Fix ChromiumTestShellTestBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/TabObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
new file mode 100644
index 0000000000000000000000000000000000000000..3d420f847204fea4eb10790235b2102673bbea64
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabObserver.java
@@ -0,0 +1,28 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.chrome.browser;
+
+/**
+ * Observes changes to the {@link TabBase} class. A {@link TabObserver} can observe multiple
+ * {@link TabBase} objects, as the first parameter for each method is the specific {@link TabBase}
+ * that is affected. Additionally, a {@link TabBase} can have multiple {@link TabObserver}s.
+ *
+ * Note that this interface does not expose control methods, only observation methods.
+ */
+public interface TabObserver {
+ /**
+ * Called when the load progress of a {@link TabBase} has changed.
+ * @param tab The notifying {@link TabBase}.
+ * @param progress The new progress amount (from 0 to 100).
+ */
+ public void onLoadProgressChanged(TabBase tab, int progress);
+
+ /**
+ * Called when the URL of a {@link TabBase} has changed.
+ * @param tab The notifying {@link TabBase}.
+ * @param url The new URL.
+ */
+ public void onUpdateUrl(TabBase tab, String url);
+}

Powered by Google App Engine
This is Rietveld 408576698