| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/values.h" | 5 #include "base/values.h" |
| 6 #include "chrome/common/edit_command.h" | 6 #include "chrome/common/edit_command.h" |
| 7 #include "chrome/common/extensions/extension_extent.h" | 7 #include "chrome/common/extensions/extension_extent.h" |
| 8 #include "chrome/common/extensions/url_pattern.h" | 8 #include "chrome/common/extensions/url_pattern.h" |
| 9 #include "chrome/common/gpu_param_traits.h" | 9 #include "chrome/common/gpu_param_traits.h" |
| 10 #include "chrome/common/render_messages_params.h" | 10 #include "chrome/common/render_messages_params.h" |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 WriteParam(m, p.allow_universal_access_from_file_urls); | 725 WriteParam(m, p.allow_universal_access_from_file_urls); |
| 726 WriteParam(m, p.allow_file_access_from_file_urls); | 726 WriteParam(m, p.allow_file_access_from_file_urls); |
| 727 WriteParam(m, p.experimental_webgl_enabled); | 727 WriteParam(m, p.experimental_webgl_enabled); |
| 728 WriteParam(m, p.show_composited_layer_borders); | 728 WriteParam(m, p.show_composited_layer_borders); |
| 729 WriteParam(m, p.accelerated_compositing_enabled); | 729 WriteParam(m, p.accelerated_compositing_enabled); |
| 730 WriteParam(m, p.accelerated_2d_canvas_enabled); | 730 WriteParam(m, p.accelerated_2d_canvas_enabled); |
| 731 WriteParam(m, p.accelerated_plugins_enabled); | 731 WriteParam(m, p.accelerated_plugins_enabled); |
| 732 WriteParam(m, p.accelerated_layers_enabled); | 732 WriteParam(m, p.accelerated_layers_enabled); |
| 733 WriteParam(m, p.accelerated_video_enabled); | 733 WriteParam(m, p.accelerated_video_enabled); |
| 734 WriteParam(m, p.memory_info_enabled); | 734 WriteParam(m, p.memory_info_enabled); |
| 735 WriteParam(m, p.interactive_form_validation_enabled); |
| 735 } | 736 } |
| 736 | 737 |
| 737 bool ParamTraits<WebPreferences>::Read(const Message* m, void** iter, | 738 bool ParamTraits<WebPreferences>::Read(const Message* m, void** iter, |
| 738 param_type* p) { | 739 param_type* p) { |
| 739 return | 740 return |
| 740 ReadParam(m, iter, &p->standard_font_family) && | 741 ReadParam(m, iter, &p->standard_font_family) && |
| 741 ReadParam(m, iter, &p->fixed_font_family) && | 742 ReadParam(m, iter, &p->fixed_font_family) && |
| 742 ReadParam(m, iter, &p->serif_font_family) && | 743 ReadParam(m, iter, &p->serif_font_family) && |
| 743 ReadParam(m, iter, &p->sans_serif_font_family) && | 744 ReadParam(m, iter, &p->sans_serif_font_family) && |
| 744 ReadParam(m, iter, &p->cursive_font_family) && | 745 ReadParam(m, iter, &p->cursive_font_family) && |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 ReadParam(m, iter, &p->frame_flattening_enabled) && | 778 ReadParam(m, iter, &p->frame_flattening_enabled) && |
| 778 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && | 779 ReadParam(m, iter, &p->allow_universal_access_from_file_urls) && |
| 779 ReadParam(m, iter, &p->allow_file_access_from_file_urls) && | 780 ReadParam(m, iter, &p->allow_file_access_from_file_urls) && |
| 780 ReadParam(m, iter, &p->experimental_webgl_enabled) && | 781 ReadParam(m, iter, &p->experimental_webgl_enabled) && |
| 781 ReadParam(m, iter, &p->show_composited_layer_borders) && | 782 ReadParam(m, iter, &p->show_composited_layer_borders) && |
| 782 ReadParam(m, iter, &p->accelerated_compositing_enabled) && | 783 ReadParam(m, iter, &p->accelerated_compositing_enabled) && |
| 783 ReadParam(m, iter, &p->accelerated_2d_canvas_enabled) && | 784 ReadParam(m, iter, &p->accelerated_2d_canvas_enabled) && |
| 784 ReadParam(m, iter, &p->accelerated_plugins_enabled) && | 785 ReadParam(m, iter, &p->accelerated_plugins_enabled) && |
| 785 ReadParam(m, iter, &p->accelerated_layers_enabled) && | 786 ReadParam(m, iter, &p->accelerated_layers_enabled) && |
| 786 ReadParam(m, iter, &p->accelerated_video_enabled) && | 787 ReadParam(m, iter, &p->accelerated_video_enabled) && |
| 787 ReadParam(m, iter, &p->memory_info_enabled); | 788 ReadParam(m, iter, &p->memory_info_enabled) && |
| 789 ReadParam(m, iter, &p->interactive_form_validation_enabled); |
| 788 } | 790 } |
| 789 | 791 |
| 790 void ParamTraits<WebPreferences>::Log(const param_type& p, std::string* l) { | 792 void ParamTraits<WebPreferences>::Log(const param_type& p, std::string* l) { |
| 791 l->append("<WebPreferences>"); | 793 l->append("<WebPreferences>"); |
| 792 } | 794 } |
| 793 | 795 |
| 794 void ParamTraits<WebDropData>::Write(Message* m, const param_type& p) { | 796 void ParamTraits<WebDropData>::Write(Message* m, const param_type& p) { |
| 795 WriteParam(m, p.identity); | 797 WriteParam(m, p.identity); |
| 796 WriteParam(m, p.url); | 798 WriteParam(m, p.url); |
| 797 WriteParam(m, p.url_title); | 799 WriteParam(m, p.url_title); |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 } | 1265 } |
| 1264 | 1266 |
| 1265 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, | 1267 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p, |
| 1266 std::string* l) { | 1268 std::string* l) { |
| 1267 l->append("<PP_Flash_NetAddress ("); | 1269 l->append("<PP_Flash_NetAddress ("); |
| 1268 LogParam(p.size, l); | 1270 LogParam(p.size, l); |
| 1269 l->append(" bytes)>"); | 1271 l->append(" bytes)>"); |
| 1270 } | 1272 } |
| 1271 | 1273 |
| 1272 } // namespace IPC | 1274 } // namespace IPC |
| OLD | NEW |