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

Side by Side Diff: ppapi/native_client/tests/ppapi_geturl/module.cc

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More nacl fixes Created 8 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 | 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 "native_client/tests/ppapi_geturl/module.h" 5 #include "native_client/tests/ppapi_geturl/module.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const char* /*argn*/[], 49 const char* /*argn*/[],
50 const char* /*argv*/[]) { 50 const char* /*argv*/[]) {
51 printf("--- Instance_DidCreate\n"); 51 printf("--- Instance_DidCreate\n");
52 return PP_TRUE; 52 return PP_TRUE;
53 } 53 }
54 54
55 void Instance_DidDestroy(PP_Instance /*instance*/) { 55 void Instance_DidDestroy(PP_Instance /*instance*/) {
56 printf("--- Instance_DidDestroy\n"); 56 printf("--- Instance_DidDestroy\n");
57 } 57 }
58 58
59 void Instance_DidChangeView(PP_Instance /*pp_instance*/, 59 void Instance_DidChangeView(PP_Instance /*pp_instance*/, PP_Resource /*view*/) {
60 const PP_Rect* /*position*/,
61 const PP_Rect* /*clip*/) {
62 } 60 }
63 61
64 void Instance_DidChangeFocus(PP_Instance /*pp_instance*/, 62 void Instance_DidChangeFocus(PP_Instance /*pp_instance*/,
65 PP_Bool /*has_focus*/) { 63 PP_Bool /*has_focus*/) {
66 } 64 }
67 65
68 PP_Bool Instance_HandleDocumentLoad(PP_Instance /*pp_instance*/, 66 PP_Bool Instance_HandleDocumentLoad(PP_Instance /*pp_instance*/,
69 PP_Resource /*pp_url_loader*/) { 67 PP_Resource /*pp_url_loader*/) {
70 return PP_FALSE; 68 return PP_FALSE;
71 } 69 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 printf("--- ReportResult posts result string:\n\t%s\n", result.c_str()); 268 printf("--- ReportResult posts result string:\n\t%s\n", result.c_str());
271 struct PP_Var var_result = StrToVar(result); 269 struct PP_Var var_result = StrToVar(result);
272 ppb_messaging_interface()->PostMessage(pp_instance, var_result); 270 ppb_messaging_interface()->PostMessage(pp_instance, var_result);
273 // If the message was created using VarFromUtf8() it needs to be released. 271 // If the message was created using VarFromUtf8() it needs to be released.
274 // See the comments about VarFromUtf8() in ppapi/c/ppb_var.h for more 272 // See the comments about VarFromUtf8() in ppapi/c/ppb_var.h for more
275 // information. 273 // information.
276 if (var_result.type == PP_VARTYPE_STRING) { 274 if (var_result.type == PP_VARTYPE_STRING) {
277 ppb_var_interface()->Release(var_result); 275 ppb_var_interface()->Release(var_result);
278 } 276 }
279 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698