| 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 static bool Read(const Message* m, void** iter, param_type* p) { | 551 static bool Read(const Message* m, void** iter, param_type* p) { |
| 552 int type; | 552 int type; |
| 553 if (!m->ReadInt(iter, &type)) | 553 if (!m->ReadInt(iter, &type)) |
| 554 return false; | 554 return false; |
| 555 *p = ContextNode(type); | 555 *p = ContextNode(type); |
| 556 return true; | 556 return true; |
| 557 } | 557 } |
| 558 static void Log(const param_type& p, std::wstring* l) { | 558 static void Log(const param_type& p, std::wstring* l) { |
| 559 std::wstring event = L""; | 559 std::wstring event = L""; |
| 560 | 560 |
| 561 if (!p.type) | 561 if (!p.type) { |
| 562 event.append(L"NONE"); | 562 event.append(L"NONE"); |
| 563 else { | 563 } else { |
| 564 event.append(L"("); | 564 event.append(L"("); |
| 565 if (p.type & ContextNode::PAGE) | 565 if (p.type & ContextNode::PAGE) |
| 566 event.append(L"PAGE|"); | 566 event.append(L"PAGE|"); |
| 567 if (p.type & ContextNode::FRAME) | 567 if (p.type & ContextNode::FRAME) |
| 568 event.append(L"FRAME|"); | 568 event.append(L"FRAME|"); |
| 569 if (p.type & ContextNode::LINK) | 569 if (p.type & ContextNode::LINK) |
| 570 event.append(L"LINK|"); | 570 event.append(L"LINK|"); |
| 571 if (p.type & ContextNode::IMAGE) | 571 if (p.type & ContextNode::IMAGE) |
| 572 event.append(L"IMAGE|"); | 572 event.append(L"IMAGE|"); |
| 573 if (p.type & ContextNode::SELECTION) | 573 if (p.type & ContextNode::SELECTION) |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1734 #endif | 1734 #endif |
| 1735 | 1735 |
| 1736 static void Log(const param_type& p, std::wstring* l) { | 1736 static void Log(const param_type& p, std::wstring* l) { |
| 1737 l->append(L"<ModalDialogEvent>"); | 1737 l->append(L"<ModalDialogEvent>"); |
| 1738 } | 1738 } |
| 1739 }; | 1739 }; |
| 1740 | 1740 |
| 1741 } // namespace IPC | 1741 } // namespace IPC |
| 1742 | 1742 |
| 1743 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1743 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |