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

Unified Diff: mojo/edk/js/handle.h

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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
« no previous file with comments | « mojo/edk/js/drain_data.cc ('k') | mojo/edk/js/handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/js/handle.h
diff --git a/mojo/edk/js/handle.h b/mojo/edk/js/handle.h
index 3b95b17579de24d2a88a3b172dcf810c07c9c8ab..2470fac9f11d93396abbf1cc7bed8f5f585bb6b8 100644
--- a/mojo/edk/js/handle.h
+++ b/mojo/edk/js/handle.h
@@ -15,6 +15,8 @@
namespace mojo {
namespace edk {
+namespace js {
+
class HandleCloseObserver;
// Wrapper for mojo Handles exposed to JavaScript. This ensures the Handle
@@ -44,6 +46,7 @@ class HandleWrapper : public gin::Wrappable<HandleWrapper> {
base::ObserverList<HandleCloseObserver> close_observers_;
};
+} // namespace js
} // namespace edk
} // namespace mojo
@@ -72,26 +75,28 @@ struct Converter<mojo::MessagePipeHandle> {
// We need to specialize the normal gin::Handle converter in order to handle
// converting |null| to a wrapper for an empty mojo::Handle.
-template<>
-struct Converter<gin::Handle<mojo::edk::HandleWrapper> > {
+template <>
+struct Converter<gin::Handle<mojo::edk::js::HandleWrapper>> {
static v8::Handle<v8::Value> ToV8(
v8::Isolate* isolate,
- const gin::Handle<mojo::edk::HandleWrapper>& val) {
+ const gin::Handle<mojo::edk::js::HandleWrapper>& val) {
return val.ToV8();
}
- static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
- gin::Handle<mojo::edk::HandleWrapper>* out) {
+ static bool FromV8(v8::Isolate* isolate,
+ v8::Handle<v8::Value> val,
+ gin::Handle<mojo::edk::js::HandleWrapper>* out) {
if (val->IsNull()) {
- *out = mojo::edk::HandleWrapper::Create(isolate, MOJO_HANDLE_INVALID);
+ *out = mojo::edk::js::HandleWrapper::Create(isolate, MOJO_HANDLE_INVALID);
return true;
}
- mojo::edk::HandleWrapper* object = NULL;
- if (!Converter<mojo::edk::HandleWrapper*>::FromV8(isolate, val, &object)) {
+ mojo::edk::js::HandleWrapper* object = NULL;
+ if (!Converter<mojo::edk::js::HandleWrapper*>::FromV8(isolate, val,
+ &object)) {
return false;
}
- *out = gin::Handle<mojo::edk::HandleWrapper>(val, object);
+ *out = gin::Handle<mojo::edk::js::HandleWrapper>(val, object);
return true;
}
};
« no previous file with comments | « mojo/edk/js/drain_data.cc ('k') | mojo/edk/js/handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698