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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 63033: Refactor AppModalDialogQueue and move JS Alert boxes into a MVC. (Closed)
Patch Set: whitespace Created 11 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
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/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 reply_msg, 1142 reply_msg,
1143 &are_javascript_messages_suppressed_); 1143 &are_javascript_messages_suppressed_);
1144 } 1144 }
1145 1145
1146 void RenderViewHost::OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, 1146 void RenderViewHost::OnMsgRunBeforeUnloadConfirm(const GURL& frame_url,
1147 const std::wstring& message, 1147 const std::wstring& message,
1148 IPC::Message* reply_msg) { 1148 IPC::Message* reply_msg) {
1149 StopHangMonitorTimeout(); 1149 StopHangMonitorTimeout();
1150 if (modal_dialog_count_++ == 0) 1150 if (modal_dialog_count_++ == 0)
1151 modal_dialog_event_->Signal(); 1151 modal_dialog_event_->Signal();
1152 delegate_->RunBeforeUnloadConfirm(frame_url, message, reply_msg); 1152 delegate_->RunBeforeUnloadConfirm(message, reply_msg);
1153 } 1153 }
1154 1154
1155 void RenderViewHost::OnMsgShowModalHTMLDialog( 1155 void RenderViewHost::OnMsgShowModalHTMLDialog(
1156 const GURL& url, int width, int height, const std::string& json_arguments, 1156 const GURL& url, int width, int height, const std::string& json_arguments,
1157 IPC::Message* reply_msg) { 1157 IPC::Message* reply_msg) {
1158 StopHangMonitorTimeout(); 1158 StopHangMonitorTimeout();
1159 if (modal_dialog_count_++ == 0) 1159 if (modal_dialog_count_++ == 0)
1160 modal_dialog_event_->Signal(); 1160 modal_dialog_event_->Signal();
1161 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); 1161 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg);
1162 } 1162 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1385 int callback_id) { 1385 int callback_id) {
1386 // TODO(aa): Here is where we can check that this renderer was supposed to be 1386 // TODO(aa): Here is where we can check that this renderer was supposed to be
1387 // able to call extension APIs. 1387 // able to call extension APIs.
1388 extension_function_dispatcher_.HandleRequest(name, args, callback_id); 1388 extension_function_dispatcher_.HandleRequest(name, args, callback_id);
1389 } 1389 }
1390 1390
1391 void RenderViewHost::SendExtensionResponse(int callback_id, 1391 void RenderViewHost::SendExtensionResponse(int callback_id,
1392 const std::string& response) { 1392 const std::string& response) {
1393 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response)); 1393 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response));
1394 } 1394 }
OLDNEW
« no previous file with comments | « chrome/browser/jsmessage_box_handler_win.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698