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

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

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: PPB_Flash: 4 -> 5 Created 9 years, 10 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
OLDNEW
1 // Copyright (c) 2010 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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
(...skipping 30 matching lines...) Expand all
42 namespace net { 42 namespace net {
43 class HttpResponseHeaders; 43 class HttpResponseHeaders;
44 class UploadData; 44 class UploadData;
45 } 45 }
46 46
47 namespace webkit_blob { 47 namespace webkit_blob {
48 class BlobData; 48 class BlobData;
49 } 49 }
50 50
51 namespace webkit_glue { 51 namespace webkit_glue {
52 struct CustomContextMenuContext;
52 struct ResourceDevToolsInfo; 53 struct ResourceDevToolsInfo;
53 struct ResourceLoadTimingInfo; 54 struct ResourceLoadTimingInfo;
54 struct ResourceResponseInfo; 55 struct ResourceResponseInfo;
55 struct WebAccessibility; 56 struct WebAccessibility;
56 struct WebCookie; 57 struct WebCookie;
57 } 58 }
58 59
59 namespace webkit { 60 namespace webkit {
60 namespace npapi { 61 namespace npapi {
61 struct WebPluginGeometry; 62 struct WebPluginGeometry;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 template <> 138 template <>
138 struct ParamTraits<FontDescriptor> { 139 struct ParamTraits<FontDescriptor> {
139 typedef FontDescriptor param_type; 140 typedef FontDescriptor param_type;
140 static void Write(Message* m, const param_type& p); 141 static void Write(Message* m, const param_type& p);
141 static bool Read(const Message* m, void** iter, param_type* p); 142 static bool Read(const Message* m, void** iter, param_type* p);
142 static void Log(const param_type& p, std::string* l); 143 static void Log(const param_type& p, std::string* l);
143 }; 144 };
144 #endif 145 #endif
145 146
146 template <> 147 template <>
148 struct ParamTraits<webkit_glue::CustomContextMenuContext> {
149 typedef webkit_glue::CustomContextMenuContext param_type;
150 static void Write(Message* m, const param_type& p);
151 static bool Read(const Message* m, void** iter, param_type* p);
152 static void Log(const param_type& p, std::string* l);
153 };
154
155 template <>
147 struct ParamTraits<ContextMenuParams> { 156 struct ParamTraits<ContextMenuParams> {
148 typedef ContextMenuParams param_type; 157 typedef ContextMenuParams param_type;
149 static void Write(Message* m, const param_type& p); 158 static void Write(Message* m, const param_type& p);
150 static bool Read(const Message* m, void** iter, param_type* p); 159 static bool Read(const Message* m, void** iter, param_type* p);
151 static void Log(const param_type& p, std::string* l); 160 static void Log(const param_type& p, std::string* l);
152 }; 161 };
153 162
154 template <> 163 template <>
155 struct ParamTraits<webkit::npapi::WebPluginGeometry> { 164 struct ParamTraits<webkit::npapi::WebPluginGeometry> {
156 typedef webkit::npapi::WebPluginGeometry param_type; 165 typedef webkit::npapi::WebPluginGeometry param_type;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 static void Write(Message* m, const param_type& p); 528 static void Write(Message* m, const param_type& p);
520 static bool Read(const Message* m, void** iter, param_type* p); 529 static bool Read(const Message* m, void** iter, param_type* p);
521 static void Log(const param_type& p, std::string* l); 530 static void Log(const param_type& p, std::string* l);
522 }; 531 };
523 532
524 } // namespace IPC 533 } // namespace IPC
525 534
526 #include "chrome/common/render_messages_internal.h" 535 #include "chrome/common/render_messages_internal.h"
527 536
528 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 537 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698