Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: android_webview/native/aw_contents.cc

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no client Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 href, anchor_text, img_src); 860 href, anchor_text, img_src);
861 } 861 }
862 862
863 void AwContents::OnSizeChanged(JNIEnv* env, 863 void AwContents::OnSizeChanged(JNIEnv* env,
864 const JavaParamRef<jobject>& obj, 864 const JavaParamRef<jobject>& obj,
865 int w, 865 int w,
866 int h, 866 int h,
867 int ow, 867 int ow,
868 int oh) { 868 int oh) {
869 DCHECK_CURRENTLY_ON(BrowserThread::UI); 869 DCHECK_CURRENTLY_ON(BrowserThread::UI);
870 gfx::Size size(w, h);
871 web_contents_->GetNativeView()->OnPhysicalBackingSizeChanged(size);
870 browser_view_renderer_.OnSizeChanged(w, h); 872 browser_view_renderer_.OnSizeChanged(w, h);
871 } 873 }
872 874
873 void AwContents::SetViewVisibility(JNIEnv* env, 875 void AwContents::SetViewVisibility(JNIEnv* env,
874 const JavaParamRef<jobject>& obj, 876 const JavaParamRef<jobject>& obj,
875 bool visible) { 877 bool visible) {
876 DCHECK_CURRENTLY_ON(BrowserThread::UI); 878 DCHECK_CURRENTLY_ON(BrowserThread::UI);
877 browser_view_renderer_.SetViewVisibility(visible); 879 browser_view_renderer_.SetViewVisibility(visible);
878 UpdateRendererPriority(); 880 UpdateRendererPriority();
879 } 881 }
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 1451
1450 return Java_AwContents_onRenderProcessGoneDetail(env, obj, 1452 return Java_AwContents_onRenderProcessGoneDetail(env, obj,
1451 child_process_id, crashed); 1453 child_process_id, crashed);
1452 } 1454 }
1453 1455
1454 void AwContents::RenderProcessReady(content::RenderProcessHost* host) { 1456 void AwContents::RenderProcessReady(content::RenderProcessHost* host) {
1455 UpdateRendererPriority(); 1457 UpdateRendererPriority();
1456 } 1458 }
1457 1459
1458 } // namespace android_webview 1460 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698