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 <limits> | 7 #include <limits> |
8 | 8 |
9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); | 767 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
768 if (!obj.is_null()) | 768 if (!obj.is_null()) |
769 Java_AwContents_postInvalidateOnAnimation(env, obj.obj()); | 769 Java_AwContents_postInvalidateOnAnimation(env, obj.obj()); |
770 } | 770 } |
771 | 771 |
772 void AwContents::UpdateParentDrawConstraints() { | 772 void AwContents::UpdateParentDrawConstraints() { |
773 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 773 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
774 browser_view_renderer_.UpdateParentDrawConstraints(); | 774 browser_view_renderer_.UpdateParentDrawConstraints(); |
775 } | 775 } |
776 | 776 |
| 777 void AwContents::DidSkipCommitFrame() { |
| 778 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 779 browser_view_renderer_.DidSkipCommitFrame(); |
| 780 } |
| 781 |
777 void AwContents::OnNewPicture() { | 782 void AwContents::OnNewPicture() { |
778 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 783 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
779 JNIEnv* env = AttachCurrentThread(); | 784 JNIEnv* env = AttachCurrentThread(); |
780 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); | 785 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
781 if (!obj.is_null()) { | 786 if (!obj.is_null()) { |
782 devtools_instrumentation::ScopedEmbedderCallbackTask embedder_callback( | 787 devtools_instrumentation::ScopedEmbedderCallbackTask embedder_callback( |
783 "onNewPicture"); | 788 "onNewPicture"); |
784 Java_AwContents_onNewPicture(env, obj.obj()); | 789 Java_AwContents_onNewPicture(env, obj.obj()); |
785 } | 790 } |
786 } | 791 } |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 } | 1173 } |
1169 | 1174 |
1170 browser_view_renderer_.TrimMemory(level, visible); | 1175 browser_view_renderer_.TrimMemory(level, visible); |
1171 } | 1176 } |
1172 | 1177 |
1173 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { | 1178 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { |
1174 g_should_download_favicons = true; | 1179 g_should_download_favicons = true; |
1175 } | 1180 } |
1176 | 1181 |
1177 } // namespace android_webview | 1182 } // namespace android_webview |
OLD | NEW |