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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 WriteParam(m, p.gl_multisampling_enabled); | 673 WriteParam(m, p.gl_multisampling_enabled); |
674 WriteParam(m, p.show_composited_layer_borders); | 674 WriteParam(m, p.show_composited_layer_borders); |
675 WriteParam(m, p.accelerated_compositing_enabled); | 675 WriteParam(m, p.accelerated_compositing_enabled); |
676 WriteParam(m, p.composite_to_texture_enabled); | 676 WriteParam(m, p.composite_to_texture_enabled); |
677 WriteParam(m, p.accelerated_2d_canvas_enabled); | 677 WriteParam(m, p.accelerated_2d_canvas_enabled); |
678 WriteParam(m, p.accelerated_plugins_enabled); | 678 WriteParam(m, p.accelerated_plugins_enabled); |
679 WriteParam(m, p.accelerated_layers_enabled); | 679 WriteParam(m, p.accelerated_layers_enabled); |
680 WriteParam(m, p.accelerated_video_enabled); | 680 WriteParam(m, p.accelerated_video_enabled); |
681 WriteParam(m, p.memory_info_enabled); | 681 WriteParam(m, p.memory_info_enabled); |
682 WriteParam(m, p.interactive_form_validation_enabled); | 682 WriteParam(m, p.interactive_form_validation_enabled); |
683 WriteParam(m, p.fullscreen_enabled); | |
684 } | 683 } |
685 | 684 |
686 bool ParamTraits<WebPreferences>::Read(const Message* m, void** iter, | 685 bool ParamTraits<WebPreferences>::Read(const Message* m, void** iter, |
687 param_type* p) { | 686 param_type* p) { |
688 return | 687 return |
689 ReadParam(m, iter, &p->standard_font_family) && | 688 ReadParam(m, iter, &p->standard_font_family) && |
690 ReadParam(m, iter, &p->fixed_font_family) && | 689 ReadParam(m, iter, &p->fixed_font_family) && |
691 ReadParam(m, iter, &p->serif_font_family) && | 690 ReadParam(m, iter, &p->serif_font_family) && |
692 ReadParam(m, iter, &p->sans_serif_font_family) && | 691 ReadParam(m, iter, &p->sans_serif_font_family) && |
693 ReadParam(m, iter, &p->cursive_font_family) && | 692 ReadParam(m, iter, &p->cursive_font_family) && |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 ReadParam(m, iter, &p->experimental_webgl_enabled) && | 729 ReadParam(m, iter, &p->experimental_webgl_enabled) && |
731 ReadParam(m, iter, &p->gl_multisampling_enabled) && | 730 ReadParam(m, iter, &p->gl_multisampling_enabled) && |
732 ReadParam(m, iter, &p->show_composited_layer_borders) && | 731 ReadParam(m, iter, &p->show_composited_layer_borders) && |
733 ReadParam(m, iter, &p->accelerated_compositing_enabled) && | 732 ReadParam(m, iter, &p->accelerated_compositing_enabled) && |
734 ReadParam(m, iter, &p->composite_to_texture_enabled) && | 733 ReadParam(m, iter, &p->composite_to_texture_enabled) && |
735 ReadParam(m, iter, &p->accelerated_2d_canvas_enabled) && | 734 ReadParam(m, iter, &p->accelerated_2d_canvas_enabled) && |
736 ReadParam(m, iter, &p->accelerated_plugins_enabled) && | 735 ReadParam(m, iter, &p->accelerated_plugins_enabled) && |
737 ReadParam(m, iter, &p->accelerated_layers_enabled) && | 736 ReadParam(m, iter, &p->accelerated_layers_enabled) && |
738 ReadParam(m, iter, &p->accelerated_video_enabled) && | 737 ReadParam(m, iter, &p->accelerated_video_enabled) && |
739 ReadParam(m, iter, &p->memory_info_enabled) && | 738 ReadParam(m, iter, &p->memory_info_enabled) && |
740 ReadParam(m, iter, &p->interactive_form_validation_enabled) && | 739 ReadParam(m, iter, &p->interactive_form_validation_enabled); |
741 ReadParam(m, iter, &p->fullscreen_enabled); | |
742 } | 740 } |
743 | 741 |
744 void ParamTraits<WebPreferences>::Log(const param_type& p, std::string* l) { | 742 void ParamTraits<WebPreferences>::Log(const param_type& p, std::string* l) { |
745 l->append("<WebPreferences>"); | 743 l->append("<WebPreferences>"); |
746 } | 744 } |
747 | 745 |
748 void ParamTraits<WebDropData>::Write(Message* m, const param_type& p) { | 746 void ParamTraits<WebDropData>::Write(Message* m, const param_type& p) { |
749 WriteParam(m, p.identity); | 747 WriteParam(m, p.identity); |
750 WriteParam(m, p.url); | 748 WriteParam(m, p.url); |
751 WriteParam(m, p.url_title); | 749 WriteParam(m, p.url_title); |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1178 l->append("("); | 1176 l->append("("); |
1179 LogParam(p.pending_bytes, l); | 1177 LogParam(p.pending_bytes, l); |
1180 l->append(", "); | 1178 l->append(", "); |
1181 LogParam(p.hardware_delay_bytes, l); | 1179 LogParam(p.hardware_delay_bytes, l); |
1182 l->append(", "); | 1180 l->append(", "); |
1183 LogParam(p.timestamp, l); | 1181 LogParam(p.timestamp, l); |
1184 l->append(")"); | 1182 l->append(")"); |
1185 } | 1183 } |
1186 | 1184 |
1187 } // namespace IPC | 1185 } // namespace IPC |
OLD | NEW |