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

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

Issue 14234002: [Android WebView] Never turn off viewport and fixed layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Jonathan's comment addressed Created 7 years, 8 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 Send(new AwViewMsg_DoHitTest(web_contents()->GetRoutingID(), 56 Send(new AwViewMsg_DoHitTest(web_contents()->GetRoutingID(),
57 view_x, 57 view_x,
58 view_y)); 58 view_y));
59 } 59 }
60 60
61 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const { 61 const AwHitTestData& AwRenderViewHostExt::GetLastHitTestData() const {
62 DCHECK(CalledOnValidThread()); 62 DCHECK(CalledOnValidThread());
63 return last_hit_test_data_; 63 return last_hit_test_data_;
64 } 64 }
65 65
66 void AwRenderViewHostExt::SetEnableFixedLayoutMode(bool enable) {
67 DCHECK(CalledOnValidThread());
68 Send(new AwViewMsg_SetEnableFixedLayoutMode(web_contents()->GetRoutingID(),
69 enable));
70 }
71
72 void AwRenderViewHostExt::SetTextZoomLevel(double level) { 66 void AwRenderViewHostExt::SetTextZoomLevel(double level) {
73 DCHECK(CalledOnValidThread()); 67 DCHECK(CalledOnValidThread());
74 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level)); 68 Send(new AwViewMsg_SetTextZoomLevel(web_contents()->GetRoutingID(), level));
75 } 69 }
76 70
77 void AwRenderViewHostExt::ResetScrollAndScaleState() { 71 void AwRenderViewHostExt::ResetScrollAndScaleState() {
78 DCHECK(CalledOnValidThread()); 72 DCHECK(CalledOnValidThread());
79 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID())); 73 Send(new AwViewMsg_ResetScrollAndScaleState(web_contents()->GetRoutingID()));
80 } 74 }
81 75
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 125 }
132 126
133 void AwRenderViewHostExt::OnUpdateHitTestData( 127 void AwRenderViewHostExt::OnUpdateHitTestData(
134 const AwHitTestData& hit_test_data) { 128 const AwHitTestData& hit_test_data) {
135 DCHECK(CalledOnValidThread()); 129 DCHECK(CalledOnValidThread());
136 last_hit_test_data_ = hit_test_data; 130 last_hit_test_data_ = hit_test_data;
137 has_new_hit_test_data_ = true; 131 has_new_hit_test_data_ = true;
138 } 132 }
139 133
140 } // namespace android_webview 134 } // 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