| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 void RequestNewHitTestDataAt(JNIEnv* env, jobject obj, jint x, jint y); | 92 void RequestNewHitTestDataAt(JNIEnv* env, jobject obj, jint x, jint y); |
| 93 void UpdateLastHitTestData(JNIEnv* env, jobject obj); | 93 void UpdateLastHitTestData(JNIEnv* env, jobject obj); |
| 94 void OnSizeChanged(JNIEnv* env, jobject obj, int w, int h, int ow, int oh); | 94 void OnSizeChanged(JNIEnv* env, jobject obj, int w, int h, int ow, int oh); |
| 95 void SetVisibility(JNIEnv* env, jobject obj, bool visible); | 95 void SetVisibility(JNIEnv* env, jobject obj, bool visible); |
| 96 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); | 96 void OnAttachedToWindow(JNIEnv* env, jobject obj, int w, int h); |
| 97 void OnDetachedFromWindow(JNIEnv* env, jobject obj); | 97 void OnDetachedFromWindow(JNIEnv* env, jobject obj); |
| 98 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( | 98 base::android::ScopedJavaLocalRef<jbyteArray> GetOpaqueState( |
| 99 JNIEnv* env, jobject obj); | 99 JNIEnv* env, jobject obj); |
| 100 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); | 100 jboolean RestoreFromOpaqueState(JNIEnv* env, jobject obj, jbyteArray state); |
| 101 void FocusFirstNode(JNIEnv* env, jobject obj); | 101 void FocusFirstNode(JNIEnv* env, jobject obj); |
| 102 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color); |
| 102 bool OnDraw(JNIEnv* env, | 103 bool OnDraw(JNIEnv* env, |
| 103 jobject obj, | 104 jobject obj, |
| 104 jobject canvas, | 105 jobject canvas, |
| 105 jboolean is_hardware_accelerated, | 106 jboolean is_hardware_accelerated, |
| 106 jint scroll_x, | 107 jint scroll_x, |
| 107 jint scroll_y, | 108 jint scroll_y, |
| 108 jint clip_left, | 109 jint clip_left, |
| 109 jint clip_top, | 110 jint clip_top, |
| 110 jint clip_right, | 111 jint clip_right, |
| 111 jint clip_bottom); | 112 jint clip_bottom); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 std::list<OriginCallback> pending_geolocation_prompts_; | 188 std::list<OriginCallback> pending_geolocation_prompts_; |
| 188 | 189 |
| 189 DISALLOW_COPY_AND_ASSIGN(AwContents); | 190 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 190 }; | 191 }; |
| 191 | 192 |
| 192 bool RegisterAwContents(JNIEnv* env); | 193 bool RegisterAwContents(JNIEnv* env); |
| 193 | 194 |
| 194 } // namespace android_webview | 195 } // namespace android_webview |
| 195 | 196 |
| 196 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 197 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |