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

Side by Side Diff: native_client_sdk/src/libraries/ppapi_main/ppapi_instance.cc

Issue 13106002: [NaCl SDK] A bunch of spelling fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix presubmit Created 7 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
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 <fcntl.h> 5 #include <fcntl.h>
6 #include <pthread.h> 6 #include <pthread.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <sys/stat.h> 10 #include <sys/stat.h>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 return def; 146 return def;
147 } 147 }
148 148
149 bool PPAPIInstance::ProcessProperties() { 149 bool PPAPIInstance::ProcessProperties() {
150 const char* stdin_path = GetProperty("pm_stdin", "/dev/stdin"); 150 const char* stdin_path = GetProperty("pm_stdin", "/dev/stdin");
151 const char* stdout_path = GetProperty("pm_stdout", "/dev/stdout"); 151 const char* stdout_path = GetProperty("pm_stdout", "/dev/stdout");
152 const char* stderr_path = GetProperty("pm_stderr", "/dev/console3"); 152 const char* stderr_path = GetProperty("pm_stderr", "/dev/console3");
153 const char* queue_size = GetProperty("pm_queue_size", "1024"); 153 const char* queue_size = GetProperty("pm_queue_size", "1024");
154 154
155 // Force a miniumum size of 4 155 // Force a minimum size of 4
156 uint32_t queue_size_int = atoi(queue_size); 156 uint32_t queue_size_int = atoi(queue_size);
157 if (queue_size_int < 4) queue_size_int = 4; 157 if (queue_size_int < 4) queue_size_int = 4;
158 event_queue_.SetSize(queue_size_int); 158 event_queue_.SetSize(queue_size_int);
159 159
160 nacl_io_init_ppapi(PPAPI_GetInstanceId(), PPAPI_GetInterface); 160 nacl_io_init_ppapi(PPAPI_GetInstanceId(), PPAPI_GetInterface);
161 161
162 int fd0 = open(stdin_path, O_RDONLY); 162 int fd0 = open(stdin_path, O_RDONLY);
163 dup2(fd0, 0); 163 dup2(fd0, 0);
164 164
165 int fd1 = open(stdout_path, O_WRONLY); 165 int fd1 = open(stdout_path, O_WRONLY);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 void PPAPIInstance::ReleaseInputEvent(PPAPIEvent* event) { 265 void PPAPIInstance::ReleaseInputEvent(PPAPIEvent* event) {
266 event_queue_.ReleaseTopMessage(event); 266 event_queue_.ReleaseTopMessage(event);
267 } 267 }
268 268
269 void PPAPIInstance::DidChangeView(const pp::View&) { 269 void PPAPIInstance::DidChangeView(const pp::View&) {
270 } 270 }
271 271
272 void PPAPIInstance::DidChangeFocus(bool focus) { 272 void PPAPIInstance::DidChangeFocus(bool focus) {
273 has_focus_ = focus; 273 has_focus_ = focus;
274 } 274 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698