| 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();
|
| +}
|
|
|