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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // level of indirection provided by the AwContentsContainer abstraction. | 40 // level of indirection provided by the AwContentsContainer abstraction. |
41 class AwContents : public FindHelper::Listener, | 41 class AwContents : public FindHelper::Listener, |
42 public content::Compositor::Client, | 42 public content::Compositor::Client, |
43 public AwRenderViewHostExt::Client { | 43 public AwRenderViewHostExt::Client { |
44 public: | 44 public: |
45 // Returns the AwContents instance associated with |web_contents|, or NULL. | 45 // Returns the AwContents instance associated with |web_contents|, or NULL. |
46 static AwContents* FromWebContents(content::WebContents* web_contents); | 46 static AwContents* FromWebContents(content::WebContents* web_contents); |
47 | 47 |
48 AwContents(JNIEnv* env, | 48 AwContents(JNIEnv* env, |
49 jobject obj, | 49 jobject obj, |
50 jobject web_contents_delegate, | 50 jobject web_contents_delegate); |
51 bool private_browsing); | |
52 virtual ~AwContents(); | 51 virtual ~AwContents(); |
53 | 52 |
54 void DrawGL(AwDrawGLInfo* draw_info); | 53 void DrawGL(AwDrawGLInfo* draw_info); |
55 bool DrawSW(JNIEnv* env, jobject obj, jobject canvas); | 54 bool DrawSW(JNIEnv* env, jobject obj, jobject canvas); |
56 | 55 |
57 void RunJavaScriptDialog( | 56 void RunJavaScriptDialog( |
58 content::JavaScriptMessageType message_type, | 57 content::JavaScriptMessageType message_type, |
59 const GURL& origin_url, | 58 const GURL& origin_url, |
60 const string16& message_text, | 59 const string16& message_text, |
61 const string16& default_prompt_text, | 60 const string16& default_prompt_text, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 EGLContext last_frame_context_; | 156 EGLContext last_frame_context_; |
158 | 157 |
159 DISALLOW_COPY_AND_ASSIGN(AwContents); | 158 DISALLOW_COPY_AND_ASSIGN(AwContents); |
160 }; | 159 }; |
161 | 160 |
162 bool RegisterAwContents(JNIEnv* env); | 161 bool RegisterAwContents(JNIEnv* env); |
163 | 162 |
164 } // namespace android_webview | 163 } // namespace android_webview |
165 | 164 |
166 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 165 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |