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

Unified Diff: third_party/WebKit/public/web/WebMojoBindings.h

Issue 2400563002: Adds Mojo IDL. (Closed)
Patch Set: fixes modulename typo Created 4 years, 2 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: third_party/WebKit/public/web/WebMojoBindings.h
diff --git a/third_party/WebKit/public/web/WebMojoBindings.h b/third_party/WebKit/public/web/WebMojoBindings.h
new file mode 100644
index 0000000000000000000000000000000000000000..e8084d3cfe99d2981d04db6dade70704b31999f8
--- /dev/null
+++ b/third_party/WebKit/public/web/WebMojoBindings.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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 WebMojoBindings_h
+#define WebMojoBindings_h
+
+#include "public/platform/InterfaceProvider.h"
+#include "public/platform/WebCommon.h"
+#include <v8.h>
+
+namespace blink {
+
+class WebMojoBindings {
+ public:
+ BLINK_EXPORT static v8::Local<v8::Value> createCore(v8::Isolate*,
+ v8::Local<v8::Context>);
+
+ BLINK_EXPORT static v8::Local<v8::Value> createInterfaceProvider(
esprehn 2016/10/10 20:59:46 Instead of providing a new API, I think you just w
alokp 2016/10/10 23:48:17 Sorry for my ignorance, can you point me to an exi
esprehn 2016/10/10 23:54:46 See for example WebTestingSupport::injectInternals
esprehn 2016/10/11 00:12:38 Err you can take a v8::Context directly instead to
alokp 2016/10/18 00:11:47 Added a TODO to do this in a follow-up patch. Wrap
+ v8::Isolate*,
+ v8::Local<v8::Context>,
+ std::unique_ptr<InterfaceProvider>);
+};
+
+} // namespace blink
+
+#endif // WebMojoBindings_h

Powered by Google App Engine
This is Rietveld 408576698