From a3ec50437d3deeece49d5222fc95ac9d89731965 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 25 Jun 2015 22:01:57 +0800 Subject: [PATCH] Rename event name to gpu-process-crashed --- atom/browser/api/atom_api_app.cc | 2 +- docs/api/app.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_app.cc b/atom/browser/api/atom_api_app.cc index 018ca1f..fea4ded 100644 --- a/atom/browser/api/atom_api_app.cc +++ b/atom/browser/api/atom_api_app.cc @@ -210,7 +210,7 @@ void App::OnSelectCertificate( } void App::OnGpuProcessCrashed(base::TerminationStatus exit_code) { - Emit("gpu-crashed"); + Emit("gpu-process-crashed"); } base::FilePath App::GetPath(mate::Arguments* args, const std::string& name) { diff --git a/docs/api/app.md b/docs/api/app.md index fd48855..89df0e7 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -125,7 +125,7 @@ app.on('select-certificate', function(event, host, url, list, callback) { `event.preventDefault()` prevents from using the first certificate from the store. -### Event: 'gpu-crashed' +### Event: 'gpu-process-crashed' Emitted when the gpu process is crashed. -- 2.7.4