| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "native_client/src/include/portability.h" | 10 #include "native_client/src/include/portability.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 UNREFERENCED_PARAMETER(argn); | 92 UNREFERENCED_PARAMETER(argn); |
| 93 UNREFERENCED_PARAMETER(argv); | 93 UNREFERENCED_PARAMETER(argv); |
| 94 return PP_TRUE; | 94 return PP_TRUE; |
| 95 } | 95 } |
| 96 | 96 |
| 97 void DidDestroy(PP_Instance instance) { | 97 void DidDestroy(PP_Instance instance) { |
| 98 UNREFERENCED_PARAMETER(instance); | 98 UNREFERENCED_PARAMETER(instance); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void DidChangeView(PP_Instance instance, | 101 void DidChangeView(PP_Instance instance, |
| 102 const struct PP_Rect* position, | 102 PP_Resource resource) { |
| 103 const struct PP_Rect* clip) { | |
| 104 UNREFERENCED_PARAMETER(instance); | 103 UNREFERENCED_PARAMETER(instance); |
| 105 UNREFERENCED_PARAMETER(position); | 104 UNREFERENCED_PARAMETER(resource); |
| 106 UNREFERENCED_PARAMETER(clip); | |
| 107 } | 105 } |
| 108 | 106 |
| 109 void DidChangeFocus(PP_Instance instance, | 107 void DidChangeFocus(PP_Instance instance, |
| 110 PP_Bool has_focus) { | 108 PP_Bool has_focus) { |
| 111 UNREFERENCED_PARAMETER(instance); | 109 UNREFERENCED_PARAMETER(instance); |
| 112 UNREFERENCED_PARAMETER(has_focus); | 110 UNREFERENCED_PARAMETER(has_focus); |
| 113 } | 111 } |
| 114 | 112 |
| 115 static PP_Bool HandleDocumentLoad(PP_Instance instance, | 113 static PP_Bool HandleDocumentLoad(PP_Instance instance, |
| 116 PP_Resource url_loader) { | 114 PP_Resource url_loader) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 143 return &instance_interface; | 141 return &instance_interface; |
| 144 } else if (0 == strncmp(PPP_MESSAGING_INTERFACE, interface_name, | 142 } else if (0 == strncmp(PPP_MESSAGING_INTERFACE, interface_name, |
| 145 strlen(PPP_MESSAGING_INTERFACE))) { | 143 strlen(PPP_MESSAGING_INTERFACE))) { |
| 146 static struct PPP_Messaging messaging_interface = { | 144 static struct PPP_Messaging messaging_interface = { |
| 147 HandleMessage | 145 HandleMessage |
| 148 }; | 146 }; |
| 149 return &messaging_interface; | 147 return &messaging_interface; |
| 150 } | 148 } |
| 151 return NULL; | 149 return NULL; |
| 152 } | 150 } |
| OLD | NEW |