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

Unified Diff: blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpContents.java

Issue 2059443002: Java versions of BlimpContents[,Observer] and BlimpNavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-with-blimp
Patch Set: git merge origin/master - track master Created 4 years, 6 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: blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpContents.java
diff --git a/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpContents.java b/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpContents.java
new file mode 100644
index 0000000000000000000000000000000000000000..1760bfc0991b01b05aeedf4a8488ab0b0fe1b109
--- /dev/null
+++ b/blimp/client/core/public/android/java/src/org/chromium/blimp/core_public/BlimpContents.java
@@ -0,0 +1,37 @@
+// Copyright 2016 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.blimp.core_public;
+
+/**
+ * BlimpContents is the Java representation of a native BlimpContents object.
+ *
+ * BlimpContents is the core class in //blimp/client/core. It renders web pages from an engine in a
+ * rectangular area. It enables callers to control the blimp engine through the use of the
+ * navigation controller.
+ */
+public interface BlimpContents {
+ /**
+ * Retrives the {@link BlimpNavigationController} that controls all navigation related
+ * to this BlimpContents.
+ */
+ BlimpNavigationController getNavigationController();
+
+ /**
+ * Adds an observer to this BlimpContents.
+ */
+ void addObserver(BlimpContentsObserver observer);
+
+ /**
+ * Removes an observer from this BlimpContents.
+ */
+ void removeObserver(BlimpContentsObserver observer);
+
+ /**
+ * For BlimpContents that are owned by Java, i.e. created by the
+ * {@link org.chromium.blimp.core.BlimpContentsFactory}, this must be called before this
+ * BlimpContents is garbage collected.
+ */
+ void destroy();
+}

Powered by Google App Engine
This is Rietveld 408576698