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

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.cc

Issue 418883002: Simplify wrap_contents mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/renderer_host/aw_render_view_host_ext.h" 5 #include "android_webview/browser/renderer_host/aw_render_view_host_ext.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/scoped_allow_wait_for_legacy_web_view_api.h" 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
9 #include "android_webview/common/render_view_messages.h" 9 #include "android_webview/common/render_view_messages.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const { 67 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const {
68 DCHECK(CalledOnValidThread()); 68 DCHECK(CalledOnValidThread());
69 return last_hit_test_data_; 69 return last_hit_test_data_;
70 } 70 }
71 71
72 void AwRenderViewHostExt::SetTextZoomFactor(float factor) { 72 void AwRenderViewHostExt::SetTextZoomFactor(float factor) {
73 DCHECK(CalledOnValidThread()); 73 DCHECK(CalledOnValidThread());
74 Send(new AwViewMsg_SetTextZoomFactor(web_contents()->GetRoutingID(), factor)); 74 Send(new AwViewMsg_SetTextZoomFactor(web_contents()->GetRoutingID(), factor));
75 } 75 }
76 76
77 void AwRenderViewHostExt::SetFixedLayoutSize(const gfx::Size& size) {
78 DCHECK(CalledOnValidThread());
79 Send(new AwViewMsg_SetFixedLayoutSize(web_contents()->GetRoutingID(), size));
80 }
81
82 void AwRenderViewHostExt::ResetScrollAndScaleState() { 77 void AwRenderViewHostExt::ResetScrollAndScaleState() {
83 DCHECK(CalledOnValidThread()); 78 DCHECK(CalledOnValidThread());
84 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID())); 79 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID()));
85 } 80 }
86 81
87 void AwRenderViewHostExt::SetInitialPageScale(double page_scale_factor) { 82 void AwRenderViewHostExt::SetInitialPageScale(double page_scale_factor) {
88 DCHECK(CalledOnValidThread()); 83 DCHECK(CalledOnValidThread());
89 Send(new AwViewMsg_SetInitialPageScale(web_contents()->GetRoutingID(), 84 Send(new AwViewMsg_SetInitialPageScale(web_contents()->GetRoutingID(),
90 page_scale_factor)); 85 page_scale_factor));
91 } 86 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { 168 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) {
174 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); 169 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor);
175 } 170 }
176 171
177 void AwRenderViewHostExt::OnContentsSizeChanged( 172 void AwRenderViewHostExt::OnContentsSizeChanged(
178 const gfx::Size& contents_size) { 173 const gfx::Size& contents_size) {
179 client_->OnWebLayoutContentsSizeChanged(contents_size); 174 client_->OnWebLayoutContentsSizeChanged(contents_size);
180 } 175 }
181 176
182 } // namespace android_webview 177 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/renderer_host/aw_render_view_host_ext.h ('k') | android_webview/common/render_view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698