| 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) 2010 Apple Inc. All rights reserved. |   6  * Copyright (C) 2010 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  70         { |  70         { | 
|  71             if (propertyName != pluginTest()->NPN_GetStringIdentifier("testObjec
    t")) |  71             if (propertyName != pluginTest()->NPN_GetStringIdentifier("testObjec
    t")) | 
|  72                 return false; |  72                 return false; | 
|  73  |  73  | 
|  74             NPObject* testObject = TestObject::create(pluginTest()); |  74             NPObject* testObject = TestObject::create(pluginTest()); | 
|  75             OBJECT_TO_NPVARIANT(testObject, *result); |  75             OBJECT_TO_NPVARIANT(testObject, *result); | 
|  76             return true; |  76             return true; | 
|  77         } |  77         } | 
|  78     }; |  78     }; | 
|  79  |  79  | 
|  80     virtual NPError NPP_GetValue(NPPVariable variable, void *value) OVERRIDE |  80     virtual NPError NPP_GetValue(NPPVariable variable, void *value) override | 
|  81     { |  81     { | 
|  82         if (variable != NPPVpluginScriptableNPObject) |  82         if (variable != NPPVpluginScriptableNPObject) | 
|  83             return NPERR_GENERIC_ERROR; |  83             return NPERR_GENERIC_ERROR; | 
|  84  |  84  | 
|  85         *(NPObject**)value = ScriptableObject::create(this); |  85         *(NPObject**)value = ScriptableObject::create(this); | 
|  86  |  86  | 
|  87         return NPERR_NO_ERROR; |  87         return NPERR_NO_ERROR; | 
|  88     } |  88     } | 
|  89 }; |  89 }; | 
|  90  |  90  | 
|  91 static PluginTest::Register<NPRuntimeObjectFromDestroyedPlugin> npRuntimeObjectF
    romDestroyedPlugin("npruntime-object-from-destroyed-plugin"); |  91 static PluginTest::Register<NPRuntimeObjectFromDestroyedPlugin> npRuntimeObjectF
    romDestroyedPlugin("npruntime-object-from-destroyed-plugin"); | 
|  92  |  92  | 
| OLD | NEW |