| Index: blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java
|
| diff --git a/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java b/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..df5134022dd7d741334eacb8fbfaae6f43cb8c13
|
| --- /dev/null
|
| +++ b/blimp/client/core/android/java/src/org/chromium/blimp/core/BlimpContentsFactory.java
|
| @@ -0,0 +1,27 @@
|
| +// 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;
|
| +
|
| +import org.chromium.base.annotations.JNINamespace;
|
| +import org.chromium.blimp.core_public.BlimpContents;
|
| +
|
| +/**
|
| + * This factory creates BlimpContents objects and the associated native counterpart.
|
| + */
|
| +@JNINamespace("blimp::client")
|
| +public final class BlimpContentsFactory {
|
| + // Don't instantiate me.
|
| + private BlimpContentsFactory() {}
|
| +
|
| + /**
|
| + * A factory method to build a {@link BlimpContents} object.
|
| + * @return A newly created {@link BlimpContents} object.
|
| + */
|
| + public static BlimpContents createBlimpContents() {
|
| + return nativeCreateBlimpContents();
|
| + }
|
| +
|
| + private static native BlimpContents nativeCreateBlimpContents();
|
| +}
|
|
|