| 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
| 6 // header guard. | 6 // header guard. |
| 7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
| 8 | 8 |
| 9 #include <map> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 13 | 14 |
| 14 #include "base/clipboard.h" | 15 #include "base/clipboard.h" |
| 15 #include "base/file_path.h" | 16 #include "base/file_path.h" |
| 16 #include "base/nullable_string16.h" | 17 #include "base/nullable_string16.h" |
| 17 #include "base/platform_file.h" | 18 #include "base/platform_file.h" |
| 18 #include "base/gfx/rect.h" | 19 #include "base/gfx/rect.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 #include "webkit/glue/webcursor.h" | 33 #include "webkit/glue/webcursor.h" |
| 33 #include "webkit/glue/webplugin.h" | 34 #include "webkit/glue/webplugin.h" |
| 34 | 35 |
| 35 #if defined(OS_POSIX) | 36 #if defined(OS_POSIX) |
| 36 #include "base/file_descriptor_posix.h" | 37 #include "base/file_descriptor_posix.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 40 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
| 40 // more sense with our current design. | 41 // more sense with our current design. |
| 41 | 42 |
| 43 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
| 44 // to typedef it to avoid that. |
| 45 // Substitution map for l10n messages. |
| 46 typedef std::map<std::string, std::string> SubstitutionMap; |
| 47 |
| 42 //----------------------------------------------------------------------------- | 48 //----------------------------------------------------------------------------- |
| 43 // RenderView messages | 49 // RenderView messages |
| 44 // These are messages sent from the browser to the renderer process. | 50 // These are messages sent from the browser to the renderer process. |
| 45 | 51 |
| 46 IPC_BEGIN_MESSAGES(View) | 52 IPC_BEGIN_MESSAGES(View) |
| 47 // Used typically when recovering from a crash. The new rendering process | 53 // Used typically when recovering from a crash. The new rendering process |
| 48 // sets its global "next page id" counter to the given value. | 54 // sets its global "next page id" counter to the given value. |
| 49 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, | 55 IPC_MESSAGE_CONTROL1(ViewMsg_SetNextPageID, |
| 50 int32 /* next_page_id */) | 56 int32 /* next_page_id */) |
| 51 | 57 |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 ViewMsg_Extension_SetHostPermissions, | 652 ViewMsg_Extension_SetHostPermissions, |
| 647 GURL /* source extension's origin */, | 653 GURL /* source extension's origin */, |
| 648 std::vector<URLPattern> /* URLPatterns the extension can access */) | 654 std::vector<URLPattern> /* URLPatterns the extension can access */) |
| 649 | 655 |
| 650 // Tell the renderer process all known page action ids for a particular | 656 // Tell the renderer process all known page action ids for a particular |
| 651 // extension. | 657 // extension. |
| 652 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, | 658 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_UpdatePageActions, |
| 653 std::string /* extension_id */, | 659 std::string /* extension_id */, |
| 654 std::vector<std::string> /* page_action_ids */) | 660 std::vector<std::string> /* page_action_ids */) |
| 655 | 661 |
| 662 // Tell the renderer process all known localized messages for a particular |
| 663 // extension. |
| 664 IPC_MESSAGE_CONTROL2(ViewMsg_Extension_SetL10nMessages, |
| 665 std::string /* extension_id */, |
| 666 SubstitutionMap /* l10n messages */) |
| 667 |
| 656 // Changes the text direction of the currently selected input field (if any). | 668 // Changes the text direction of the currently selected input field (if any). |
| 657 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, | 669 IPC_MESSAGE_ROUTED1(ViewMsg_SetTextDirection, |
| 658 WebKit::WebTextDirection /* direction */) | 670 WebKit::WebTextDirection /* direction */) |
| 659 | 671 |
| 660 // Tells the renderer to clear the focused node (if any). | 672 // Tells the renderer to clear the focused node (if any). |
| 661 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) | 673 IPC_MESSAGE_ROUTED0(ViewMsg_ClearFocusedNode) |
| 662 | 674 |
| 663 // Make the RenderView transparent and render it onto a custom background. The | 675 // Make the RenderView transparent and render it onto a custom background. The |
| 664 // background will be tiled in both directions if it is not large enough. | 676 // background will be tiled in both directions if it is not large enough. |
| 665 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, | 677 IPC_MESSAGE_ROUTED1(ViewMsg_SetBackground, |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1764 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
| 1753 FilePath /* the name of the file */, | 1765 FilePath /* the name of the file */, |
| 1754 int32 /* a unique message ID */) | 1766 int32 /* a unique message ID */) |
| 1755 | 1767 |
| 1756 // Asks the browser process to return the size of a DB file | 1768 // Asks the browser process to return the size of a DB file |
| 1757 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1769 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
| 1758 FilePath /* the name of the file */, | 1770 FilePath /* the name of the file */, |
| 1759 int32 /* a unique message ID */) | 1771 int32 /* a unique message ID */) |
| 1760 | 1772 |
| 1761 IPC_END_MESSAGES(ViewHost) | 1773 IPC_END_MESSAGES(ViewHost) |
| OLD | NEW |