コード例 #1
0
JSValue jsCoordinatesAccuracy(ExecState* exec, JSValue slotBase, const Identifier&)
{
    JSCoordinates* castedThis = static_cast<JSCoordinates*>(asObject(slotBase));
    UNUSED_PARAM(exec);
    Coordinates* imp = static_cast<Coordinates*>(castedThis->impl());
    JSValue result = jsNumber(exec, imp->accuracy());
    return result;
}
コード例 #2
0
 static v8::Handle<v8::Value> accuracyAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) {
   INC_STATS("DOM.Coordinates.accuracy._get");
   Coordinates* imp = V8Coordinates::toNative(info.Holder());
   return v8::Number::New(imp->accuracy());
 }