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

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

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the patch to catch up WebKit side changes. 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) 2011 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 #include "base/values.h" 5 #include "base/values.h"
6 #include "chrome/common/edit_command.h" 6 #include "chrome/common/edit_command.h"
7 #include "chrome/common/extensions/extension_extent.h" 7 #include "chrome/common/extensions/extension_extent.h"
8 #include "chrome/common/extensions/url_pattern.h" 8 #include "chrome/common/extensions/url_pattern.h"
9 #include "chrome/common/gpu_param_traits.h" 9 #include "chrome/common/gpu_param_traits.h"
10 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
11 #include "chrome/common/resource_response.h" 11 #include "chrome/common/resource_response.h"
12 #include "chrome/common/text_checking_result.h"
12 #include "chrome/common/thumbnail_score.h" 13 #include "chrome/common/thumbnail_score.h"
13 #include "chrome/common/web_apps.h" 14 #include "chrome/common/web_apps.h"
14 #include "ipc/ipc_channel_handle.h" 15 #include "ipc/ipc_channel_handle.h"
15 #include "media/audio/audio_buffers_state.h" 16 #include "media/audio/audio_buffers_state.h"
16 #include "net/base/upload_data.h" 17 #include "net/base/upload_data.h"
17 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
19 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
20 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
21 #include "webkit/appcache/appcache_interfaces.h" 22 #include "webkit/appcache/appcache_interfaces.h"
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { 1160 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) {
1160 l->append("("); 1161 l->append("(");
1161 LogParam(p.pending_bytes, l); 1162 LogParam(p.pending_bytes, l);
1162 l->append(", "); 1163 l->append(", ");
1163 LogParam(p.hardware_delay_bytes, l); 1164 LogParam(p.hardware_delay_bytes, l);
1164 l->append(", "); 1165 l->append(", ");
1165 LogParam(p.timestamp, l); 1166 LogParam(p.timestamp, l);
1166 l->append(")"); 1167 l->append(")");
1167 } 1168 }
1168 1169
1170 void ParamTraits<TextCheckingResult>::Write(Message* m, const param_type& p) {
1171 WriteParam(m, static_cast<int>(p.type));
1172 WriteParam(m, p.location);
1173 WriteParam(m, p.length);
1174 }
1175
1176 bool ParamTraits<TextCheckingResult>::Read(const Message* m,
1177 void** iter,
1178 param_type* p) {
Hironori Bono 2011/02/09 05:43:51 nit: align parameters if possible.
gmorrita 2011/02/10 02:15:21 Done. Note that the traits class is now for WebKi
1179 int type;
1180 if (!ReadParam(m, iter, &type))
1181 return false;
1182 p->type = static_cast<TextCheckingResult::Type>(type);
1183 return ReadParam(m, iter, &p->location) &&
1184 ReadParam(m, iter, &p->length);
1185 }
1186
1187 void ParamTraits<TextCheckingResult>::Log(const param_type& p, std::string* l) {
1188 l->append("(");
1189 LogParam(static_cast<int>(p.type), l);
1190 l->append(", ");
1191 LogParam(p.location, l);
1192 l->append(", ");
1193 LogParam(p.length, l);
1194 l->append(")");
1195 }
1196
1169 } // namespace IPC 1197 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698