OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "android_webview/native/aw_contents.h" | 5 #include "android_webview/native/aw_contents.h" |
6 | 6 |
7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
8 #include "android_webview/browser/aw_browser_main_parts.h" | 8 #include "android_webview/browser/aw_browser_main_parts.h" |
9 #include "android_webview/browser/gpu_memory_buffer_impl.h" | 9 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" |
10 #include "android_webview/browser/in_process_view_renderer.h" | 10 #include "android_webview/browser/in_process_view_renderer.h" |
11 #include "android_webview/browser/net_disk_cache_remover.h" | 11 #include "android_webview/browser/net_disk_cache_remover.h" |
12 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" | 12 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" |
13 #include "android_webview/common/aw_hit_test_data.h" | 13 #include "android_webview/common/aw_hit_test_data.h" |
14 #include "android_webview/native/aw_autofill_manager_delegate.h" | 14 #include "android_webview/native/aw_autofill_manager_delegate.h" |
15 #include "android_webview/native/aw_browser_dependency_factory.h" | 15 #include "android_webview/native/aw_browser_dependency_factory.h" |
16 #include "android_webview/native/aw_contents_client_bridge.h" | 16 #include "android_webview/native/aw_contents_client_bridge.h" |
17 #include "android_webview/native/aw_contents_io_thread_client_impl.h" | 17 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
18 #include "android_webview/native/aw_web_contents_delegate.h" | 18 #include "android_webview/native/aw_web_contents_delegate.h" |
19 #include "android_webview/native/java_browser_view_renderer_helper.h" | 19 #include "android_webview/native/java_browser_view_renderer_helper.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // subsequent SetJavaPeers() call. | 246 // subsequent SetJavaPeers() call. |
247 return reinterpret_cast<jint>(new AwContents(web_contents.Pass())); | 247 return reinterpret_cast<jint>(new AwContents(web_contents.Pass())); |
248 } | 248 } |
249 | 249 |
250 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, jint function_table) { | 250 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, jint function_table) { |
251 BrowserViewRenderer::SetAwDrawSWFunctionTable( | 251 BrowserViewRenderer::SetAwDrawSWFunctionTable( |
252 reinterpret_cast<AwDrawSWFunctionTable*>(function_table)); | 252 reinterpret_cast<AwDrawSWFunctionTable*>(function_table)); |
253 } | 253 } |
254 | 254 |
255 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, jint function_table) { | 255 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, jint function_table) { |
256 GpuMemoryBufferImpl::SetAwDrawGLFunctionTable( | 256 GpuMemoryBufferFactoryImpl::SetAwDrawGLFunctionTable( |
257 reinterpret_cast<AwDrawGLFunctionTable*>(function_table)); | 257 reinterpret_cast<AwDrawGLFunctionTable*>(function_table)); |
258 } | 258 } |
259 | 259 |
260 static jint GetAwDrawGLFunction(JNIEnv* env, jclass) { | 260 static jint GetAwDrawGLFunction(JNIEnv* env, jclass) { |
261 return reinterpret_cast<jint>(&DrawGLFunction); | 261 return reinterpret_cast<jint>(&DrawGLFunction); |
262 } | 262 } |
263 | 263 |
264 // static | 264 // static |
265 jint GetNativeInstanceCount(JNIEnv* env, jclass) { | 265 jint GetNativeInstanceCount(JNIEnv* env, jclass) { |
266 return base::subtle::NoBarrier_Load(&g_instance_count); | 266 return base::subtle::NoBarrier_Load(&g_instance_count); |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 return browser_view_renderer_->CapturePicture(); | 740 return browser_view_renderer_->CapturePicture(); |
741 } | 741 } |
742 | 742 |
743 void AwContents::EnableOnNewPicture(JNIEnv* env, | 743 void AwContents::EnableOnNewPicture(JNIEnv* env, |
744 jobject obj, | 744 jobject obj, |
745 jboolean enabled) { | 745 jboolean enabled) { |
746 browser_view_renderer_->EnableOnNewPicture(enabled); | 746 browser_view_renderer_->EnableOnNewPicture(enabled); |
747 } | 747 } |
748 | 748 |
749 } // namespace android_webview | 749 } // namespace android_webview |
OLD | NEW |