blob: 4b0ee2368faa078ea1b141374a4dcfcc4c61f152 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
namespace web {
// The type of the completion handler block that is called to inform about
// JavaScript execution completion. id will be backed up by different classes
// depending on resulting JS type: NSString (string), NSNumber (number or
// boolean), NSDictionary (object), NSArray (array), NSNull (null),
// NSDate (Date), nil (undefined).
typedef void (^JavaScriptResultBlock)(id, NSError*);
} // namespace