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 #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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 WriteParam(m, p.unfiltered_link_url); | 1027 WriteParam(m, p.unfiltered_link_url); |
1028 WriteParam(m, p.src_url); | 1028 WriteParam(m, p.src_url); |
1029 WriteParam(m, p.page_url); | 1029 WriteParam(m, p.page_url); |
1030 WriteParam(m, p.frame_url); | 1030 WriteParam(m, p.frame_url); |
1031 WriteParam(m, p.media_flags); | 1031 WriteParam(m, p.media_flags); |
1032 WriteParam(m, p.selection_text); | 1032 WriteParam(m, p.selection_text); |
1033 WriteParam(m, p.misspelled_word); | 1033 WriteParam(m, p.misspelled_word); |
1034 WriteParam(m, p.dictionary_suggestions); | 1034 WriteParam(m, p.dictionary_suggestions); |
1035 WriteParam(m, p.spellcheck_enabled); | 1035 WriteParam(m, p.spellcheck_enabled); |
1036 WriteParam(m, p.is_editable); | 1036 WriteParam(m, p.is_editable); |
| 1037 #if defined(OS_MACOSX) |
| 1038 WriteParam(m, p.writing_direction_default); |
| 1039 WriteParam(m, p.writing_direction_left_to_right); |
| 1040 WriteParam(m, p.writing_direction_right_to_left); |
| 1041 #endif // OS_MACOSX |
1037 WriteParam(m, p.edit_flags); | 1042 WriteParam(m, p.edit_flags); |
1038 WriteParam(m, p.security_info); | 1043 WriteParam(m, p.security_info); |
1039 WriteParam(m, p.frame_charset); | 1044 WriteParam(m, p.frame_charset); |
1040 WriteParam(m, p.custom_items); | 1045 WriteParam(m, p.custom_items); |
1041 } | 1046 } |
1042 static bool Read(const Message* m, void** iter, param_type* p) { | 1047 static bool Read(const Message* m, void** iter, param_type* p) { |
1043 return | 1048 return |
1044 ReadParam(m, iter, &p->media_type) && | 1049 ReadParam(m, iter, &p->media_type) && |
1045 ReadParam(m, iter, &p->x) && | 1050 ReadParam(m, iter, &p->x) && |
1046 ReadParam(m, iter, &p->y) && | 1051 ReadParam(m, iter, &p->y) && |
1047 ReadParam(m, iter, &p->link_url) && | 1052 ReadParam(m, iter, &p->link_url) && |
1048 ReadParam(m, iter, &p->unfiltered_link_url) && | 1053 ReadParam(m, iter, &p->unfiltered_link_url) && |
1049 ReadParam(m, iter, &p->src_url) && | 1054 ReadParam(m, iter, &p->src_url) && |
1050 ReadParam(m, iter, &p->page_url) && | 1055 ReadParam(m, iter, &p->page_url) && |
1051 ReadParam(m, iter, &p->frame_url) && | 1056 ReadParam(m, iter, &p->frame_url) && |
1052 ReadParam(m, iter, &p->media_flags) && | 1057 ReadParam(m, iter, &p->media_flags) && |
1053 ReadParam(m, iter, &p->selection_text) && | 1058 ReadParam(m, iter, &p->selection_text) && |
1054 ReadParam(m, iter, &p->misspelled_word) && | 1059 ReadParam(m, iter, &p->misspelled_word) && |
1055 ReadParam(m, iter, &p->dictionary_suggestions) && | 1060 ReadParam(m, iter, &p->dictionary_suggestions) && |
1056 ReadParam(m, iter, &p->spellcheck_enabled) && | 1061 ReadParam(m, iter, &p->spellcheck_enabled) && |
1057 ReadParam(m, iter, &p->is_editable) && | 1062 ReadParam(m, iter, &p->is_editable) && |
| 1063 #if defined(OS_MACOSX) |
| 1064 ReadParam(m, iter, &p->writing_direction_default) && |
| 1065 ReadParam(m, iter, &p->writing_direction_left_to_right) && |
| 1066 ReadParam(m, iter, &p->writing_direction_right_to_left) && |
| 1067 #endif // OS_MACOSX |
1058 ReadParam(m, iter, &p->edit_flags) && | 1068 ReadParam(m, iter, &p->edit_flags) && |
1059 ReadParam(m, iter, &p->security_info) && | 1069 ReadParam(m, iter, &p->security_info) && |
1060 ReadParam(m, iter, &p->frame_charset) && | 1070 ReadParam(m, iter, &p->frame_charset) && |
1061 ReadParam(m, iter, &p->custom_items); | 1071 ReadParam(m, iter, &p->custom_items); |
1062 } | 1072 } |
1063 static void Log(const param_type& p, std::wstring* l) { | 1073 static void Log(const param_type& p, std::wstring* l) { |
1064 l->append(L"<ContextMenuParams>"); | 1074 l->append(L"<ContextMenuParams>"); |
1065 } | 1075 } |
1066 }; | 1076 }; |
1067 | 1077 |
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 } | 2506 } |
2497 }; | 2507 }; |
2498 | 2508 |
2499 } // namespace IPC | 2509 } // namespace IPC |
2500 | 2510 |
2501 | 2511 |
2502 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2512 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2503 #include "ipc/ipc_message_macros.h" | 2513 #include "ipc/ipc_message_macros.h" |
2504 | 2514 |
2505 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2515 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |