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

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

Issue 136753015: aw: Move clearView implementaiton to native (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalidate to native too Created 6 years, 10 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 jint clip_bottom); 113 jint clip_bottom);
114 void SetGlobalVisibleRect(JNIEnv* env, 114 void SetGlobalVisibleRect(JNIEnv* env,
115 jobject obj, 115 jobject obj,
116 jint visible_left, 116 jint visible_left,
117 jint visible_top, 117 jint visible_top,
118 jint visible_right, 118 jint visible_right,
119 jint visible_bottom); 119 jint visible_bottom);
120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj); 120 jint GetAwDrawGLViewContext(JNIEnv* env, jobject obj);
121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height); 121 jlong CapturePicture(JNIEnv* env, jobject obj, int width, int height);
122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled); 122 void EnableOnNewPicture(JNIEnv* env, jobject obj, jboolean enabled);
123 void ClearView(JNIEnv* env, jobject obj);
123 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj, 124 void SetExtraHeadersForUrl(JNIEnv* env, jobject obj,
124 jstring url, jstring extra_headers); 125 jstring url, jstring extra_headers);
125 126
126 // Geolocation API support 127 // Geolocation API support
127 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>); 128 void ShowGeolocationPrompt(const GURL& origin, base::Callback<void(bool)>);
128 void HideGeolocationPrompt(const GURL& origin); 129 void HideGeolocationPrompt(const GURL& origin);
129 void InvokeGeolocationCallback(JNIEnv* env, 130 void InvokeGeolocationCallback(JNIEnv* env,
130 jobject obj, 131 jobject obj,
131 jboolean value, 132 jboolean value,
132 jstring origin); 133 jstring origin);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 std::list<OriginCallback> pending_geolocation_prompts_; 210 std::list<OriginCallback> pending_geolocation_prompts_;
210 211
211 DISALLOW_COPY_AND_ASSIGN(AwContents); 212 DISALLOW_COPY_AND_ASSIGN(AwContents);
212 }; 213 };
213 214
214 bool RegisterAwContents(JNIEnv* env); 215 bool RegisterAwContents(JNIEnv* env);
215 216
216 } // namespace android_webview 217 } // namespace android_webview
217 218
218 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 219 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AwContents.java ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698