Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: chrome/common/render_messages_params.cc

Issue 6246007: Generate thumbnails in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the function name... Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/common/render_messages_params.h" 5 #include "chrome/common/render_messages_params.h"
6 6
7 #include "chrome/common/navigation_gesture.h" 7 #include "chrome/common/navigation_gesture.h"
8 #include "chrome/common/common_param_traits.h" 8 #include "chrome/common/common_param_traits.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "net/base/upload_data.h" 10 #include "net/base/upload_data.h"
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 l->append(")"); 779 l->append(")");
780 } 780 }
781 781
782 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write( 782 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write(
783 Message* m, const param_type& p) { 783 Message* m, const param_type& p) {
784 WriteParam(m, p.bitmap); 784 WriteParam(m, p.bitmap);
785 WriteParam(m, p.bitmap_rect); 785 WriteParam(m, p.bitmap_rect);
786 WriteParam(m, p.dx); 786 WriteParam(m, p.dx);
787 WriteParam(m, p.dy); 787 WriteParam(m, p.dy);
788 WriteParam(m, p.scroll_rect); 788 WriteParam(m, p.scroll_rect);
789 WriteParam(m, p.scroll_offset);
789 WriteParam(m, p.copy_rects); 790 WriteParam(m, p.copy_rects);
790 WriteParam(m, p.view_size); 791 WriteParam(m, p.view_size);
791 WriteParam(m, p.resizer_rect); 792 WriteParam(m, p.resizer_rect);
792 WriteParam(m, p.plugin_window_moves); 793 WriteParam(m, p.plugin_window_moves);
793 WriteParam(m, p.flags); 794 WriteParam(m, p.flags);
794 } 795 }
795 796
796 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read( 797 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read(
797 const Message* m, void** iter, param_type* p) { 798 const Message* m, void** iter, param_type* p) {
798 return 799 return
799 ReadParam(m, iter, &p->bitmap) && 800 ReadParam(m, iter, &p->bitmap) &&
800 ReadParam(m, iter, &p->bitmap_rect) && 801 ReadParam(m, iter, &p->bitmap_rect) &&
801 ReadParam(m, iter, &p->dx) && 802 ReadParam(m, iter, &p->dx) &&
802 ReadParam(m, iter, &p->dy) && 803 ReadParam(m, iter, &p->dy) &&
803 ReadParam(m, iter, &p->scroll_rect) && 804 ReadParam(m, iter, &p->scroll_rect) &&
805 ReadParam(m, iter, &p->scroll_offset) &&
804 ReadParam(m, iter, &p->copy_rects) && 806 ReadParam(m, iter, &p->copy_rects) &&
805 ReadParam(m, iter, &p->view_size) && 807 ReadParam(m, iter, &p->view_size) &&
806 ReadParam(m, iter, &p->resizer_rect) && 808 ReadParam(m, iter, &p->resizer_rect) &&
807 ReadParam(m, iter, &p->plugin_window_moves) && 809 ReadParam(m, iter, &p->plugin_window_moves) &&
808 ReadParam(m, iter, &p->flags); 810 ReadParam(m, iter, &p->flags);
809 } 811 }
810 812
811 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p, 813 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p,
812 std::string* l) { 814 std::string* l) {
813 l->append("("); 815 l->append("(");
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 const param_type& p, 1608 const param_type& p,
1607 std::string* l) { 1609 std::string* l) {
1608 l->append("("); 1610 l->append("(");
1609 LogParam(p.notification_type, l); 1611 LogParam(p.notification_type, l);
1610 l->append(", "); 1612 l->append(", ");
1611 LogParam(p.acc_obj, l); 1613 LogParam(p.acc_obj, l);
1612 l->append(")"); 1614 l->append(")");
1613 } 1615 }
1614 1616
1615 } // namespace IPC 1617 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698