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

Unified Diff: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 1113023002: IDL: Check method.visible for methods implemented in private script (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
diff --git a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
index 151a07197df87c3ee45bea9f29d3c9275ff2c828..156851e4fd7d672b2189dd96db6b245e61f6ac5d 100644
--- a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
@@ -338,37 +338,6 @@ void V8TestInterfacePartial::preparePrototypeObject(v8::Isolate* isolate, v8::Lo
prototypeObject->ForceSet(v8Context, unscopablesSymbol, unscopeables).FromJust();
}
-bool V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result)
-{
- if (!frame)
- return false;
- v8::HandleScope handleScope(toIsolate(frame));
- ScriptForbiddenScope::AllowUserAgentScript script;
- v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrapperWorld::privateScriptIsolatedWorld());
- if (contextInPrivateScript.IsEmpty())
- return false;
- ScriptState* scriptState = ScriptState::from(contextInPrivateScript);
- ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame);
- if (!scriptState->executionContext())
- return false;
-
- ScriptState::Scope scope(scriptState);
- v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Global(), scriptState->isolate());
-
- v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(), value);
- v8::Local<v8::Value> argv[] = { valueHandle };
- ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethodWithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scriptState->context()->Global(), scriptState->isolate());
- v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortArgumentImplementedInPrivateScript", holder, 1, argv);
- if (v8Value.IsEmpty())
- return false;
- int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, exceptionState);
- if (exceptionState.throwIfNeeded())
- return false;
- *result = cppValue;
- RELEASE_ASSERT(!exceptionState.hadException());
- return true;
-}
-
void V8TestInterfacePartial::initialize()
{
// Should be invoked from initModules.
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698