| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* | 5 /* |
| 6 * Copyright (C) 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "content/shell/tools/plugin/test_object.h" | 30 #include "content/shell/tools/plugin/test_object.h" |
| 31 | 31 |
| 32 #include <stdint.h> |
| 33 #include <stdlib.h> |
| 34 #include <string.h> |
| 35 |
| 32 #include "PluginObject.h" | 36 #include "PluginObject.h" |
| 33 | 37 |
| 34 #include <string.h> | |
| 35 #include <stdlib.h> | |
| 36 | |
| 37 static bool testEnumerate(NPObject* npobj, | 38 static bool testEnumerate(NPObject* npobj, |
| 38 NPIdentifier** value, | 39 NPIdentifier** value, |
| 39 uint32_t* count); | 40 uint32_t* count); |
| 40 static bool testHasMethod(NPObject*, NPIdentifier name); | 41 static bool testHasMethod(NPObject*, NPIdentifier name); |
| 41 static bool testInvoke(NPObject*, | 42 static bool testInvoke(NPObject*, |
| 42 NPIdentifier name, | 43 NPIdentifier name, |
| 43 const NPVariant* args, | 44 const NPVariant* args, |
| 44 uint32_t argCount, | 45 uint32_t argCount, |
| 45 NPVariant* result); | 46 NPVariant* result); |
| 46 static bool testHasProperty(NPObject*, NPIdentifier name); | 47 static bool testHasProperty(NPObject*, NPIdentifier name); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return true; | 213 return true; |
| 213 } | 214 } |
| 214 | 215 |
| 215 namespace content { | 216 namespace content { |
| 216 | 217 |
| 217 NPClass* GetTestClass() { return &g_test_class; } | 218 NPClass* GetTestClass() { return &g_test_class; } |
| 218 | 219 |
| 219 int GetTestObjectCount() { return g_test_object_count; } | 220 int GetTestObjectCount() { return g_test_object_count; } |
| 220 | 221 |
| 221 } // namespace content | 222 } // namespace content |
| OLD | NEW |