Reorder switches

This commit is contained in:
Cheng Zhao 2015-11-10 22:17:27 +08:00
parent 961e06ba6c
commit d37aa8bed9
3 changed files with 48 additions and 43 deletions

View file

@ -60,7 +60,10 @@ void OnCapturePageDone(
callback.Run(gfx::Image::CreateFrom1xBitmap(bitmap));
}
// Convert min-width to minWidth recursively in the dictionary.
#if defined(OS_WIN)
// Convert binary data to Buffer.
v8::Local<v8::Value> ToBuffer(v8::Isolate* isolate, void* val, int size) {
auto buffer = node::Buffer::New(isolate, static_cast<char*>(val), size);
if (buffer.IsEmpty())