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

Unified Diff: base/mac/bind_objc_block.h

Issue 10818034: Adding the possibility to build a closure from an ObjectiveC block. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding whitespace. Created 8 years, 5 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
Index: base/mac/bind_objc_block.h
diff --git a/base/mac/bind_objc_block.h b/base/mac/bind_objc_block.h
new file mode 100644
index 0000000000000000000000000000000000000000..5cde9d383872754c83f8846db32c90a2b8de2f44
--- /dev/null
+++ b/base/mac/bind_objc_block.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2012 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.
+
+#ifndef BASE_MAC_BIND_OBJC_BLOCK_H_
+#define BASE_MAC_BIND_OBJC_BLOCK_H_
+
+#include "base/callback_forward.h"
+
+namespace base {
+
+// Construct a closure from an objective-C block.
+base::Closure BindBlock(void(^block)());
+
+} // namespace base
+
+#endif // BASE_MAC_BIND_OBJC_BLOCK_H_
« no previous file with comments | « base/base.gypi ('k') | base/mac/bind_objc_block.mm » ('j') | base/mac/bind_objc_block.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698