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

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

Issue 22035002: Android WebView: Make a custom Picture subclass (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: endRecording is OK Created 7 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 | 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 jint clip_top, 110 jint clip_top,
111 jint clip_right, 111 jint clip_right,
112 jint clip_bottom); 112 jint clip_bottom);
113 void SetGlobalVisibleRect(JNIEnv* env, 113 void SetGlobalVisibleRect(JNIEnv* env,
114 jobject obj, 114 jobject obj,
115 jint visible_left, 115 jint visible_left,
116 jint visible_top, 116 jint visible_top,
117 jint visible_right, 117 jint visible_right,
118 jint visible_bottom); 118 jint visible_bottom);
119 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj); 119 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj);
120 base::android::ScopedJavaLocalRef<jobject> CapturePicture(JNIEnv* env, 120 jint CapturePicture(JNIEnv* env, jobject obj, int width, int height);
121 jobject obj,
122 int width,
123 int height);
124 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); 121 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled);
125 122
126 // Geolocation API support 123 // Geolocation API support
127 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 124 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
128 void HideGeolocationPrompt(const GURL& origin); 125 void HideGeolocationPrompt(const GURL& origin);
129 void InvokeGeolocationCallback(JNIEnv* env, 126 void InvokeGeolocationCallback(JNIEnv* env,
130 jobject obj, 127 jobject obj,
131 jboolean value, 128 jboolean value,
132 jstring origin); 129 jstring origin);
133 130
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 std::list<OriginCallback> pending_geolocation_prompts_; 192 std::list<OriginCallback> pending_geolocation_prompts_;
196 193
197 DISALLOW_COPY_AND_ASSIGN(AwContents); 194 DISALLOW_COPY_AND_ASSIGN(AwContents);
198 }; 195 };
199 196
200 bool RegisterAwContents(JNIEnv* env); 197 bool RegisterAwContents(JNIEnv* env);
201 198
202 } // namespace android_webview 199 } // namespace android_webview
203 200
204 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 201 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/native/android_webview_jni_registrar.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698