Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: sky/engine/bindings/core/v8/V8Binding.cpp

Issue 776143003: Remove Isolated Worlds from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Google Inc. 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 810 }
811 return jsonObject; 811 return jsonObject;
812 } 812 }
813 ASSERT_NOT_REACHED(); 813 ASSERT_NOT_REACHED();
814 return nullptr; 814 return nullptr;
815 } 815 }
816 816
817 V8TestingScope::V8TestingScope(v8::Isolate* isolate) 817 V8TestingScope::V8TestingScope(v8::Isolate* isolate)
818 : m_handleScope(isolate) 818 : m_handleScope(isolate)
819 , m_contextScope(v8::Context::New(isolate)) 819 , m_contextScope(v8::Context::New(isolate))
820 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(), DOMWrapperWorld::create())) 820 , m_scriptState(ScriptStateForTesting::create(isolate->GetCurrentContext(), DOMWrapperWorld::create(FakeWorld)))
821 { 821 {
822 } 822 }
823 823
824 V8TestingScope::~V8TestingScope() 824 V8TestingScope::~V8TestingScope()
825 { 825 {
826 m_scriptState->disposePerContextData(); 826 m_scriptState->disposePerContextData();
827 } 827 }
828 828
829 ScriptState* V8TestingScope::scriptState() const 829 ScriptState* V8TestingScope::scriptState() const
830 { 830 {
(...skipping 23 matching lines...) Expand all
854 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate) 854 PassRefPtr<TraceEvent::ConvertableToTraceFormat> devToolsTraceEventData(Executio nContext* context, v8::Handle<v8::Function> function, v8::Isolate* isolate)
855 { 855 {
856 int scriptId = 0; 856 int scriptId = 0;
857 String resourceName; 857 String resourceName;
858 int lineNumber = 1; 858 int lineNumber = 1;
859 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe r); 859 GetDevToolsFunctionInfo(function, isolate, scriptId, resourceName, lineNumbe r);
860 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin eNumber); 860 return InspectorFunctionCallEvent::data(context, scriptId, resourceName, lin eNumber);
861 } 861 }
862 862
863 } // namespace blink 863 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/SerializedScriptValue.cpp ('k') | sky/engine/bindings/core/v8/V8GCController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698