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

Side by Side Diff: android_webview/native/aw_contents.h

Issue 387113003: Add a content API to create a message channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address mnaganov's comments Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y); 213 void ScrollTo(JNIEnv* env, jobject obj, jint x, jint y);
214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale); 214 void SetDipScale(JNIEnv* env, jobject obj, jfloat dip_scale);
215 void SetSaveFormData(bool enabled); 215 void SetSaveFormData(bool enabled);
216 216
217 // Sets the java client 217 // Sets the java client
218 void SetAwAutofillClient(jobject client); 218 void SetAwAutofillClient(jobject client);
219 219
220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 220 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); 221 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
222 222
223 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
224 jstring message, jstring source_origin, jstring target_origin,
225 jintArray msgPorts);
226 void CreateMessageChannel(JNIEnv* env, jobject obj, jobject callback);
227
223 private: 228 private:
224 void InitDataReductionProxyIfNecessary(); 229 void InitDataReductionProxyIfNecessary();
225 void InitAutofillIfNecessary(bool enabled); 230 void InitAutofillIfNecessary(bool enabled);
226 231
227 void InitializeHardwareDrawIfNeeded(); 232 void InitializeHardwareDrawIfNeeded();
228 void ReleaseHardwareDrawIfNeeded(); 233 void ReleaseHardwareDrawIfNeeded();
229 234
230 // Geolocation API support 235 // Geolocation API support
231 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 236 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
232 void HideGeolocationPrompt(const GURL& origin); 237 void HideGeolocationPrompt(const GURL& origin);
(...skipping 23 matching lines...) Expand all
256 GLViewRendererManager::Key renderer_manager_key_; 261 GLViewRendererManager::Key renderer_manager_key_;
257 262
258 DISALLOW_COPY_AND_ASSIGN(AwContents); 263 DISALLOW_COPY_AND_ASSIGN(AwContents);
259 }; 264 };
260 265
261 bool RegisterAwContents(JNIEnv* env); 266 bool RegisterAwContents(JNIEnv* env);
262 267
263 } // namespace android_webview 268 } // namespace android_webview
264 269
265 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 270 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698