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

Side by Side Diff: content/browser/web_contents/web_contents_android.h

Issue 1159113006: [Android] A prototype of the interactive media notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved OnMediaSessionStateChanged to WebContentsImpl Created 5 years, 5 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 jint level, 89 jint level,
90 jstring message); 90 jstring message);
91 91
92 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj); 92 jboolean HasAccessedInitialDocument(JNIEnv* env, jobject jobj);
93 93
94 jint GetThemeColor(JNIEnv* env, jobject obj); 94 jint GetThemeColor(JNIEnv* env, jobject obj);
95 95
96 void RequestAccessibilitySnapshot(JNIEnv* env, 96 void RequestAccessibilitySnapshot(JNIEnv* env,
97 jobject obj, 97 jobject obj,
98 jobject callback); 98 jobject callback);
99
100 void ResumeMediaSession(JNIEnv* env, jobject obj);
101 void SuspendMediaSession(JNIEnv* env, jobject obj);
102
99 private: 103 private:
100 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid(); 104 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid();
101 105
102 WebContents* web_contents_; 106 WebContents* web_contents_;
103 NavigationControllerAndroid navigation_controller_; 107 NavigationControllerAndroid navigation_controller_;
104 base::android::ScopedJavaGlobalRef<jobject> obj_; 108 base::android::ScopedJavaGlobalRef<jobject> obj_;
105 109
106 base::WeakPtrFactory<WebContentsAndroid> weak_factory_; 110 base::WeakPtrFactory<WebContentsAndroid> weak_factory_;
107 111
108 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid); 112 DISALLOW_COPY_AND_ASSIGN(WebContentsAndroid);
109 }; 113 };
110 114
111 } // namespace content 115 } // namespace content
112 116
113 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_ 117 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/media/android/media_session_browsertest.cc ('k') | content/browser/web_contents/web_contents_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698