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

Unified Diff: chrome/browser/media/android/router/media_router_dialog_controller_android.h

Issue 1294133002: [Presentation API, MediaRouter] Routing from media sink selection to route creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media-router-discovery-2
Patch Set: Fixed comments and naming and DCHECKs Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/android/router/media_router_dialog_controller_android.h
diff --git a/chrome/browser/media/android/router/media_router_dialog_controller_android.h b/chrome/browser/media/android/router/media_router_dialog_controller_android.h
index c5419269826abca679f6a6430a402091697066ba..bbe4a3f74985942a880cc2dbb188c5963cb604bc 100644
--- a/chrome/browser/media/android/router/media_router_dialog_controller_android.h
+++ b/chrome/browser/media/android/router/media_router_dialog_controller_android.h
@@ -26,6 +26,14 @@ class MediaRouterDialogControllerAndroid
static MediaRouterDialogControllerAndroid* GetOrCreateForWebContents(
content::WebContents* web_contents);
+ // The methods called by the Java counterpart.
+
+ // Notifies the controller that user has selected a sink with |jsink_id|.
+ void OnSinkSelected(JNIEnv* env, jobject obj, jstring jsink_id);
+ // Notifies the controller that the dialog has been dismissed and no device
+ // has been picked.
+ void OnDialogDismissed(JNIEnv* env, jobject obj);
+
private:
friend class content::WebContentsUserData<MediaRouterDialogControllerAndroid>;

Powered by Google App Engine
This is Rietveld 408576698