Add converter for LPARAM
authorCheng Zhao <zcbenz@gmail.com>
Wed, 28 Oct 2015 11:43:05 +0000 (19:43 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 28 Oct 2015 11:43:05 +0000 (19:43 +0800)
atom/browser/api/atom_api_window.cc

index 45b57f5307bed5b882b4f2c47511962bd4bfb2ea..5d0a501629f87d5de8762f331d3fd05b763a7a85 100644 (file)
@@ -42,6 +42,14 @@ struct Converter<atom::TaskbarHost::ThumbarButton> {
   }
 };
 
+template<>
+struct Converter<LPARAM> {
+  static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
+                                   LPARAM val) {
+    return ConvertToV8(isolate, static_cast<int64_t>(val));
+  }
+};
+
 }  // namespace mate
 #endif