[atom/common/api/atom_api_clipboard.cc](https://github.com/electron/electron/blob/master/atom/common/api/atom_api_clipboard.cc)

See TODO in the code.

/cc @gavignus 

atom/common/api/atom_api_clipboard.cc
base::string16 data;
  ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
  auto type = GetClipboardType(args);
  if (clipboard->IsFormatAvailable(
      ui::Clipboard::GetPlainTextWFormatType(), type)) {
    clipboard->ReadText(type, &data);
  } else if (clipboard->IsFormatAvailable(
             ui::Clipboard::GetPlainTextFormatType(), type)) {
    std::string result;
    clipboard->ReadAsciiText(type, &result);
    data = base::ASCIIToUTF16(result);
  }
  return data;
}
void Clipboard::WriteText(const base::string16& text, mate::Arguments* args) {