From 18b77a4de6b9d91e002a82d3b065f78671622a9e Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 29 Apr 2019 16:57:32 +0200 Subject: [PATCH] chore: rename atom-binding-setup.ts to electron-binding-setup.ts (#17949) --- filenames.auto.gni | 6 +++--- filenames.gni | 2 +- .../{atom-binding-setup.ts => electron-binding-setup.ts} | 0 lib/common/init.ts | 2 +- lib/content_script/init.js | 2 +- lib/isolated_renderer/init.js | 2 +- lib/sandboxed_renderer/init.js | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename lib/common/{atom-binding-setup.ts => electron-binding-setup.ts} (100%) diff --git a/filenames.auto.gni b/filenames.auto.gni index 0d729e8945d7..a96147b4aacb 100644 --- a/filenames.auto.gni +++ b/filenames.auto.gni @@ -116,9 +116,9 @@ auto_filenames = { "lib/common/api/is-promise.js", "lib/common/api/module-list.js", "lib/common/api/native-image.js", - "lib/common/atom-binding-setup.ts", "lib/common/buffer-utils.js", "lib/common/crash-reporter.js", + "lib/common/electron-binding-setup.ts", "lib/common/error-utils.js", "lib/common/web-view-methods.js", "lib/renderer/api/crash-reporter.js", @@ -152,7 +152,7 @@ auto_filenames = { ] isolated_browserify_deps = [ - "lib/common/atom-binding-setup.ts", + "lib/common/electron-binding-setup.ts", "lib/isolated_renderer/init.js", "lib/renderer/ipc-renderer-internal.ts", "lib/renderer/web-view/web-view-element.ts", @@ -163,7 +163,7 @@ auto_filenames = { ] context_script_browserify_deps = [ - "lib/common/atom-binding-setup.ts", + "lib/common/electron-binding-setup.ts", "lib/common/error-utils.js", "lib/content_script/init.js", "lib/renderer/chrome-api.ts", diff --git a/filenames.gni b/filenames.gni index 4d916217a5bf..5fdf50f576f8 100644 --- a/filenames.gni +++ b/filenames.gni @@ -54,10 +54,10 @@ filenames = { "lib/common/api/module-list.js", "lib/common/api/native-image.js", "lib/common/api/shell.js", - "lib/common/atom-binding-setup.ts", "lib/common/buffer-utils.js", "lib/common/clipboard-utils.js", "lib/common/crash-reporter.js", + "lib/common/electron-binding-setup.ts", "lib/common/error-utils.js", "lib/common/init.ts", "lib/common/parse-features-string.js", diff --git a/lib/common/atom-binding-setup.ts b/lib/common/electron-binding-setup.ts similarity index 100% rename from lib/common/atom-binding-setup.ts rename to lib/common/electron-binding-setup.ts diff --git a/lib/common/init.ts b/lib/common/init.ts index 30e9ecf9a3ba..e12a11b9dd01 100644 --- a/lib/common/init.ts +++ b/lib/common/init.ts @@ -1,7 +1,7 @@ import * as timers from 'timers' import * as util from 'util' -import { electronBindingSetup } from '@electron/internal/common/atom-binding-setup' +import { electronBindingSetup } from '@electron/internal/common/electron-binding-setup' process.electronBinding = electronBindingSetup(process._linkedBinding, process.type) diff --git a/lib/content_script/init.js b/lib/content_script/init.js index 4753657797ed..961135ae4256 100644 --- a/lib/content_script/init.js +++ b/lib/content_script/init.js @@ -4,7 +4,7 @@ const { EventEmitter } = require('events') -process.electronBinding = require('@electron/internal/common/atom-binding-setup').electronBindingSetup(nodeProcess._linkedBinding, 'renderer') +process.electronBinding = require('@electron/internal/common/electron-binding-setup').electronBindingSetup(nodeProcess._linkedBinding, 'renderer') const v8Util = process.electronBinding('v8_util') diff --git a/lib/isolated_renderer/init.js b/lib/isolated_renderer/init.js index b73e06a33dcf..e22d75934c1c 100644 --- a/lib/isolated_renderer/init.js +++ b/lib/isolated_renderer/init.js @@ -2,7 +2,7 @@ /* global nodeProcess, isolatedWorld */ -process.electronBinding = require('@electron/internal/common/atom-binding-setup').electronBindingSetup(nodeProcess._linkedBinding, 'renderer') +process.electronBinding = require('@electron/internal/common/electron-binding-setup').electronBindingSetup(nodeProcess._linkedBinding, 'renderer') const v8Util = process.electronBinding('v8_util') diff --git a/lib/sandboxed_renderer/init.js b/lib/sandboxed_renderer/init.js index a770027ab27b..bb9338b23e89 100644 --- a/lib/sandboxed_renderer/init.js +++ b/lib/sandboxed_renderer/init.js @@ -5,7 +5,7 @@ const events = require('events') const { EventEmitter } = events -process.electronBinding = require('@electron/internal/common/atom-binding-setup').electronBindingSetup(binding.get, 'renderer') +process.electronBinding = require('@electron/internal/common/electron-binding-setup').electronBindingSetup(binding.get, 'renderer') const v8Util = process.electronBinding('v8_util') // Expose browserify Buffer as a hidden value. This is used by C++ code to