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 28 matching lines...) Expand all Loading... |
39 // WebView functionality; analogous to chrome's TabContents, but with a | 39 // WebView functionality; analogous to chrome's TabContents, but with a |
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: | 43 public: |
44 // Returns the AwContents instance associated with |web_contents|, or NULL. | 44 // Returns the AwContents instance associated with |web_contents|, or NULL. |
45 static AwContents* FromWebContents(content::WebContents* web_contents); | 45 static AwContents* FromWebContents(content::WebContents* web_contents); |
46 | 46 |
47 AwContents(JNIEnv* env, | 47 AwContents(JNIEnv* env, |
48 jobject obj, | 48 jobject obj, |
49 jobject web_contents_delegate, | 49 jobject web_contents_delegate); |
50 bool private_browsing); | |
51 virtual ~AwContents(); | 50 virtual ~AwContents(); |
52 | 51 |
53 void DrawGL(AwDrawGLInfo* draw_info); | 52 void DrawGL(AwDrawGLInfo* draw_info); |
54 bool DrawSW(JNIEnv* env, jobject obj, jobject canvas); | 53 bool DrawSW(JNIEnv* env, jobject obj, jobject canvas); |
55 | 54 |
56 void RunJavaScriptDialog( | 55 void RunJavaScriptDialog( |
57 content::JavaScriptMessageType message_type, | 56 content::JavaScriptMessageType message_type, |
58 const GURL& origin_url, | 57 const GURL& origin_url, |
59 const string16& message_text, | 58 const string16& message_text, |
60 const string16& default_prompt_text, | 59 const string16& default_prompt_text, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 EGLContext last_frame_context_; | 152 EGLContext last_frame_context_; |
154 | 153 |
155 DISALLOW_COPY_AND_ASSIGN(AwContents); | 154 DISALLOW_COPY_AND_ASSIGN(AwContents); |
156 }; | 155 }; |
157 | 156 |
158 bool RegisterAwContents(JNIEnv* env); | 157 bool RegisterAwContents(JNIEnv* env); |
159 | 158 |
160 } // namespace android_webview | 159 } // namespace android_webview |
161 | 160 |
162 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 161 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
OLD | NEW |