| 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/browser/aw_contents.h" | 5 #include "android_webview/browser/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_autofill_client.h" | 10 #include "android_webview/browser/aw_autofill_client.h" |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 href, anchor_text, img_src); | 858 href, anchor_text, img_src); |
| 859 } | 859 } |
| 860 | 860 |
| 861 void AwContents::OnSizeChanged(JNIEnv* env, | 861 void AwContents::OnSizeChanged(JNIEnv* env, |
| 862 const JavaParamRef<jobject>& obj, | 862 const JavaParamRef<jobject>& obj, |
| 863 int w, | 863 int w, |
| 864 int h, | 864 int h, |
| 865 int ow, | 865 int ow, |
| 866 int oh) { | 866 int oh) { |
| 867 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 867 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 868 gfx::Size size(w, h); |
| 869 web_contents_->GetNativeView()->OnPhysicalBackingSizeChanged(size); |
| 868 browser_view_renderer_.OnSizeChanged(w, h); | 870 browser_view_renderer_.OnSizeChanged(w, h); |
| 869 } | 871 } |
| 870 | 872 |
| 871 void AwContents::SetViewVisibility(JNIEnv* env, | 873 void AwContents::SetViewVisibility(JNIEnv* env, |
| 872 const JavaParamRef<jobject>& obj, | 874 const JavaParamRef<jobject>& obj, |
| 873 bool visible) { | 875 bool visible) { |
| 874 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 876 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 875 browser_view_renderer_.SetViewVisibility(visible); | 877 browser_view_renderer_.SetViewVisibility(visible); |
| 876 UpdateRendererPriority(); | 878 UpdateRendererPriority(); |
| 877 } | 879 } |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 | 1445 |
| 1444 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id, | 1446 return Java_AwContents_onRenderProcessGoneDetail(env, obj, child_process_id, |
| 1445 crashed); | 1447 crashed); |
| 1446 } | 1448 } |
| 1447 | 1449 |
| 1448 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { | 1450 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { |
| 1449 UpdateRendererPriority(); | 1451 UpdateRendererPriority(); |
| 1450 } | 1452 } |
| 1451 | 1453 |
| 1452 } // namespace android_webview | 1454 } // namespace android_webview |
| OLD | NEW |