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

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

Issue 3547008: Handle resize corner layout entirely in the platform BrowserWindow*/BrowserView* code... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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_widget.cc » ('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/indexed_db_param_traits.h" 9 #include "chrome/common/indexed_db_param_traits.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 834
835 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write( 835 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write(
836 Message* m, const param_type& p) { 836 Message* m, const param_type& p) {
837 WriteParam(m, p.bitmap); 837 WriteParam(m, p.bitmap);
838 WriteParam(m, p.bitmap_rect); 838 WriteParam(m, p.bitmap_rect);
839 WriteParam(m, p.dx); 839 WriteParam(m, p.dx);
840 WriteParam(m, p.dy); 840 WriteParam(m, p.dy);
841 WriteParam(m, p.scroll_rect); 841 WriteParam(m, p.scroll_rect);
842 WriteParam(m, p.copy_rects); 842 WriteParam(m, p.copy_rects);
843 WriteParam(m, p.view_size); 843 WriteParam(m, p.view_size);
844 WriteParam(m, p.resizer_rect);
844 WriteParam(m, p.plugin_window_moves); 845 WriteParam(m, p.plugin_window_moves);
845 WriteParam(m, p.flags); 846 WriteParam(m, p.flags);
846 } 847 }
847 848
848 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read( 849 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read(
849 const Message* m, void** iter, param_type* p) { 850 const Message* m, void** iter, param_type* p) {
850 return 851 return
851 ReadParam(m, iter, &p->bitmap) && 852 ReadParam(m, iter, &p->bitmap) &&
852 ReadParam(m, iter, &p->bitmap_rect) && 853 ReadParam(m, iter, &p->bitmap_rect) &&
853 ReadParam(m, iter, &p->dx) && 854 ReadParam(m, iter, &p->dx) &&
854 ReadParam(m, iter, &p->dy) && 855 ReadParam(m, iter, &p->dy) &&
855 ReadParam(m, iter, &p->scroll_rect) && 856 ReadParam(m, iter, &p->scroll_rect) &&
856 ReadParam(m, iter, &p->copy_rects) && 857 ReadParam(m, iter, &p->copy_rects) &&
857 ReadParam(m, iter, &p->view_size) && 858 ReadParam(m, iter, &p->view_size) &&
859 ReadParam(m, iter, &p->resizer_rect) &&
858 ReadParam(m, iter, &p->plugin_window_moves) && 860 ReadParam(m, iter, &p->plugin_window_moves) &&
859 ReadParam(m, iter, &p->flags); 861 ReadParam(m, iter, &p->flags);
860 } 862 }
861 863
862 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p, 864 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p,
863 std::string* l) { 865 std::string* l) {
864 l->append("("); 866 l->append("(");
865 LogParam(p.bitmap, l); 867 LogParam(p.bitmap, l);
866 l->append(", "); 868 l->append(", ");
867 LogParam(p.bitmap_rect, l); 869 LogParam(p.bitmap_rect, l);
868 l->append(", "); 870 l->append(", ");
869 LogParam(p.dx, l); 871 LogParam(p.dx, l);
870 l->append(", "); 872 l->append(", ");
871 LogParam(p.dy, l); 873 LogParam(p.dy, l);
872 l->append(", "); 874 l->append(", ");
873 LogParam(p.scroll_rect, l); 875 LogParam(p.scroll_rect, l);
874 l->append(", "); 876 l->append(", ");
875 LogParam(p.copy_rects, l); 877 LogParam(p.copy_rects, l);
876 l->append(", "); 878 l->append(", ");
877 LogParam(p.view_size, l); 879 LogParam(p.view_size, l);
878 l->append(", "); 880 l->append(", ");
881 LogParam(p.resizer_rect, l);
882 l->append(", ");
879 LogParam(p.plugin_window_moves, l); 883 LogParam(p.plugin_window_moves, l);
880 l->append(", "); 884 l->append(", ");
881 LogParam(p.flags, l); 885 LogParam(p.flags, l);
882 l->append(")"); 886 l->append(")");
883 } 887 }
884 888
885 void ParamTraits<ViewMsg_ClosePage_Params>::Write(Message* m, 889 void ParamTraits<ViewMsg_ClosePage_Params>::Write(Message* m,
886 const param_type& p) { 890 const param_type& p) {
887 WriteParam(m, p.closing_process_id); 891 WriteParam(m, p.closing_process_id);
888 WriteParam(m, p.closing_route_id); 892 WriteParam(m, p.closing_route_id);
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 const param_type& p, 1922 const param_type& p,
1919 std::string* l) { 1923 std::string* l) {
1920 l->append("("); 1924 l->append("(");
1921 LogParam(p.notification_type, l); 1925 LogParam(p.notification_type, l);
1922 l->append(", "); 1926 l->append(", ");
1923 LogParam(p.acc_obj, l); 1927 LogParam(p.acc_obj, l);
1924 l->append(")"); 1928 l->append(")");
1925 } 1929 }
1926 1930
1927 } // namespace IPC 1931 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages_params.h ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698