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

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

Issue 12041009: [Android WebView] Migrate the rendering code to a separate set of classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload error, re-uploading. Created 7 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
(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_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
6 #define ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
7
8 #include "android_webview/browser/browser_view_renderer.h"
9 #include "base/android/scoped_java_ref.h"
10 #include "base/compiler_specific.h"
11
12 namespace android_webview {
13
14 // Native side of java-class of same name.
15 // Provides utility methods for rendering involving with Java objects.
16 class JavaBrowserViewRendererHelper : public BrowserViewRenderer::JavaHelper {
17 public:
18 JavaBrowserViewRendererHelper();
19 virtual ~JavaBrowserViewRendererHelper();
20
21 // BrowserViewRenderer::JavaHelper implementation.
22 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap(
23 JNIEnv* env,
24 int width,
25 int height) OVERRIDE;
26 virtual void DrawBitmapIntoCanvas(
27 JNIEnv* env,
28 const base::android::JavaRef<jobject>& jbitmap,
29 const base::android::JavaRef<jobject>& jcanvas) OVERRIDE;
30 virtual base::android::ScopedJavaLocalRef<jobject> RecordBitmapIntoPicture(
31 JNIEnv* env,
32 const base::android::JavaRef<jobject>& jbitmap) OVERRIDE;
33 };
34
35 bool RegisterJavaBrowserViewRendererHelper(JNIEnv* env);
36
37 } // namespace android_webview
38
39 #endif // ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/native/java_browser_view_renderer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698