| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |  | 
| 2 // Use of this source code is governed by a BSD-style license that can be |  | 
| 3 // found in the LICENSE file. |  | 
| 4 |  | 
| 5 #ifndef np_v8object_h |  | 
| 6 #define np_v8object_h |  | 
| 7 |  | 
| 8 #include "bindings/npruntime.h" |  | 
| 9 #include <v8.h> |  | 
| 10 |  | 
| 11 namespace WebCore { |  | 
| 12     class DOMWindow; |  | 
| 13 } |  | 
| 14 |  | 
| 15 extern NPClass* npScriptObjectClass; |  | 
| 16 |  | 
| 17 // A V8NPObject is a NPObject which carries additional V8-specific |  | 
| 18 // information.  It is allocated and deallocated by AllocV8NPObject() |  | 
| 19 // and FreeV8NPObject() methods. |  | 
| 20 struct V8NPObject { |  | 
| 21     NPObject object; |  | 
| 22     v8::Persistent<v8::Object> v8Object; |  | 
| 23     WebCore::DOMWindow* rootObject; |  | 
| 24 }; |  | 
| 25 |  | 
| 26 struct PrivateIdentifier { |  | 
| 27     union { |  | 
| 28         const NPUTF8* string; |  | 
| 29         int32_t number; |  | 
| 30     } value; |  | 
| 31     bool isString; |  | 
| 32 }; |  | 
| 33 |  | 
| 34 NPObject* npCreateV8ScriptObject(NPP npp, v8::Handle<v8::Object>, WebCore::DOMWi
    ndow*); |  | 
| 35 |  | 
| 36 #endif // np_v8object_h |  | 
| OLD | NEW | 
|---|