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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
15 #include "chrome/common/filter_policy.h" | 15 #include "chrome/common/filter_policy.h" |
16 #include "chrome/common/ipc_message.h" | 16 #include "chrome/common/ipc_message.h" |
17 #include "chrome/common/ipc_message_utils.h" | 17 #include "chrome/common/ipc_message_utils.h" |
| 18 #include "chrome/common/modal_dialog_event.h" |
18 #include "chrome/common/page_transition_types.h" | 19 #include "chrome/common/page_transition_types.h" |
19 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
20 #include "net/base/upload_data.h" | 21 #include "net/base/upload_data.h" |
21 #include "net/url_request/url_request_status.h" | 22 #include "net/url_request/url_request_status.h" |
22 #include "webkit/glue/autofill_form.h" | 23 #include "webkit/glue/autofill_form.h" |
23 #include "webkit/glue/cache_manager.h" | 24 #include "webkit/glue/cache_manager.h" |
24 #include "webkit/glue/context_node_types.h" | 25 #include "webkit/glue/context_node_types.h" |
25 #include "webkit/glue/form_data.h" | 26 #include "webkit/glue/form_data.h" |
26 #include "webkit/glue/password_form.h" | 27 #include "webkit/glue/password_form.h" |
27 #include "webkit/glue/password_form_dom_manager.h" | 28 #include "webkit/glue/password_form_dom_manager.h" |
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 ReadParam(m, iter, &p->depth_per_component) && | 1717 ReadParam(m, iter, &p->depth_per_component) && |
1717 ReadParam(m, iter, &p->is_monochrome) && | 1718 ReadParam(m, iter, &p->is_monochrome) && |
1718 ReadParam(m, iter, &p->rect) && | 1719 ReadParam(m, iter, &p->rect) && |
1719 ReadParam(m, iter, &p->available_rect); | 1720 ReadParam(m, iter, &p->available_rect); |
1720 } | 1721 } |
1721 static void Log(const param_type& p, std::wstring* l) { | 1722 static void Log(const param_type& p, std::wstring* l) { |
1722 l->append(L"<webkit_glue::ScreenInfo>"); | 1723 l->append(L"<webkit_glue::ScreenInfo>"); |
1723 } | 1724 } |
1724 }; | 1725 }; |
1725 | 1726 |
| 1727 template<> |
| 1728 struct ParamTraits<ModalDialogEvent> { |
| 1729 typedef ModalDialogEvent param_type; |
| 1730 #if defined(OS_WIN) |
| 1731 static void Write(Message* m, const param_type& p) { |
| 1732 WriteParam(m, p.event); |
| 1733 } |
| 1734 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1735 return ReadParam(m, iter, &p->event); |
| 1736 } |
| 1737 #else |
| 1738 static void Write(Message* m, const param_type& p) { |
| 1739 } |
| 1740 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1741 return true; |
| 1742 } |
| 1743 #endif |
| 1744 |
| 1745 static void Log(const param_type& p, std::wstring* l) { |
| 1746 l->append(L"<ModalDialogEvent>"); |
| 1747 } |
| 1748 }; |
| 1749 |
1726 } // namespace IPC | 1750 } // namespace IPC |
1727 | 1751 |
1728 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1752 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |