| OLD | NEW |
| 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 ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_PICTURE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 jint GetHeight(JNIEnv* env, jobject obj); | 28 jint GetHeight(JNIEnv* env, jobject obj); |
| 29 void Draw(JNIEnv* env, jobject obj, jobject canvas, | 29 void Draw(JNIEnv* env, jobject obj, jobject canvas, |
| 30 jint left, jint top, jint right, jint bottom); | 30 jint left, jint top, jint right, jint bottom); |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 skia::RefPtr<SkPicture> picture_; | 33 skia::RefPtr<SkPicture> picture_; |
| 34 | 34 |
| 35 DISALLOW_IMPLICIT_CONSTRUCTORS(AwPicture); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(AwPicture); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 bool RegisterAwPicture(JNIEnv* env); | |
| 39 | |
| 40 } // android_webview | 38 } // android_webview |
| 41 | 39 |
| 42 #endif // ANDROID_WEBVIEW_NATIVE_AW_PICTURE_ | 40 #endif // ANDROID_WEBVIEW_NATIVE_AW_PICTURE_ |
| OLD | NEW |