OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/android/web_contents_observer_proxy.h" | 5 #include "content/browser/android/web_contents_observer_proxy.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
286 Java_WebContentsObserverProxy_didStartNavigationToPendingEntry( | 286 Java_WebContentsObserverProxy_didStartNavigationToPendingEntry( |
287 env, obj.obj(), jstring_url.obj()); | 287 env, obj.obj(), jstring_url.obj()); |
288 } | 288 } |
289 | 289 |
290 void WebContentsObserverProxy::MediaSessionStateChanged(bool is_controllable, | 290 void WebContentsObserverProxy::MediaSessionStateChanged(bool is_controllable, |
291 bool is_suspended) { | 291 bool is_suspended) { |
292 JNIEnv* env = AttachCurrentThread(); | 292 JNIEnv* env = AttachCurrentThread(); |
293 | 293 |
294 ScopedJavaLocalRef<jobject> obj(java_observer_); | 294 ScopedJavaLocalRef<jobject> obj(java_observer_); |
295 | 295 |
296 // TODO(philipj): This is where we cross from content/ to chrome/, i.e. where | |
297 // Chrome and Opera will have different UIs. Need to send all relevant | |
298 // information here, i.e. the metadata for Blink-created media sessions, and | |
299 // the tab title and other information for the default media session. | |
mlamouri (slow - plz ping)
2015/08/24 12:55:24
tab title should be available from WebContents. I
whywhat
2015/08/24 14:39:18
It might make sense to send media session metadata
philipj_slow
2015/08/26 07:39:48
Right, when I wrote this comment, I was thinking t
| |
296 Java_WebContentsObserverProxy_mediaSessionStateChanged( | 300 Java_WebContentsObserverProxy_mediaSessionStateChanged( |
297 env, obj.obj(), is_controllable, is_suspended); | 301 env, obj.obj(), is_controllable, is_suspended); |
298 } | 302 } |
299 | 303 |
300 bool RegisterWebContentsObserverProxy(JNIEnv* env) { | 304 bool RegisterWebContentsObserverProxy(JNIEnv* env) { |
301 return RegisterNativesImpl(env); | 305 return RegisterNativesImpl(env); |
302 } | 306 } |
303 } // namespace content | 307 } // namespace content |
OLD | NEW |