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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/ClientExtension.java

Issue 451973002: Capabilities + Extensions + Cast Host Extension Support for Android client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor Fix Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chromoting;
6
7 import android.app.Activity;
8
9 /**
10 * Interface to extend the Android client's functionality by providing a way to communicate with
11 * the Chromoting host.
12 */
13 public interface ClientExtension {
14
15 /** Returns the capability supported by this extension, or an empty string. */
16 public String getCapability();
17
18 /**
19 * Called when the client receives an extension message from the host throug h JniInterface. It
20 * returns true if the message was handled appropriately, and false otherwis e.
21 */
22 public boolean onExtensionMessage(String type, String data);
23
24 /**
25 * Called when an activity offers to accept an ActivityListener for its life cycle events.
26 * This gives Extensions the option to hook into an existing Activity, get n otified about
27 * changes in its state and modify its behavior. Returns the extension's act ivity listener,
28 * or null.
29 */
30 public ActivityLifecycleListener onActivityAcceptingListener(Activity activi ty);
31
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698