Adding the possibility to build a closure from an ObjectiveC block.
[chromium-blink-merge.git] / base / mac / bind_objc_block.h
blob5cde9d383872754c83f8846db32c90a2b8de2f44
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_MAC_BIND_OBJC_BLOCK_H_
6 #define BASE_MAC_BIND_OBJC_BLOCK_H_
8 #include "base/callback_forward.h"
10 namespace base {
12 // Construct a closure from an objective-C block.
13 base::Closure BindBlock(void(^block)());
15 } // namespace base
17 #endif // BASE_MAC_BIND_OBJC_BLOCK_H_