| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 | 31 |
| 32 #include <algorithm> | 32 #include <algorithm> |
| 33 #include <utility> | 33 #include <utility> |
| 34 | 34 |
| 35 #include <v8.h> | 35 #include <v8.h> |
| 36 #include <v8-debug.h> | 36 #include <v8-debug.h> |
| 37 | 37 |
| 38 #include "v8_proxy.h" | 38 #include "v8_proxy.h" |
| 39 #include "v8_index.h" | |
| 40 #include "v8_binding.h" | 39 #include "v8_binding.h" |
| 41 #include "V8Collection.h" | 40 #include "V8Collection.h" |
| 42 #include "V8DOMWindow.h" | 41 #include "V8DOMWindow.h" |
| 43 #include "V8IsolatedWorld.h" | 42 #include "V8IsolatedWorld.h" |
| 44 | 43 |
| 45 #include "ChromiumBridge.h" | 44 #include "ChromiumBridge.h" |
| 46 #include "CSSMutableStyleDeclaration.h" | 45 #include "CSSMutableStyleDeclaration.h" |
| 47 #include "DOMObjectsInclude.h" | 46 #include "DOMObjectsInclude.h" |
| 48 #include "DocumentLoader.h" | 47 #include "DocumentLoader.h" |
| 49 #include "ScriptController.h" | 48 #include "ScriptController.h" |
| 50 #include "V8CustomBinding.h" | 49 #include "V8CustomBinding.h" |
| 51 #include "V8DOMMap.h" | 50 #include "V8DOMMap.h" |
| 51 #include "V8Index.h" |
| 52 #include "WorkerContextExecutionProxy.h" | 52 #include "WorkerContextExecutionProxy.h" |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace WebCore { |
| 55 | 55 |
| 56 // Static utility context. | 56 // Static utility context. |
| 57 v8::Persistent<v8::Context> V8Proxy::m_utilityContext; | 57 v8::Persistent<v8::Context> V8Proxy::m_utilityContext; |
| 58 | 58 |
| 59 // Static list of registered extensions | 59 // Static list of registered extensions |
| 60 V8ExtensionList V8Proxy::m_extensions; | 60 V8ExtensionList V8Proxy::m_extensions; |
| 61 | 61 |
| (...skipping 3495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3557 v8::HandleScope scope; | 3557 v8::HandleScope scope; |
| 3558 if (!context->GetData()->IsObject()) { | 3558 if (!context->GetData()->IsObject()) { |
| 3559 return -1; | 3559 return -1; |
| 3560 } | 3560 } |
| 3561 v8::Handle<v8::Value> data = context->GetData()->ToObject()->Get( | 3561 v8::Handle<v8::Value> data = context->GetData()->ToObject()->Get( |
| 3562 v8::String::New(kContextDebugDataValue)); | 3562 v8::String::New(kContextDebugDataValue)); |
| 3563 return data->IsInt32() ? data->Int32Value() : -1; | 3563 return data->IsInt32() ? data->Int32Value() : -1; |
| 3564 } | 3564 } |
| 3565 | 3565 |
| 3566 } // namespace WebCore | 3566 } // namespace WebCore |
| OLD | NEW |