Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_ | |
| 6 #define ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_ | |
| 7 | |
| 8 #include "android_webview/browser/view_renderer_impl.h" | |
| 9 #include "base/android/scoped_java_ref.h" | |
| 10 | |
| 11 namespace android_webview { | |
| 12 | |
| 13 // Native side of java-class of same name. | |
| 14 // Provides utility methods for rendering involving with Java objects. | |
| 15 class RenderHelper : public ViewRendererImpl::JavaHelper { | |
| 16 public: | |
| 17 RenderHelper(); | |
| 18 virtual ~RenderHelper(); | |
| 19 | |
| 20 // ViewRendererImpl::JavaHelper implementation. | |
| 21 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap( | |
| 22 JNIEnv* env, int width, int height) OVERRIDE; | |
|
benm (inactive)
2013/01/21 20:34:49
nit: indent
Leandro Graciá Gil
2013/01/22 08:18:46
Done.
| |
| 23 virtual void DrawBitmapIntoCanvas(JNIEnv* env, | |
| 24 jobject jbitmap, | |
| 25 jobject jcanvas) OVERRIDE; | |
|
mkosiba (inactive)
2013/01/22 02:13:34
again.. ScopedJava..Ref nit.
Leandro Graciá Gil
2013/01/22 08:18:46
Done.
| |
| 26 virtual base::android::ScopedJavaLocalRef<jobject> RecordRasterizedBitmap( | |
| 27 JNIEnv* env, jobject jbitmap) OVERRIDE; | |
| 28 }; | |
| 29 | |
| 30 bool RegisterRenderHelper(JNIEnv* env); | |
| 31 | |
| 32 } // namespace android_webview | |
| 33 | |
| 34 #endif // ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_ | |
| OLD | NEW |