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

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

Issue 1622913002: aw: Fix setting background color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void AwRenderViewHostExt::SmoothScroll(int target_x, 113 void AwRenderViewHostExt::SmoothScroll(int target_x,
114 int target_y, 114 int target_y,
115 long duration_ms) { 115 long duration_ms) {
116 Send( 116 Send(
117 new AwViewMsg_SmoothScroll(web_contents()->GetMainFrame()->GetRoutingID(), 117 new AwViewMsg_SmoothScroll(web_contents()->GetMainFrame()->GetRoutingID(),
118 target_x, target_y, duration_ms)); 118 target_x, target_y, duration_ms));
119 } 119 }
120 120
121 void AwRenderViewHostExt::RenderViewCreated( 121 void AwRenderViewHostExt::RenderViewCreated(
122 content::RenderViewHost* render_view_host) { 122 content::RenderViewHost* render_view_host) {
123 Send(new AwViewMsg_SetBackgroundColor(web_contents()->GetRoutingID(), 123 Send(new AwViewMsg_SetBackgroundColor(
124 background_color_)); 124 web_contents()->GetMainFrame()->GetRoutingID(), background_color_));
125 } 125 }
126 126
127 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) { 127 void AwRenderViewHostExt::RenderProcessGone(base::TerminationStatus status) {
128 DCHECK(CalledOnValidThread()); 128 DCHECK(CalledOnValidThread());
129 for (std::map<int, DocumentHasImagesResult>::iterator pending_req = 129 for (std::map<int, DocumentHasImagesResult>::iterator pending_req =
130 pending_document_has_images_requests_.begin(); 130 pending_document_has_images_requests_.begin();
131 pending_req != pending_document_has_images_requests_.end(); 131 pending_req != pending_document_has_images_requests_.end();
132 ++pending_req) { 132 ++pending_req) {
133 pending_req->second.Run(false); 133 pending_req->second.Run(false);
134 } 134 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 content::RenderFrameHost* render_frame_host, 209 content::RenderFrameHost* render_frame_host,
210 const gfx::Size& contents_size) { 210 const gfx::Size& contents_size) {
211 // Only makes sense coming from the main frame of the current frame tree. 211 // Only makes sense coming from the main frame of the current frame tree.
212 if (render_frame_host != web_contents()->GetMainFrame()) 212 if (render_frame_host != web_contents()->GetMainFrame())
213 return; 213 return;
214 214
215 client_->OnWebLayoutContentsSizeChanged(contents_size); 215 client_->OnWebLayoutContentsSizeChanged(contents_size);
216 } 216 }
217 217
218 } // namespace android_webview 218 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698