| 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 } | 502 } |
| 503 }; | 503 }; |
| 504 | 504 |
| 505 template <> | 505 template <> |
| 506 struct ParamTraits<webkit_glue::WebAccessibility::InParams> { | 506 struct ParamTraits<webkit_glue::WebAccessibility::InParams> { |
| 507 typedef webkit_glue::WebAccessibility::InParams param_type; | 507 typedef webkit_glue::WebAccessibility::InParams param_type; |
| 508 static void Write(Message* m, const param_type& p) { | 508 static void Write(Message* m, const param_type& p) { |
| 509 WriteParam(m, p.object_id); | 509 WriteParam(m, p.object_id); |
| 510 WriteParam(m, p.function_id); | 510 WriteParam(m, p.function_id); |
| 511 WriteParam(m, p.child_id); | 511 WriteParam(m, p.child_id); |
| 512 WriteParam(m, p.direct_descendant); |
| 512 WriteParam(m, p.input_long1); | 513 WriteParam(m, p.input_long1); |
| 513 WriteParam(m, p.input_long2); | 514 WriteParam(m, p.input_long2); |
| 514 } | 515 } |
| 515 static bool Read(const Message* m, void** iter, param_type* p) { | 516 static bool Read(const Message* m, void** iter, param_type* p) { |
| 516 return | 517 return |
| 517 ReadParam(m, iter, &p->object_id) && | 518 ReadParam(m, iter, &p->object_id) && |
| 518 ReadParam(m, iter, &p->function_id) && | 519 ReadParam(m, iter, &p->function_id) && |
| 519 ReadParam(m, iter, &p->child_id) && | 520 ReadParam(m, iter, &p->child_id) && |
| 521 ReadParam(m, iter, &p->direct_descendant) && |
| 520 ReadParam(m, iter, &p->input_long1) && | 522 ReadParam(m, iter, &p->input_long1) && |
| 521 ReadParam(m, iter, &p->input_long2); | 523 ReadParam(m, iter, &p->input_long2); |
| 522 } | 524 } |
| 523 static void Log(const param_type& p, std::wstring* l) { | 525 static void Log(const param_type& p, std::wstring* l) { |
| 524 l->append(L"("); | 526 l->append(L"("); |
| 525 LogParam(p.object_id, l); | 527 LogParam(p.object_id, l); |
| 526 l->append(L", "); | 528 l->append(L", "); |
| 527 LogParam(p.function_id, l); | 529 LogParam(p.function_id, l); |
| 528 l->append(L", "); | 530 l->append(L", "); |
| 529 LogParam(p.child_id, l); | 531 LogParam(p.child_id, l); |
| 530 l->append(L", "); | 532 l->append(L", "); |
| 533 LogParam(p.direct_descendant, l); |
| 534 l->append(L", "); |
| 531 LogParam(p.input_long1, l); | 535 LogParam(p.input_long1, l); |
| 532 l->append(L", "); | 536 l->append(L", "); |
| 533 LogParam(p.input_long2, l); | 537 LogParam(p.input_long2, l); |
| 534 l->append(L")"); | 538 l->append(L")"); |
| 535 } | 539 } |
| 536 }; | 540 }; |
| 537 | 541 |
| 538 template <> | 542 template <> |
| 539 struct ParamTraits<webkit_glue::WebAccessibility::OutParams> { | 543 struct ParamTraits<webkit_glue::WebAccessibility::OutParams> { |
| 540 typedef webkit_glue::WebAccessibility::OutParams param_type; | 544 typedef webkit_glue::WebAccessibility::OutParams param_type; |
| (...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1872 } | 1876 } |
| 1873 }; | 1877 }; |
| 1874 | 1878 |
| 1875 } // namespace IPC | 1879 } // namespace IPC |
| 1876 | 1880 |
| 1877 | 1881 |
| 1878 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1882 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 1879 #include "chrome/common/ipc_message_macros.h" | 1883 #include "chrome/common/ipc_message_macros.h" |
| 1880 | 1884 |
| 1881 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1885 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |