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

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

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 5 years, 3 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 (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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (web_contents()->GetRenderViewHost()) { 93 if (web_contents()->GetRenderViewHost()) {
94 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), 94 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(),
95 background_color_)); 95 background_color_));
96 } 96 }
97 } 97 }
98 98
99 void AwRenderViewHostExt::SetJsOnlineProperty(bool network_up) { 99 void AwRenderViewHostExt::SetJsOnlineProperty(bool network_up) {
100 Send(new AwViewMsg_SetJsOnlineProperty(network_up)); 100 Send(new AwViewMsg_SetJsOnlineProperty(network_up));
101 } 101 }
102 102
103 void AwRenderViewHostExt::SmoothScroll(int target_x,
104 int target_y,
105 long duration_ms) {
106 Send(new AwViewMsg_SmoothScroll(web_contents()->GetRoutingID(), target_x,
107 target_y, duration_ms));
108 }
109
103 void AwRenderViewHostExt::RenderViewCreated( 110 void AwRenderViewHostExt::RenderViewCreated(
104 content::RenderViewHost* render_view_host) { 111 content::RenderViewHost* render_view_host) {
105 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), 112 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(),
106 background_color_)); 113 background_color_));
107 } 114 }
108 115
109 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) { 116 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) {
110 DCHECK(CalledOnValidThread()); 117 DCHECK(CalledOnValidThread());
111 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = 118 for (std::map<int, DocumentHasImagesResult>::iterator pending_req =
112 pending_document_has_images_requests_.begin(); 119 pending_document_has_images_requests_.begin();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) { 173 void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) {
167 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor); 174 client_->OnWebLayoutPageScaleFactorChanged(page_scale_factor);
168 } 175 }
169 176
170 void AwRenderViewHostExt::OnContentsSizeChanged( 177 void AwRenderViewHostExt::OnContentsSizeChanged(
171 const gfx::Size& contents_size) { 178 const gfx::Size& contents_size) {
172 client_->OnWebLayoutContentsSizeChanged(contents_size); 179 client_->OnWebLayoutContentsSizeChanged(contents_size);
173 } 180 }
174 181
175 } // namespace android_webview 182 } // 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