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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "android_webview/browser/aw_browser_context.h" | 10 #include "android_webview/browser/aw_browser_context.h" |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 web_contents_->FocusThroughTabTraversal(false); | 1006 web_contents_->FocusThroughTabTraversal(false); |
1007 } | 1007 } |
1008 | 1008 |
1009 void AwContents::SetBackgroundColor(JNIEnv* env, | 1009 void AwContents::SetBackgroundColor(JNIEnv* env, |
1010 const JavaParamRef<jobject>& obj, | 1010 const JavaParamRef<jobject>& obj, |
1011 jint color) { | 1011 jint color) { |
1012 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1012 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1013 render_view_host_ext_->SetBackgroundColor(color); | 1013 render_view_host_ext_->SetBackgroundColor(color); |
1014 } | 1014 } |
1015 | 1015 |
| 1016 void AwContents::SynchronizeRendererScroll( |
| 1017 JNIEnv* env, |
| 1018 const base::android::JavaParamRef<jobject>& obj) { |
| 1019 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1020 browser_view_renderer_.SynchronizeRendererScroll(); |
| 1021 } |
| 1022 |
1016 void AwContents::OnComputeScroll(JNIEnv* env, | 1023 void AwContents::OnComputeScroll(JNIEnv* env, |
1017 const JavaParamRef<jobject>& obj, | 1024 const JavaParamRef<jobject>& obj, |
1018 jlong animation_time_millis) { | 1025 jlong animation_time_millis) { |
1019 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1026 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1020 browser_view_renderer_.OnComputeScroll( | 1027 browser_view_renderer_.OnComputeScroll( |
1021 base::TimeTicks() + | 1028 base::TimeTicks() + |
1022 base::TimeDelta::FromMilliseconds(animation_time_millis)); | 1029 base::TimeDelta::FromMilliseconds(animation_time_millis)); |
1023 } | 1030 } |
1024 | 1031 |
1025 jlong AwContents::ReleasePopupAwContents(JNIEnv* env, | 1032 jlong AwContents::ReleasePopupAwContents(JNIEnv* env, |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 const JavaParamRef<jobject>& obj) { | 1309 const JavaParamRef<jobject>& obj) { |
1303 web_contents_->ResumeLoadingCreatedWebContents(); | 1310 web_contents_->ResumeLoadingCreatedWebContents(); |
1304 } | 1311 } |
1305 | 1312 |
1306 void SetShouldDownloadFavicons(JNIEnv* env, | 1313 void SetShouldDownloadFavicons(JNIEnv* env, |
1307 const JavaParamRef<jclass>& jclazz) { | 1314 const JavaParamRef<jclass>& jclazz) { |
1308 g_should_download_favicons = true; | 1315 g_should_download_favicons = true; |
1309 } | 1316 } |
1310 | 1317 |
1311 } // namespace android_webview | 1318 } // namespace android_webview |
OLD | NEW |