| 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 | 10 |
| (...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 WriteParam(m, p.default_encoding); | 1575 WriteParam(m, p.default_encoding); |
| 1576 WriteParam(m, p.javascript_enabled); | 1576 WriteParam(m, p.javascript_enabled); |
| 1577 WriteParam(m, p.javascript_can_open_windows_automatically); | 1577 WriteParam(m, p.javascript_can_open_windows_automatically); |
| 1578 WriteParam(m, p.loads_images_automatically); | 1578 WriteParam(m, p.loads_images_automatically); |
| 1579 WriteParam(m, p.plugins_enabled); | 1579 WriteParam(m, p.plugins_enabled); |
| 1580 WriteParam(m, p.dom_paste_enabled); | 1580 WriteParam(m, p.dom_paste_enabled); |
| 1581 WriteParam(m, p.developer_extras_enabled); | 1581 WriteParam(m, p.developer_extras_enabled); |
| 1582 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1582 WriteParam(m, p.shrinks_standalone_images_to_fit); |
| 1583 WriteParam(m, p.uses_universal_detector); | 1583 WriteParam(m, p.uses_universal_detector); |
| 1584 WriteParam(m, p.text_areas_are_resizable); | 1584 WriteParam(m, p.text_areas_are_resizable); |
| 1585 WriteParam(m, p.dashboard_compatibility_mode); | |
| 1586 WriteParam(m, p.java_enabled); | 1585 WriteParam(m, p.java_enabled); |
| 1587 WriteParam(m, p.user_style_sheet_enabled); | 1586 WriteParam(m, p.user_style_sheet_enabled); |
| 1588 WriteParam(m, p.user_style_sheet_location); | 1587 WriteParam(m, p.user_style_sheet_location); |
| 1589 WriteParam(m, p.uses_page_cache); | 1588 WriteParam(m, p.uses_page_cache); |
| 1590 } | 1589 } |
| 1591 static bool Read(const Message* m, void** iter, param_type* p) { | 1590 static bool Read(const Message* m, void** iter, param_type* p) { |
| 1592 return | 1591 return |
| 1593 ReadParam(m, iter, &p->standard_font_family) && | 1592 ReadParam(m, iter, &p->standard_font_family) && |
| 1594 ReadParam(m, iter, &p->fixed_font_family) && | 1593 ReadParam(m, iter, &p->fixed_font_family) && |
| 1595 ReadParam(m, iter, &p->serif_font_family) && | 1594 ReadParam(m, iter, &p->serif_font_family) && |
| 1596 ReadParam(m, iter, &p->sans_serif_font_family) && | 1595 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 1597 ReadParam(m, iter, &p->cursive_font_family) && | 1596 ReadParam(m, iter, &p->cursive_font_family) && |
| 1598 ReadParam(m, iter, &p->fantasy_font_family) && | 1597 ReadParam(m, iter, &p->fantasy_font_family) && |
| 1599 ReadParam(m, iter, &p->default_font_size) && | 1598 ReadParam(m, iter, &p->default_font_size) && |
| 1600 ReadParam(m, iter, &p->default_fixed_font_size) && | 1599 ReadParam(m, iter, &p->default_fixed_font_size) && |
| 1601 ReadParam(m, iter, &p->minimum_font_size) && | 1600 ReadParam(m, iter, &p->minimum_font_size) && |
| 1602 ReadParam(m, iter, &p->minimum_logical_font_size) && | 1601 ReadParam(m, iter, &p->minimum_logical_font_size) && |
| 1603 ReadParam(m, iter, &p->default_encoding) && | 1602 ReadParam(m, iter, &p->default_encoding) && |
| 1604 ReadParam(m, iter, &p->javascript_enabled) && | 1603 ReadParam(m, iter, &p->javascript_enabled) && |
| 1605 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && | 1604 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && |
| 1606 ReadParam(m, iter, &p->loads_images_automatically) && | 1605 ReadParam(m, iter, &p->loads_images_automatically) && |
| 1607 ReadParam(m, iter, &p->plugins_enabled) && | 1606 ReadParam(m, iter, &p->plugins_enabled) && |
| 1608 ReadParam(m, iter, &p->dom_paste_enabled) && | 1607 ReadParam(m, iter, &p->dom_paste_enabled) && |
| 1609 ReadParam(m, iter, &p->developer_extras_enabled) && | 1608 ReadParam(m, iter, &p->developer_extras_enabled) && |
| 1610 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1609 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
| 1611 ReadParam(m, iter, &p->uses_universal_detector) && | 1610 ReadParam(m, iter, &p->uses_universal_detector) && |
| 1612 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1611 ReadParam(m, iter, &p->text_areas_are_resizable) && |
| 1613 ReadParam(m, iter, &p->dashboard_compatibility_mode) && | |
| 1614 ReadParam(m, iter, &p->java_enabled) && | 1612 ReadParam(m, iter, &p->java_enabled) && |
| 1615 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1613 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
| 1616 ReadParam(m, iter, &p->user_style_sheet_location) && | 1614 ReadParam(m, iter, &p->user_style_sheet_location) && |
| 1617 ReadParam(m, iter, &p->uses_page_cache); | 1615 ReadParam(m, iter, &p->uses_page_cache); |
| 1618 } | 1616 } |
| 1619 static void Log(const param_type& p, std::wstring* l) { | 1617 static void Log(const param_type& p, std::wstring* l) { |
| 1620 l->append(L"<WebPreferences>"); | 1618 l->append(L"<WebPreferences>"); |
| 1621 } | 1619 } |
| 1622 }; | 1620 }; |
| 1623 | 1621 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1647 ReadParam(m, iter, &p->file_contents); | 1645 ReadParam(m, iter, &p->file_contents); |
| 1648 } | 1646 } |
| 1649 static void Log(const param_type& p, std::wstring* l) { | 1647 static void Log(const param_type& p, std::wstring* l) { |
| 1650 l->append(L"<WebDropData>"); | 1648 l->append(L"<WebDropData>"); |
| 1651 } | 1649 } |
| 1652 }; | 1650 }; |
| 1653 | 1651 |
| 1654 } // namespace IPC | 1652 } // namespace IPC |
| 1655 | 1653 |
| 1656 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1654 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |