message::~message() { if (pn_msg_) { impl().~impl(); // destroy in-place pn_message_free(pn_msg_); } }
TransitionOptions RasterLayer::getRasterHueRotateTransition() const { return impl().paint.template get<RasterHueRotate>().options; }
int ICMPSocket::sendTo(const SocketAddress& address, int flags) { return impl()->sendTo(0, 0, address, flags); }
JSValue* JSHTMLFrameElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case FrameBorderAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->frameBorder()); } case LongDescAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->longDesc()); } case MarginHeightAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->marginHeight()); } case MarginWidthAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->marginWidth()); } case NameAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->name()); } case NoResizeAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsBoolean(imp->noResize()); } case ScrollingAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->scrolling()); } case SrcAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->src()); } case ContentDocumentAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, WTF::getPtr(imp->contentDocument())) : jsUndefined(); } case ContentWindowAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return toJS(exec, WTF::getPtr(imp->contentWindow())); } case LocationAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsString(exec, imp->location()); } case WidthAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsNumber(exec, imp->width()); } case HeightAttrNum: { HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(impl()); return jsNumber(exec, imp->height()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }
void JSInt8Array::indexSetter(JSC::ExecState* exec, unsigned index, JSC::JSValue value) { impl()->set(index, static_cast<signed char>(value.toInt32(exec))); }
const message::property_map& message::properties() const { return impl().properties; }
const message::annotation_map& message::delivery_annotations() const { return impl().instructions; }
PropertyValue<float> RasterLayer::getRasterFadeDuration() const { return impl().paint.template get<RasterFadeDuration>().value; }
TransitionOptions RasterLayer::getRasterFadeDurationTransition() const { return impl().paint.template get<RasterFadeDuration>().options; }
Mutable<RasterLayer::Impl> RasterLayer::mutableImpl() const { return makeMutable<Impl>(impl()); }
TransitionOptions RasterLayer::getRasterContrastTransition() const { return impl().paint.template get<RasterContrast>().options; }
PropertyValue<float> RasterLayer::getRasterContrast() const { return impl().paint.template get<RasterContrast>().value; }
TransitionOptions RasterLayer::getRasterBrightnessMaxTransition() const { return impl().paint.template get<RasterBrightnessMax>().options; }
PropertyValue<float> RasterLayer::getRasterBrightnessMax() const { return impl().paint.template get<RasterBrightnessMax>().value; }
value& message::body() { return impl().body; }
const std::string& RasterLayer::getSourceID() const { return impl().source; }
message::property_map& message::properties() { return impl().properties; }
PropertyValue<float> RasterLayer::getRasterOpacity() const { return impl().paint.template get<RasterOpacity>().value; }
const message::annotation_map& message::message_annotations() const { return impl().annotations; }
TransitionOptions RasterLayer::getRasterOpacityTransition() const { return impl().paint.template get<RasterOpacity>().options; }
void message::decode(const std::vector<char> &s) { if (s.empty()) throw error("message decode: no data"); impl().clear(); check(pn_message_decode(pn_msg(), &s[0], s.size())); }
void JSFloat32Array::indexSetter(JSC::ExecState* exec, unsigned index, JSC::JSValue value) { impl()->set(index, static_cast<float>(value.toNumber(exec))); }
JSValue* JSSVGViewElement::getValueProperty(ExecState* exec, int token) const { switch (token) { case ViewTargetAttrNum: { SVGViewElement* imp = static_cast<SVGViewElement*>(impl()); return toJS(exec, WTF::getPtr(imp->viewTarget())); } case ExternalResourcesRequiredAttrNum: { SVGViewElement* imp = static_cast<SVGViewElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedBoolean>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedBoolean>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedBoolean>(obj.get(), imp); } } return toJS(exec, obj.get()); } case ViewBoxAttrNum: { SVGViewElement* imp = static_cast<SVGViewElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedRect> obj = imp->viewBoxAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedRect>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedRect>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedRect>(obj.get(), imp); } } return toJS(exec, obj.get()); } case PreserveAspectRatioAttrNum: { SVGViewElement* imp = static_cast<SVGViewElement*>(impl()); ASSERT(exec && exec->dynamicInterpreter()); RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated(); Frame* activeFrame = static_cast<ScriptInterpreter*>(exec->dynamicInterpreter())->frame(); if (activeFrame) { SVGDocumentExtensions* extensions = (activeFrame->document() ? activeFrame->document()->accessSVGExtensions() : 0); if (extensions) { if (extensions->hasGenericContext<SVGAnimatedPreserveAspectRatio>(obj.get())) ASSERT(extensions->genericContext<SVGAnimatedPreserveAspectRatio>(obj.get()) == imp); else extensions->setGenericContext<SVGAnimatedPreserveAspectRatio>(obj.get(), imp); } } return toJS(exec, obj.get()); } case ZoomAndPanAttrNum: { SVGViewElement* imp = static_cast<SVGViewElement*>(impl()); return jsNumber(imp->zoomAndPan()); } } return 0; }
JSC::JSValue JSFloat32Array::set(JSC::ExecState* exec) { return setWebGLArrayHelper(exec, impl(), toFloat32Array); }
JSC::JSValue JSInt8Array::set(JSC::ExecState* exec) { return setWebGLArrayHelper<Int8Array, signed char>(exec, impl()); }
void message::clear() { if (pn_msg_) { impl().clear(); pn_message_clear(pn_msg_); } }
ICMPSocket::ICMPSocket(SocketImpl* pImpl): Socket(pImpl) { if (!dynamic_cast<ICMPSocketImpl*>(impl())) throw InvalidArgumentException("Cannot assign incompatible socket"); }
const value& message::body() const { return impl().body; }
int ICMPSocket::receiveFrom(SocketAddress& address, int flags) { return impl()->receiveFrom(0, 0, address, flags); }
PropertyValue<float> RasterLayer::getRasterHueRotate() const { return impl().paint.template get<RasterHueRotate>().value; }