| 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_factory_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" |
| (...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 773 return reinterpret_cast<jint>(new AwPicture( | 773 return reinterpret_cast<jint>(new AwPicture( |
| 774 browser_view_renderer_->CapturePicture(width, height))); | 774 browser_view_renderer_->CapturePicture(width, height))); |
| 775 } | 775 } |
| 776 | 776 |
| 777 void AwContents::EnableOnNewPicture(JNIEnv* env, | 777 void AwContents::EnableOnNewPicture(JNIEnv* env, |
| 778 jobject obj, | 778 jobject obj, |
| 779 jboolean enabled) { | 779 jboolean enabled) { |
| 780 browser_view_renderer_->EnableOnNewPicture(enabled); | 780 browser_view_renderer_->EnableOnNewPicture(enabled); |
| 781 } | 781 } |
| 782 | 782 |
| 783 void AwContents::SetJsOnlineProperty(JNIEnv* env, |
| 784 jobject obj, |
| 785 jboolean network_up) { |
| 786 render_view_host_ext_->SetJsOnlineProperty(network_up); |
| 787 } |
| 788 |
| 783 } // namespace android_webview | 789 } // namespace android_webview |
| OLD | NEW |