OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 StopHangMonitorTimeout(); | 1356 StopHangMonitorTimeout(); |
1357 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); | 1357 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); |
1358 } | 1358 } |
1359 | 1359 |
1360 void RenderViewHost::MediaPlayerActionAt(const gfx::Point& location, | 1360 void RenderViewHost::MediaPlayerActionAt(const gfx::Point& location, |
1361 const WebMediaPlayerAction& action) { | 1361 const WebMediaPlayerAction& action) { |
1362 // TODO(ajwong): Which thread should run this? Does it matter? | 1362 // TODO(ajwong): Which thread should run this? Does it matter? |
1363 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action)); | 1363 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action)); |
1364 } | 1364 } |
1365 | 1365 |
| 1366 void RenderViewHost::ContextMenuClosed() { |
| 1367 Send(new ViewMsg_ContextMenuClosed(routing_id())); |
| 1368 } |
| 1369 |
| 1370 void RenderViewHost::PrintNodeUnderContextMenu() { |
| 1371 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); |
| 1372 } |
| 1373 |
1366 void RenderViewHost::OnMsgPasswordFormsFound( | 1374 void RenderViewHost::OnMsgPasswordFormsFound( |
1367 const std::vector<PasswordForm>& forms) { | 1375 const std::vector<PasswordForm>& forms) { |
1368 delegate_->PasswordFormsFound(forms); | 1376 delegate_->PasswordFormsFound(forms); |
1369 } | 1377 } |
1370 | 1378 |
1371 void RenderViewHost::OnMsgPasswordFormsVisible( | 1379 void RenderViewHost::OnMsgPasswordFormsVisible( |
1372 const std::vector<PasswordForm>& visible_forms) { | 1380 const std::vector<PasswordForm>& visible_forms) { |
1373 delegate_->PasswordFormsVisible(visible_forms); | 1381 delegate_->PasswordFormsVisible(visible_forms); |
1374 } | 1382 } |
1375 | 1383 |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 if (printer_query.get()) { | 2018 if (printer_query.get()) { |
2011 BrowserThread::PostTask( | 2019 BrowserThread::PostTask( |
2012 BrowserThread::IO, FROM_HERE, | 2020 BrowserThread::IO, FROM_HERE, |
2013 NewRunnableMethod(printer_query.get(), | 2021 NewRunnableMethod(printer_query.get(), |
2014 &printing::PrinterQuery::StopWorker)); | 2022 &printing::PrinterQuery::StopWorker)); |
2015 } | 2023 } |
2016 | 2024 |
2017 // Send the printingDone msg for now. | 2025 // Send the printingDone msg for now. |
2018 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); | 2026 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); |
2019 } | 2027 } |
OLD | NEW |