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

Side by Side Diff: chrome/browser/render_widget_helper.cc

Issue 17455: Autofill popup dismissed when page loses focus (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/render_widget_helper.h ('k') | chrome/browser/render_widget_host_view_win.h » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/render_widget_helper.h" 5 #include "chrome/browser/render_widget_helper.h"
6 6
7 #include "base/thread.h" 7 #include "base/thread.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/render_process_host.h" 9 #include "chrome/browser/render_process_host.h"
10 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 10 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 0); 212 0);
213 DCHECK(result) << "Couldn't duplicate modal dialog event for the renderer."; 213 DCHECK(result) << "Couldn't duplicate modal dialog event for the renderer.";
214 214
215 // The easiest way to reach RenderViewHost is just to send a routed message. 215 // The easiest way to reach RenderViewHost is just to send a routed message.
216 ViewHostMsg_CreateWindowWithRoute msg(opener_id, *route_id, event); 216 ViewHostMsg_CreateWindowWithRoute msg(opener_id, *route_id, event);
217 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( 217 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
218 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg)); 218 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg));
219 } 219 }
220 220
221 void RenderWidgetHelper::CreateNewWidget(int opener_id, 221 void RenderWidgetHelper::CreateNewWidget(int opener_id,
222 bool focus_on_show, 222 bool activatable,
223 int* route_id) { 223 int* route_id) {
224 *route_id = GetNextRoutingID(); 224 *route_id = GetNextRoutingID();
225 ViewHostMsg_CreateWidgetWithRoute msg(opener_id, *route_id, focus_on_show); 225 ViewHostMsg_CreateWidgetWithRoute msg(opener_id, *route_id, activatable);
226 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod( 226 ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
227 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg)); 227 this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg));
228 } 228 }
229 229
230 void RenderWidgetHelper::OnSimulateReceivedMessage( 230 void RenderWidgetHelper::OnSimulateReceivedMessage(
231 const IPC::Message& message) { 231 const IPC::Message& message) {
232 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_); 232 RenderProcessHost* host = RenderProcessHost::FromID(render_process_id_);
233 if (host) 233 if (host)
234 host->OnMessageReceived(message); 234 host->OnMessageReceived(message);
235 } 235 }
OLDNEW
« no previous file with comments | « chrome/browser/render_widget_helper.h ('k') | chrome/browser/render_widget_host_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698