| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 }; | 929 }; |
| 930 | 930 |
| 931 template <> | 931 template <> |
| 932 struct ParamTraits<WebPluginGeometry> { | 932 struct ParamTraits<WebPluginGeometry> { |
| 933 typedef WebPluginGeometry param_type; | 933 typedef WebPluginGeometry param_type; |
| 934 static void Write(Message* m, const param_type& p) { | 934 static void Write(Message* m, const param_type& p) { |
| 935 WriteParam(m, p.window); | 935 WriteParam(m, p.window); |
| 936 WriteParam(m, p.window_rect); | 936 WriteParam(m, p.window_rect); |
| 937 WriteParam(m, p.clip_rect); | 937 WriteParam(m, p.clip_rect); |
| 938 WriteParam(m, p.cutout_rects); | 938 WriteParam(m, p.cutout_rects); |
| 939 WriteParam(m, p.rects_valid); |
| 939 WriteParam(m, p.visible); | 940 WriteParam(m, p.visible); |
| 940 } | 941 } |
| 941 static bool Read(const Message* m, void** iter, param_type* p) { | 942 static bool Read(const Message* m, void** iter, param_type* p) { |
| 942 return | 943 return |
| 943 ReadParam(m, iter, &p->window) && | 944 ReadParam(m, iter, &p->window) && |
| 944 ReadParam(m, iter, &p->window_rect) && | 945 ReadParam(m, iter, &p->window_rect) && |
| 945 ReadParam(m, iter, &p->clip_rect) && | 946 ReadParam(m, iter, &p->clip_rect) && |
| 946 ReadParam(m, iter, &p->cutout_rects) && | 947 ReadParam(m, iter, &p->cutout_rects) && |
| 948 ReadParam(m, iter, &p->rects_valid) && |
| 947 ReadParam(m, iter, &p->visible); | 949 ReadParam(m, iter, &p->visible); |
| 948 } | 950 } |
| 949 static void Log(const param_type& p, std::wstring* l) { | 951 static void Log(const param_type& p, std::wstring* l) { |
| 950 l->append(L"("); | 952 l->append(L"("); |
| 951 LogParam(p.window, l); | 953 LogParam(p.window, l); |
| 952 l->append(L", "); | 954 l->append(L", "); |
| 953 LogParam(p.window_rect, l); | 955 LogParam(p.window_rect, l); |
| 954 l->append(L", "); | 956 l->append(L", "); |
| 955 LogParam(p.clip_rect, l); | 957 LogParam(p.clip_rect, l); |
| 956 l->append(L", "); | 958 l->append(L", "); |
| 957 LogParam(p.cutout_rects, l); | 959 LogParam(p.cutout_rects, l); |
| 958 l->append(L", "); | 960 l->append(L", "); |
| 961 LogParam(p.rects_valid, l); |
| 962 l->append(L", "); |
| 959 LogParam(p.visible, l); | 963 LogParam(p.visible, l); |
| 960 l->append(L")"); | 964 l->append(L")"); |
| 961 } | 965 } |
| 962 }; | 966 }; |
| 963 | 967 |
| 964 // Traits for ViewMsg_GetPlugins_Reply structure to pack/unpack. | 968 // Traits for ViewMsg_GetPlugins_Reply structure to pack/unpack. |
| 965 template <> | 969 template <> |
| 966 struct ParamTraits<WebPluginMimeType> { | 970 struct ParamTraits<WebPluginMimeType> { |
| 967 typedef WebPluginMimeType param_type; | 971 typedef WebPluginMimeType param_type; |
| 968 static void Write(Message* m, const param_type& p) { | 972 static void Write(Message* m, const param_type& p) { |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 } | 1895 } |
| 1892 }; | 1896 }; |
| 1893 | 1897 |
| 1894 } // namespace IPC | 1898 } // namespace IPC |
| 1895 | 1899 |
| 1896 | 1900 |
| 1897 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1901 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 1898 #include "chrome/common/ipc_message_macros.h" | 1902 #include "chrome/common/ipc_message_macros.h" |
| 1899 | 1903 |
| 1900 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1904 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |