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

Side by Side Diff: content/child/npapi/webplugin_ime_win.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/child/npapi/webplugin_ime_win.h" 5 #include "content/child/npapi/webplugin_ime_win.h"
6 6
7 #include <stddef.h>
8 #include <string.h>
9
7 #include <cstring> 10 #include <cstring>
8 #include <string> 11 #include <string>
9 #include <vector> 12 #include <vector>
10 13
11 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
12 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
13 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
14 #include "base/synchronization/lock.h" 18 #include "base/synchronization/lock.h"
15 #include "content/child/npapi/plugin_instance.h" 19 #include "content/child/npapi/plugin_instance.h"
16 #include "content/common/plugin_constants_win.h" 20 #include "content/common/plugin_constants_win.h"
17 21
18 #pragma comment(lib, "imm32.lib") 22 #pragma comment(lib, "imm32.lib")
19 23
20 namespace content { 24 namespace content {
21 25
22 // A critical section that prevents two or more plugins from accessing a 26 // A critical section that prevents two or more plugins from accessing a
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 src_size = instance->composition_text_.length() * sizeof(wchar_t); 227 src_size = instance->composition_text_.length() * sizeof(wchar_t);
224 break; 228 break;
225 229
226 case GCS_COMPATTR: 230 case GCS_COMPATTR:
227 src_data = instance->composition_attributes_.c_str(); 231 src_data = instance->composition_attributes_.c_str();
228 src_size = instance->composition_attributes_.length(); 232 src_size = instance->composition_attributes_.length();
229 break; 233 break;
230 234
231 case GCS_COMPCLAUSE: 235 case GCS_COMPCLAUSE:
232 src_data = &instance->composition_clauses_[0]; 236 src_data = &instance->composition_clauses_[0];
233 src_size = instance->composition_clauses_.size() * sizeof(uint32); 237 src_size = instance->composition_clauses_.size() * sizeof(uint32_t);
234 break; 238 break;
235 239
236 case GCS_CURSORPOS: 240 case GCS_CURSORPOS:
237 return instance->cursor_position_; 241 return instance->cursor_position_;
238 242
239 case GCS_DELTASTART: 243 case GCS_DELTASTART:
240 return instance->delta_start_; 244 return instance->delta_start_;
241 245
242 case GCS_RESULTSTR: 246 case GCS_RESULTSTR:
243 src_data = instance->result_text_.c_str(); 247 src_data = instance->result_text_.c_str();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 int input_type = open ? 1 : 0; 318 int input_type = open ? 1 : 0;
315 if (instance->input_type_ != input_type) { 319 if (instance->input_type_ != input_type) {
316 instance->input_type_ = input_type; 320 instance->input_type_ = input_type;
317 instance->status_updated_ = true; 321 instance->status_updated_ = true;
318 } 322 }
319 323
320 return TRUE; 324 return TRUE;
321 } 325 }
322 326
323 } // namespace content 327 } // namespace content
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_ime_win.h ('k') | content/child/npapi/webplugin_resource_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698