| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 void RenderViewHost::OnMsgShowModalHTMLDialog( | 1243 void RenderViewHost::OnMsgShowModalHTMLDialog( |
| 1244 const GURL& url, int width, int height, const std::string& json_arguments, | 1244 const GURL& url, int width, int height, const std::string& json_arguments, |
| 1245 IPC::Message* reply_msg) { | 1245 IPC::Message* reply_msg) { |
| 1246 StopHangMonitorTimeout(); | 1246 StopHangMonitorTimeout(); |
| 1247 SignalModalDialogEvent(); | 1247 SignalModalDialogEvent(); |
| 1248 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); | 1248 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 void RenderViewHost::MediaPlayerActionAt(int x, |
| 1252 int y, |
| 1253 const MediaPlayerAction& action) { |
| 1254 // TODO(ajwong): Which thread should run this? Does it matter? |
| 1255 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), x, y, action)); |
| 1256 } |
| 1257 |
| 1251 void RenderViewHost::OnMsgPasswordFormsSeen( | 1258 void RenderViewHost::OnMsgPasswordFormsSeen( |
| 1252 const std::vector<webkit_glue::PasswordForm>& forms) { | 1259 const std::vector<webkit_glue::PasswordForm>& forms) { |
| 1253 delegate_->PasswordFormsSeen(forms); | 1260 delegate_->PasswordFormsSeen(forms); |
| 1254 } | 1261 } |
| 1255 | 1262 |
| 1256 void RenderViewHost::OnMsgAutofillFormSubmitted( | 1263 void RenderViewHost::OnMsgAutofillFormSubmitted( |
| 1257 const webkit_glue::AutofillForm& form) { | 1264 const webkit_glue::AutofillForm& form) { |
| 1258 RenderViewHostDelegate::Autofill* autofill_delegate = | 1265 RenderViewHostDelegate::Autofill* autofill_delegate = |
| 1259 delegate_->GetAutofillDelegate(); | 1266 delegate_->GetAutofillDelegate(); |
| 1260 if (autofill_delegate) | 1267 if (autofill_delegate) |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 | 1582 |
| 1576 void RenderViewHost::SignalModalDialogEvent() { | 1583 void RenderViewHost::SignalModalDialogEvent() { |
| 1577 if (modal_dialog_count_++ == 0) | 1584 if (modal_dialog_count_++ == 0) |
| 1578 modal_dialog_event_->Signal(); | 1585 modal_dialog_event_->Signal(); |
| 1579 } | 1586 } |
| 1580 | 1587 |
| 1581 void RenderViewHost::ResetModalDialogEvent() { | 1588 void RenderViewHost::ResetModalDialogEvent() { |
| 1582 if (--modal_dialog_count_ == 0) | 1589 if (--modal_dialog_count_ == 0) |
| 1583 modal_dialog_event_->Reset(); | 1590 modal_dialog_event_->Reset(); |
| 1584 } | 1591 } |
| OLD | NEW |