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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 WriteParam(m, p.plugins_enabled); | 1515 WriteParam(m, p.plugins_enabled); |
1516 WriteParam(m, p.dom_paste_enabled); | 1516 WriteParam(m, p.dom_paste_enabled); |
1517 WriteParam(m, p.developer_extras_enabled); | 1517 WriteParam(m, p.developer_extras_enabled); |
1518 WriteParam(m, p.shrinks_standalone_images_to_fit); | 1518 WriteParam(m, p.shrinks_standalone_images_to_fit); |
1519 WriteParam(m, p.uses_universal_detector); | 1519 WriteParam(m, p.uses_universal_detector); |
1520 WriteParam(m, p.text_areas_are_resizable); | 1520 WriteParam(m, p.text_areas_are_resizable); |
1521 WriteParam(m, p.java_enabled); | 1521 WriteParam(m, p.java_enabled); |
1522 WriteParam(m, p.user_style_sheet_enabled); | 1522 WriteParam(m, p.user_style_sheet_enabled); |
1523 WriteParam(m, p.user_style_sheet_location); | 1523 WriteParam(m, p.user_style_sheet_location); |
1524 WriteParam(m, p.uses_page_cache); | 1524 WriteParam(m, p.uses_page_cache); |
| 1525 WriteParam(m, p.remote_fonts_enabled); |
1525 } | 1526 } |
1526 static bool Read(const Message* m, void** iter, param_type* p) { | 1527 static bool Read(const Message* m, void** iter, param_type* p) { |
1527 return | 1528 return |
1528 ReadParam(m, iter, &p->standard_font_family) && | 1529 ReadParam(m, iter, &p->standard_font_family) && |
1529 ReadParam(m, iter, &p->fixed_font_family) && | 1530 ReadParam(m, iter, &p->fixed_font_family) && |
1530 ReadParam(m, iter, &p->serif_font_family) && | 1531 ReadParam(m, iter, &p->serif_font_family) && |
1531 ReadParam(m, iter, &p->sans_serif_font_family) && | 1532 ReadParam(m, iter, &p->sans_serif_font_family) && |
1532 ReadParam(m, iter, &p->cursive_font_family) && | 1533 ReadParam(m, iter, &p->cursive_font_family) && |
1533 ReadParam(m, iter, &p->fantasy_font_family) && | 1534 ReadParam(m, iter, &p->fantasy_font_family) && |
1534 ReadParam(m, iter, &p->default_font_size) && | 1535 ReadParam(m, iter, &p->default_font_size) && |
1535 ReadParam(m, iter, &p->default_fixed_font_size) && | 1536 ReadParam(m, iter, &p->default_fixed_font_size) && |
1536 ReadParam(m, iter, &p->minimum_font_size) && | 1537 ReadParam(m, iter, &p->minimum_font_size) && |
1537 ReadParam(m, iter, &p->minimum_logical_font_size) && | 1538 ReadParam(m, iter, &p->minimum_logical_font_size) && |
1538 ReadParam(m, iter, &p->default_encoding) && | 1539 ReadParam(m, iter, &p->default_encoding) && |
1539 ReadParam(m, iter, &p->javascript_enabled) && | 1540 ReadParam(m, iter, &p->javascript_enabled) && |
1540 ReadParam(m, iter, &p->web_security_enabled) && | 1541 ReadParam(m, iter, &p->web_security_enabled) && |
1541 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && | 1542 ReadParam(m, iter, &p->javascript_can_open_windows_automatically) && |
1542 ReadParam(m, iter, &p->loads_images_automatically) && | 1543 ReadParam(m, iter, &p->loads_images_automatically) && |
1543 ReadParam(m, iter, &p->plugins_enabled) && | 1544 ReadParam(m, iter, &p->plugins_enabled) && |
1544 ReadParam(m, iter, &p->dom_paste_enabled) && | 1545 ReadParam(m, iter, &p->dom_paste_enabled) && |
1545 ReadParam(m, iter, &p->developer_extras_enabled) && | 1546 ReadParam(m, iter, &p->developer_extras_enabled) && |
1546 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && | 1547 ReadParam(m, iter, &p->shrinks_standalone_images_to_fit) && |
1547 ReadParam(m, iter, &p->uses_universal_detector) && | 1548 ReadParam(m, iter, &p->uses_universal_detector) && |
1548 ReadParam(m, iter, &p->text_areas_are_resizable) && | 1549 ReadParam(m, iter, &p->text_areas_are_resizable) && |
1549 ReadParam(m, iter, &p->java_enabled) && | 1550 ReadParam(m, iter, &p->java_enabled) && |
1550 ReadParam(m, iter, &p->user_style_sheet_enabled) && | 1551 ReadParam(m, iter, &p->user_style_sheet_enabled) && |
1551 ReadParam(m, iter, &p->user_style_sheet_location) && | 1552 ReadParam(m, iter, &p->user_style_sheet_location) && |
1552 ReadParam(m, iter, &p->uses_page_cache); | 1553 ReadParam(m, iter, &p->uses_page_cache) && |
| 1554 ReadParam(m, iter, &p->remote_fonts_enabled); |
1553 } | 1555 } |
1554 static void Log(const param_type& p, std::wstring* l) { | 1556 static void Log(const param_type& p, std::wstring* l) { |
1555 l->append(L"<WebPreferences>"); | 1557 l->append(L"<WebPreferences>"); |
1556 } | 1558 } |
1557 }; | 1559 }; |
1558 | 1560 |
1559 // Traits for WebDropData | 1561 // Traits for WebDropData |
1560 template <> | 1562 template <> |
1561 struct ParamTraits<WebDropData> { | 1563 struct ParamTraits<WebDropData> { |
1562 typedef WebDropData param_type; | 1564 typedef WebDropData param_type; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 } | 1874 } |
1873 }; | 1875 }; |
1874 | 1876 |
1875 } // namespace IPC | 1877 } // namespace IPC |
1876 | 1878 |
1877 | 1879 |
1878 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1880 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
1879 #include "chrome/common/ipc_message_macros.h" | 1881 #include "chrome/common/ipc_message_macros.h" |
1880 | 1882 |
1881 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1883 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |