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

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

Issue 10702083: Add ContentViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 8 years, 3 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 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 23 matching lines...) Expand all
34 AwContents(JNIEnv* env, 34 AwContents(JNIEnv* env,
35 jobject obj, 35 jobject obj,
36 jobject web_contents_delegate, 36 jobject web_contents_delegate,
37 bool private_browsing); 37 bool private_browsing);
38 ~AwContents(); 38 ~AwContents();
39 39
40 // Methods called from Java. 40 // Methods called from Java.
41 jint GetWebContents(JNIEnv* env, jobject obj); 41 jint GetWebContents(JNIEnv* env, jobject obj);
42 void Destroy(JNIEnv* env, jobject obj); 42 void Destroy(JNIEnv* env, jobject obj);
43 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message); 43 void DocumentHasImages(JNIEnv* env, jobject obj, jobject message);
44 void SetIoThreadClient(JNIEnv* env, jobject obj, jobject client);
44 45
45 private: 46 private:
46 JavaObjectWeakGlobalRef java_ref_; 47 JavaObjectWeakGlobalRef java_ref_;
47 scoped_ptr<AwContentsContainer> contents_container_; 48 scoped_ptr<AwContentsContainer> contents_container_;
48 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 49 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
49 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 50 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(AwContents); 52 DISALLOW_COPY_AND_ASSIGN(AwContents);
52 }; 53 };
53 54
54 bool RegisterAwContents(JNIEnv* env); 55 bool RegisterAwContents(JNIEnv* env);
55 56
56 } // namespace android_webview 57 } // namespace android_webview
57 58
58 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 59 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698