| 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 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/common/webkit_param_traits.h" | 30 #include "chrome/common/webkit_param_traits.h" |
| 31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
| 32 #include "ipc/ipc_message_utils.h" | 32 #include "ipc/ipc_message_utils.h" |
| 33 #include "media/audio/audio_output.h" | 33 #include "media/audio/audio_output.h" |
| 34 #include "net/base/upload_data.h" | 34 #include "net/base/upload_data.h" |
| 35 #include "net/http/http_response_headers.h" | 35 #include "net/http/http_response_headers.h" |
| 36 #include "webkit/appcache/appcache_interfaces.h" | 36 #include "webkit/appcache/appcache_interfaces.h" |
| 37 #include "webkit/glue/autofill_form.h" | 37 #include "webkit/glue/autofill_form.h" |
| 38 #include "webkit/glue/context_menu.h" | 38 #include "webkit/glue/context_menu.h" |
| 39 #include "webkit/glue/form_data.h" | 39 #include "webkit/glue/form_data.h" |
| 40 #include "webkit/glue/media_player_action.h" | |
| 41 #include "webkit/glue/password_form.h" | 40 #include "webkit/glue/password_form.h" |
| 42 #include "webkit/glue/password_form_dom_manager.h" | 41 #include "webkit/glue/password_form_dom_manager.h" |
| 43 #include "webkit/glue/resource_loader_bridge.h" | 42 #include "webkit/glue/resource_loader_bridge.h" |
| 44 #include "webkit/glue/webaccessibility.h" | 43 #include "webkit/glue/webaccessibility.h" |
| 45 #include "webkit/glue/webdropdata.h" | 44 #include "webkit/glue/webdropdata.h" |
| 46 #include "webkit/glue/webmenuitem.h" | 45 #include "webkit/glue/webmenuitem.h" |
| 47 #include "webkit/glue/webplugin.h" | 46 #include "webkit/glue/webplugin.h" |
| 48 #include "webkit/glue/webplugininfo.h" | 47 #include "webkit/glue/webplugininfo.h" |
| 49 #include "webkit/glue/webpreferences.h" | 48 #include "webkit/glue/webpreferences.h" |
| 50 #include "webkit/glue/webview_delegate.h" | 49 #include "webkit/glue/webview_delegate.h" |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 ReadParam(m, iter, &p->spellcheck_enabled) && | 945 ReadParam(m, iter, &p->spellcheck_enabled) && |
| 947 ReadParam(m, iter, &p->edit_flags) && | 946 ReadParam(m, iter, &p->edit_flags) && |
| 948 ReadParam(m, iter, &p->security_info) && | 947 ReadParam(m, iter, &p->security_info) && |
| 949 ReadParam(m, iter, &p->frame_charset); | 948 ReadParam(m, iter, &p->frame_charset); |
| 950 } | 949 } |
| 951 static void Log(const param_type& p, std::wstring* l) { | 950 static void Log(const param_type& p, std::wstring* l) { |
| 952 l->append(L"<ContextMenuParams>"); | 951 l->append(L"<ContextMenuParams>"); |
| 953 } | 952 } |
| 954 }; | 953 }; |
| 955 | 954 |
| 956 template <> | |
| 957 struct ParamTraits<MediaPlayerAction> { | |
| 958 typedef MediaPlayerAction param_type; | |
| 959 static void Write(Message* m, const param_type& p) { | |
| 960 WriteParam(m, p.command); | |
| 961 } | |
| 962 static bool Read(const Message* m, void** iter, param_type* p) { | |
| 963 return | |
| 964 ReadParam(m, iter, &p->command); | |
| 965 } | |
| 966 static void Log(const param_type& p, std::wstring* l) { | |
| 967 std::wstring event = L""; | |
| 968 if (!p.command) { | |
| 969 l->append(L"NONE"); | |
| 970 } else { | |
| 971 l->append(L"("); | |
| 972 if (p.command & MediaPlayerAction::PLAY) | |
| 973 l->append(L"PLAY|"); | |
| 974 if (p.command & MediaPlayerAction::PAUSE) | |
| 975 l->append(L"PAUSE|"); | |
| 976 if (p.command & MediaPlayerAction::MUTE) | |
| 977 l->append(L"MUTE|"); | |
| 978 if (p.command & MediaPlayerAction::UNMUTE) | |
| 979 l->append(L"UNMUTE|"); | |
| 980 if (p.command & MediaPlayerAction::LOOP) | |
| 981 l->append(L"LOOP|"); | |
| 982 if (p.command & MediaPlayerAction::NO_LOOP) | |
| 983 l->append(L"NO_LOOP|"); | |
| 984 l->append(L")"); | |
| 985 } | |
| 986 } | |
| 987 }; | |
| 988 | |
| 989 // Traits for ViewHostMsg_PaintRect_Params structure to pack/unpack. | 955 // Traits for ViewHostMsg_PaintRect_Params structure to pack/unpack. |
| 990 template <> | 956 template <> |
| 991 struct ParamTraits<ViewHostMsg_PaintRect_Params> { | 957 struct ParamTraits<ViewHostMsg_PaintRect_Params> { |
| 992 typedef ViewHostMsg_PaintRect_Params param_type; | 958 typedef ViewHostMsg_PaintRect_Params param_type; |
| 993 static void Write(Message* m, const param_type& p) { | 959 static void Write(Message* m, const param_type& p) { |
| 994 WriteParam(m, p.bitmap); | 960 WriteParam(m, p.bitmap); |
| 995 WriteParam(m, p.bitmap_rect); | 961 WriteParam(m, p.bitmap_rect); |
| 996 WriteParam(m, p.view_size); | 962 WriteParam(m, p.view_size); |
| 997 WriteParam(m, p.plugin_window_moves); | 963 WriteParam(m, p.plugin_window_moves); |
| 998 WriteParam(m, p.flags); | 964 WriteParam(m, p.flags); |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2251 } | 2217 } |
| 2252 }; | 2218 }; |
| 2253 | 2219 |
| 2254 } // namespace IPC | 2220 } // namespace IPC |
| 2255 | 2221 |
| 2256 | 2222 |
| 2257 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2223 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2258 #include "ipc/ipc_message_macros.h" | 2224 #include "ipc/ipc_message_macros.h" |
| 2259 | 2225 |
| 2260 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2226 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |