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/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 } | 1581 } |
1582 | 1582 |
1583 void RenderViewHost::ForwardEditCommand(const std::string& name, | 1583 void RenderViewHost::ForwardEditCommand(const std::string& name, |
1584 const std::string& value) { | 1584 const std::string& value) { |
1585 IPC::Message* message = new ViewMsg_ExecuteEditCommand(routing_id(), | 1585 IPC::Message* message = new ViewMsg_ExecuteEditCommand(routing_id(), |
1586 name, | 1586 name, |
1587 value); | 1587 value); |
1588 Send(message); | 1588 Send(message); |
1589 } | 1589 } |
1590 | 1590 |
| 1591 void RenderViewHost::ForwardEditCommandsForNextKeyEvent( |
| 1592 const EditCommands& edit_commands) { |
| 1593 IPC::Message* message = new ViewMsg_SetEditCommandsForNextKeyEvent( |
| 1594 routing_id(), edit_commands); |
| 1595 Send(message); |
| 1596 } |
| 1597 |
1591 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message, | 1598 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message, |
1592 const std::string& origin, | 1599 const std::string& origin, |
1593 const std::string& target) { | 1600 const std::string& target) { |
1594 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin, | 1601 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin, |
1595 target)); | 1602 target)); |
1596 } | 1603 } |
1597 | 1604 |
1598 void RenderViewHost::OnExtensionRequest(const std::string& name, | 1605 void RenderViewHost::OnExtensionRequest(const std::string& name, |
1599 const std::string& args, | 1606 const std::string& args, |
1600 int request_id, | 1607 int request_id, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1649 } | 1656 } |
1650 | 1657 |
1651 void RenderViewHost::ResetModalDialogEvent() { | 1658 void RenderViewHost::ResetModalDialogEvent() { |
1652 if (--modal_dialog_count_ == 0) | 1659 if (--modal_dialog_count_ == 0) |
1653 modal_dialog_event_->Reset(); | 1660 modal_dialog_event_->Reset(); |
1654 } | 1661 } |
1655 | 1662 |
1656 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1663 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
1657 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1664 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
1658 } | 1665 } |
OLD | NEW |