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

Side by Side Diff: chrome/common/render_messages.h

Issue 91002: Always enable copy-link-address in context menu. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 }; 848 };
849 849
850 template <> 850 template <>
851 struct ParamTraits<ContextMenuParams> { 851 struct ParamTraits<ContextMenuParams> {
852 typedef ContextMenuParams param_type; 852 typedef ContextMenuParams param_type;
853 static void Write(Message* m, const param_type& p) { 853 static void Write(Message* m, const param_type& p) {
854 WriteParam(m, p.node); 854 WriteParam(m, p.node);
855 WriteParam(m, p.x); 855 WriteParam(m, p.x);
856 WriteParam(m, p.y); 856 WriteParam(m, p.y);
857 WriteParam(m, p.link_url); 857 WriteParam(m, p.link_url);
858 WriteParam(m, p.unfiltered_link_url);
858 WriteParam(m, p.image_url); 859 WriteParam(m, p.image_url);
859 WriteParam(m, p.page_url); 860 WriteParam(m, p.page_url);
860 WriteParam(m, p.frame_url); 861 WriteParam(m, p.frame_url);
861 WriteParam(m, p.selection_text); 862 WriteParam(m, p.selection_text);
862 WriteParam(m, p.misspelled_word); 863 WriteParam(m, p.misspelled_word);
863 WriteParam(m, p.dictionary_suggestions); 864 WriteParam(m, p.dictionary_suggestions);
864 WriteParam(m, p.spellcheck_enabled); 865 WriteParam(m, p.spellcheck_enabled);
865 WriteParam(m, p.edit_flags); 866 WriteParam(m, p.edit_flags);
866 WriteParam(m, p.security_info); 867 WriteParam(m, p.security_info);
867 } 868 }
868 static bool Read(const Message* m, void** iter, param_type* p) { 869 static bool Read(const Message* m, void** iter, param_type* p) {
869 return 870 return
870 ReadParam(m, iter, &p->node) && 871 ReadParam(m, iter, &p->node) &&
871 ReadParam(m, iter, &p->x) && 872 ReadParam(m, iter, &p->x) &&
872 ReadParam(m, iter, &p->y) && 873 ReadParam(m, iter, &p->y) &&
873 ReadParam(m, iter, &p->link_url) && 874 ReadParam(m, iter, &p->link_url) &&
875 ReadParam(m, iter, &p->unfiltered_link_url) &&
874 ReadParam(m, iter, &p->image_url) && 876 ReadParam(m, iter, &p->image_url) &&
875 ReadParam(m, iter, &p->page_url) && 877 ReadParam(m, iter, &p->page_url) &&
876 ReadParam(m, iter, &p->frame_url) && 878 ReadParam(m, iter, &p->frame_url) &&
877 ReadParam(m, iter, &p->selection_text) && 879 ReadParam(m, iter, &p->selection_text) &&
878 ReadParam(m, iter, &p->misspelled_word) && 880 ReadParam(m, iter, &p->misspelled_word) &&
879 ReadParam(m, iter, &p->dictionary_suggestions) && 881 ReadParam(m, iter, &p->dictionary_suggestions) &&
880 ReadParam(m, iter, &p->spellcheck_enabled) && 882 ReadParam(m, iter, &p->spellcheck_enabled) &&
881 ReadParam(m, iter, &p->edit_flags) && 883 ReadParam(m, iter, &p->edit_flags) &&
882 ReadParam(m, iter, &p->security_info); 884 ReadParam(m, iter, &p->security_info);
883 } 885 }
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 } 1831 }
1830 }; 1832 };
1831 1833
1832 } // namespace IPC 1834 } // namespace IPC
1833 1835
1834 1836
1835 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1837 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1836 #include "chrome/common/ipc_message_macros.h" 1838 #include "chrome/common/ipc_message_macros.h"
1837 1839
1838 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1840 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698