| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 typedef ContextMenuParams param_type; | 875 typedef ContextMenuParams param_type; |
| 876 static void Write(Message* m, const param_type& p) { | 876 static void Write(Message* m, const param_type& p) { |
| 877 WriteParam(m, p.node_type); | 877 WriteParam(m, p.node_type); |
| 878 WriteParam(m, p.x); | 878 WriteParam(m, p.x); |
| 879 WriteParam(m, p.y); | 879 WriteParam(m, p.y); |
| 880 WriteParam(m, p.link_url); | 880 WriteParam(m, p.link_url); |
| 881 WriteParam(m, p.unfiltered_link_url); | 881 WriteParam(m, p.unfiltered_link_url); |
| 882 WriteParam(m, p.src_url); | 882 WriteParam(m, p.src_url); |
| 883 WriteParam(m, p.page_url); | 883 WriteParam(m, p.page_url); |
| 884 WriteParam(m, p.frame_url); | 884 WriteParam(m, p.frame_url); |
| 885 WriteParam(m, p.bkg_url); |
| 885 WriteParam(m, p.media_params); | 886 WriteParam(m, p.media_params); |
| 886 WriteParam(m, p.selection_text); | 887 WriteParam(m, p.selection_text); |
| 887 WriteParam(m, p.misspelled_word); | 888 WriteParam(m, p.misspelled_word); |
| 888 WriteParam(m, p.dictionary_suggestions); | 889 WriteParam(m, p.dictionary_suggestions); |
| 889 WriteParam(m, p.spellcheck_enabled); | 890 WriteParam(m, p.spellcheck_enabled); |
| 890 WriteParam(m, p.edit_flags); | 891 WriteParam(m, p.edit_flags); |
| 891 WriteParam(m, p.security_info); | 892 WriteParam(m, p.security_info); |
| 892 WriteParam(m, p.frame_charset); | 893 WriteParam(m, p.frame_charset); |
| 893 } | 894 } |
| 894 static bool Read(const Message* m, void** iter, param_type* p) { | 895 static bool Read(const Message* m, void** iter, param_type* p) { |
| 895 return | 896 return |
| 896 ReadParam(m, iter, &p->node_type) && | 897 ReadParam(m, iter, &p->node_type) && |
| 897 ReadParam(m, iter, &p->x) && | 898 ReadParam(m, iter, &p->x) && |
| 898 ReadParam(m, iter, &p->y) && | 899 ReadParam(m, iter, &p->y) && |
| 899 ReadParam(m, iter, &p->link_url) && | 900 ReadParam(m, iter, &p->link_url) && |
| 900 ReadParam(m, iter, &p->unfiltered_link_url) && | 901 ReadParam(m, iter, &p->unfiltered_link_url) && |
| 901 ReadParam(m, iter, &p->src_url) && | 902 ReadParam(m, iter, &p->src_url) && |
| 902 ReadParam(m, iter, &p->page_url) && | 903 ReadParam(m, iter, &p->page_url) && |
| 903 ReadParam(m, iter, &p->frame_url) && | 904 ReadParam(m, iter, &p->frame_url) && |
| 905 ReadParam(m, iter, &p->bkg_url) && |
| 904 ReadParam(m, iter, &p->media_params) && | 906 ReadParam(m, iter, &p->media_params) && |
| 905 ReadParam(m, iter, &p->selection_text) && | 907 ReadParam(m, iter, &p->selection_text) && |
| 906 ReadParam(m, iter, &p->misspelled_word) && | 908 ReadParam(m, iter, &p->misspelled_word) && |
| 907 ReadParam(m, iter, &p->dictionary_suggestions) && | 909 ReadParam(m, iter, &p->dictionary_suggestions) && |
| 908 ReadParam(m, iter, &p->spellcheck_enabled) && | 910 ReadParam(m, iter, &p->spellcheck_enabled) && |
| 909 ReadParam(m, iter, &p->edit_flags) && | 911 ReadParam(m, iter, &p->edit_flags) && |
| 910 ReadParam(m, iter, &p->security_info) && | 912 ReadParam(m, iter, &p->security_info) && |
| 911 ReadParam(m, iter, &p->frame_charset); | 913 ReadParam(m, iter, &p->frame_charset); |
| 912 } | 914 } |
| 913 static void Log(const param_type& p, std::wstring* l) { | 915 static void Log(const param_type& p, std::wstring* l) { |
| (...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2061 }; | 2063 }; |
| 2062 | 2064 |
| 2063 | 2065 |
| 2064 } // namespace IPC | 2066 } // namespace IPC |
| 2065 | 2067 |
| 2066 | 2068 |
| 2067 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2069 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2068 #include "ipc/ipc_message_macros.h" | 2070 #include "ipc/ipc_message_macros.h" |
| 2069 | 2071 |
| 2070 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2072 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |