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

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
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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 835
836 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write( 836 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Write(
837 Message* m, const param_type& p) { 837 Message* m, const param_type& p) {
838 WriteParam(m, p.bitmap); 838 WriteParam(m, p.bitmap);
839 WriteParam(m, p.bitmap_rect); 839 WriteParam(m, p.bitmap_rect);
840 WriteParam(m, p.dx); 840 WriteParam(m, p.dx);
841 WriteParam(m, p.dy); 841 WriteParam(m, p.dy);
842 WriteParam(m, p.scroll_rect); 842 WriteParam(m, p.scroll_rect);
843 WriteParam(m, p.copy_rects); 843 WriteParam(m, p.copy_rects);
844 WriteParam(m, p.view_size); 844 WriteParam(m, p.view_size);
845 WriteParam(m, p.resizer_rect);
845 WriteParam(m, p.plugin_window_moves); 846 WriteParam(m, p.plugin_window_moves);
846 WriteParam(m, p.flags); 847 WriteParam(m, p.flags);
847 } 848 }
848 849
849 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read( 850 bool ParamTraits<ViewHostMsg_UpdateRect_Params>::Read(
850 const Message* m, void** iter, param_type* p) { 851 const Message* m, void** iter, param_type* p) {
851 return 852 return
852 ReadParam(m, iter, &p->bitmap) && 853 ReadParam(m, iter, &p->bitmap) &&
853 ReadParam(m, iter, &p->bitmap_rect) && 854 ReadParam(m, iter, &p->bitmap_rect) &&
854 ReadParam(m, iter, &p->dx) && 855 ReadParam(m, iter, &p->dx) &&
855 ReadParam(m, iter, &p->dy) && 856 ReadParam(m, iter, &p->dy) &&
856 ReadParam(m, iter, &p->scroll_rect) && 857 ReadParam(m, iter, &p->scroll_rect) &&
857 ReadParam(m, iter, &p->copy_rects) && 858 ReadParam(m, iter, &p->copy_rects) &&
858 ReadParam(m, iter, &p->view_size) && 859 ReadParam(m, iter, &p->view_size) &&
860 ReadParam(m, iter, &p->resizer_rect) &&
859 ReadParam(m, iter, &p->plugin_window_moves) && 861 ReadParam(m, iter, &p->plugin_window_moves) &&
860 ReadParam(m, iter, &p->flags); 862 ReadParam(m, iter, &p->flags);
861 } 863 }
862 864
863 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p, 865 void ParamTraits<ViewHostMsg_UpdateRect_Params>::Log(const param_type& p,
864 std::string* l) { 866 std::string* l) {
865 l->append("("); 867 l->append("(");
866 LogParam(p.bitmap, l); 868 LogParam(p.bitmap, l);
867 l->append(", "); 869 l->append(", ");
868 LogParam(p.bitmap_rect, l); 870 LogParam(p.bitmap_rect, l);
869 l->append(", "); 871 l->append(", ");
870 LogParam(p.dx, l); 872 LogParam(p.dx, l);
871 l->append(", "); 873 l->append(", ");
872 LogParam(p.dy, l); 874 LogParam(p.dy, l);
873 l->append(", "); 875 l->append(", ");
874 LogParam(p.scroll_rect, l); 876 LogParam(p.scroll_rect, l);
875 l->append(", "); 877 l->append(", ");
876 LogParam(p.copy_rects, l); 878 LogParam(p.copy_rects, l);
877 l->append(", "); 879 l->append(", ");
878 LogParam(p.view_size, l); 880 LogParam(p.view_size, l);
879 l->append(", "); 881 l->append(", ");
882 LogParam(p.resizer_rect, l);
883 l->append(", ");
880 LogParam(p.plugin_window_moves, l); 884 LogParam(p.plugin_window_moves, l);
881 l->append(", "); 885 l->append(", ");
882 LogParam(p.flags, l); 886 LogParam(p.flags, l);
883 l->append(")"); 887 l->append(")");
884 } 888 }
885 889
886 void ParamTraits<ViewMsg_ClosePage_Params>::Write(Message* m, 890 void ParamTraits<ViewMsg_ClosePage_Params>::Write(Message* m,
887 const param_type& p) { 891 const param_type& p) {
888 WriteParam(m, p.closing_process_id); 892 WriteParam(m, p.closing_process_id);
889 WriteParam(m, p.closing_route_id); 893 WriteParam(m, p.closing_route_id);
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1919 const param_type& p, 1923 const param_type& p,
1920 std::string* l) { 1924 std::string* l) {
1921 l->append("("); 1925 l->append("(");
1922 LogParam(p.notification_type, l); 1926 LogParam(p.notification_type, l);
1923 l->append(", "); 1927 l->append(", ");
1924 LogParam(p.acc_obj, l); 1928 LogParam(p.acc_obj, l);
1925 l->append(")"); 1929 l->append(")");
1926 } 1930 }
1927 1931
1928 } // namespace IPC 1932 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698