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 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 WriteParam(m, static_cast<int>(p.subpixel_rendering)); | 1620 WriteParam(m, static_cast<int>(p.subpixel_rendering)); |
1621 WriteParam(m, p.focus_ring_color); | 1621 WriteParam(m, p.focus_ring_color); |
1622 WriteParam(m, p.thumb_active_color); | 1622 WriteParam(m, p.thumb_active_color); |
1623 WriteParam(m, p.thumb_inactive_color); | 1623 WriteParam(m, p.thumb_inactive_color); |
1624 WriteParam(m, p.track_color); | 1624 WriteParam(m, p.track_color); |
1625 WriteParam(m, p.active_selection_bg_color); | 1625 WriteParam(m, p.active_selection_bg_color); |
1626 WriteParam(m, p.active_selection_fg_color); | 1626 WriteParam(m, p.active_selection_fg_color); |
1627 WriteParam(m, p.inactive_selection_bg_color); | 1627 WriteParam(m, p.inactive_selection_bg_color); |
1628 WriteParam(m, p.inactive_selection_fg_color); | 1628 WriteParam(m, p.inactive_selection_fg_color); |
1629 WriteParam(m, p.browser_handles_top_level_requests); | 1629 WriteParam(m, p.browser_handles_top_level_requests); |
| 1630 WriteParam(m, p.caret_blink_interval); |
1630 } | 1631 } |
1631 static bool Read(const Message* m, void** iter, param_type* p) { | 1632 static bool Read(const Message* m, void** iter, param_type* p) { |
1632 if (!ReadParam(m, iter, &p->can_accept_load_drops)) | 1633 if (!ReadParam(m, iter, &p->can_accept_load_drops)) |
1633 return false; | 1634 return false; |
1634 if (!ReadParam(m, iter, &p->should_antialias_text)) | 1635 if (!ReadParam(m, iter, &p->should_antialias_text)) |
1635 return false; | 1636 return false; |
1636 | 1637 |
1637 int hinting = 0; | 1638 int hinting = 0; |
1638 if (!ReadParam(m, iter, &hinting)) | 1639 if (!ReadParam(m, iter, &hinting)) |
1639 return false; | 1640 return false; |
(...skipping 26 matching lines...) Expand all Loading... |
1666 p->thumb_inactive_color = thumb_inactive_color; | 1667 p->thumb_inactive_color = thumb_inactive_color; |
1667 p->track_color = track_color; | 1668 p->track_color = track_color; |
1668 p->active_selection_bg_color = active_selection_bg_color; | 1669 p->active_selection_bg_color = active_selection_bg_color; |
1669 p->active_selection_fg_color = active_selection_fg_color; | 1670 p->active_selection_fg_color = active_selection_fg_color; |
1670 p->inactive_selection_bg_color = inactive_selection_bg_color; | 1671 p->inactive_selection_bg_color = inactive_selection_bg_color; |
1671 p->inactive_selection_fg_color = inactive_selection_fg_color; | 1672 p->inactive_selection_fg_color = inactive_selection_fg_color; |
1672 | 1673 |
1673 if (!ReadParam(m, iter, &p->browser_handles_top_level_requests)) | 1674 if (!ReadParam(m, iter, &p->browser_handles_top_level_requests)) |
1674 return false; | 1675 return false; |
1675 | 1676 |
| 1677 if (!ReadParam(m, iter, &p->caret_blink_interval)) |
| 1678 return false; |
| 1679 |
1676 return true; | 1680 return true; |
1677 } | 1681 } |
1678 static void Log(const param_type& p, std::wstring* l) { | 1682 static void Log(const param_type& p, std::wstring* l) { |
1679 l->append(L"<RendererPreferences>"); | 1683 l->append(L"<RendererPreferences>"); |
1680 } | 1684 } |
1681 }; | 1685 }; |
1682 | 1686 |
1683 // Traits for WebPreferences structure to pack/unpack. | 1687 // Traits for WebPreferences structure to pack/unpack. |
1684 template <> | 1688 template <> |
1685 struct ParamTraits<WebPreferences> { | 1689 struct ParamTraits<WebPreferences> { |
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 } | 2500 } |
2497 }; | 2501 }; |
2498 | 2502 |
2499 } // namespace IPC | 2503 } // namespace IPC |
2500 | 2504 |
2501 | 2505 |
2502 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2506 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2503 #include "ipc/ipc_message_macros.h" | 2507 #include "ipc/ipc_message_macros.h" |
2504 | 2508 |
2505 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2509 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |