From 51573bae79b10b9733c1ab92cc790db185d8c5e7 Mon Sep 17 00:00:00 2001 From: Fuqiao Xue Date: Wed, 14 Oct 2020 14:24:58 +0800 Subject: [PATCH] Change Wake Lock to Screen Wake Lock (#516) * Change Wake Lock to Screen Wake Lock The spec has been converted to purely screen wake lock, and system lock will be moved to a new document. * Update the games roadmap as well --- data/{wake-lock.json => screen-wake-lock.json} | 0 games/lifecycle.html | 2 +- games/lifecycle.ja.html | 2 +- games/userinput.html | 2 +- games/userinput.ja.html | 2 +- js/translations.zh.json | 2 +- mobile/userinput.html | 2 +- mobile/userinput.zh.html | 2 +- 8 files changed, 7 insertions(+), 7 deletions(-) rename data/{wake-lock.json => screen-wake-lock.json} (100%) diff --git a/data/wake-lock.json b/data/screen-wake-lock.json similarity index 100% rename from data/wake-lock.json rename to data/screen-wake-lock.json diff --git a/games/lifecycle.html b/games/lifecycle.html index e5b79391..f4282792 100644 --- a/games/lifecycle.html +++ b/games/lifecycle.html @@ -27,7 +27,7 @@

Well-deployed technologies

Technologies in progress

-

Games may want to engage their users for a relatively long period of time. The Wake Lock API lets developers signal the needs to keep the screen up in these circumstances, avoiding situations where the screen gets turned off by mistake to save battery.

+

Games may want to engage their users for a relatively long period of time. The Screen Wake Lock API lets developers signal the needs to keep the screen up in these circumstances, avoiding situations where the screen gets turned off by mistake to save battery.

diff --git a/games/lifecycle.ja.html b/games/lifecycle.ja.html index 658890d8..e026cbc7 100644 --- a/games/lifecycle.ja.html +++ b/games/lifecycle.ja.html @@ -27,7 +27,7 @@

実装されている仕様

仕様化が進行中の仕様

-

ゲームは比較的長い時間にわたるユーザによる利用を想定しがちです。Wake Lock API を利用することで開発者が画面表示状態が必要であることを示すことが可能になり、バッテリを温存するために画面が消されることがないようにできます。

+

ゲームは比較的長い時間にわたるユーザによる利用を想定しがちです。Screen Wake Lock API を利用することで開発者が画面表示状態が必要であることを示すことが可能になり、バッテリを温存するために画面が消されることがないようにできます。

diff --git a/games/userinput.html b/games/userinput.html index 0c6af3e4..e5ca9d4b 100644 --- a/games/userinput.html +++ b/games/userinput.html @@ -82,7 +82,7 @@

Technologies in progress

-

Whether players are speaking commands to the game or interacting with them through non-haptic mechanisms, they risk seeing the screens turned off automatically by their devices screensaver. The Wake Lock API lets developers signal the needs to keep the screen up in these circumstances.

+

Whether players are speaking commands to the game or interacting with them through non-haptic mechanisms, they risk seeing the screens turned off automatically by their devices screensaver. The Screen Wake Lock API lets developers signal the needs to keep the screen up in these circumstances.

diff --git a/games/userinput.ja.html b/games/userinput.ja.html index b25bc542..dd1ca5b9 100644 --- a/games/userinput.ja.html +++ b/games/userinput.ja.html @@ -82,7 +82,7 @@

仕様化が進行中の仕様

-

ユーザがゲームへのコマンドを口頭で行う、もしくは非接触方法経由で操作を行うなどの手法をとる場合、デバイスのスクリーンセーバーにより画面が自動的に消灯されてしまう懸念があります。Wake Lock API により開発者はそのような状況下でも画面を点灯したままにしておくことが可能になります。

+

ユーザがゲームへのコマンドを口頭で行う、もしくは非接触方法経由で操作を行うなどの手法をとる場合、デバイスのスクリーンセーバーにより画面が自動的に消灯されてしまう懸念があります。Screen Wake Lock API により開発者はそのような状況下でも画面を点灯したままにしておくことが可能になります。

diff --git a/js/translations.zh.json b/js/translations.zh.json index e5b6dbc1..f2ccd741 100644 --- a/js/translations.zh.json +++ b/js/translations.zh.json @@ -299,7 +299,7 @@ "User Timing Level 2": "用户计时第二版", "Vibration API (Second Edition)": "振动 API", "Visual Viewport API": "可视视口 API", - "Wake Lock API": "唤醒锁 API", + "Screen Wake Lock API": "屏幕唤醒锁 API", "Web Animations": "Web 动画", "Web App Manifest - Application Information": "Web 应用清单——应用信息", "Web App Manifest": "Web 应用清单", diff --git a/mobile/userinput.html b/mobile/userinput.html index af158eae..608330b5 100644 --- a/mobile/userinput.html +++ b/mobile/userinput.html @@ -49,7 +49,7 @@

Technologies in progress

The Badging API defines a more subtle notification mechanism than Web Notifications, allowing Web applications that have been installed on the device (e.g. through a manifest file) to set an application-wide badge, typically shown next to the application's icon on the home screen, to notify the user when the state of the application has changed and might require their attention (e.g. a new message has arrived).

-

Whether users are speaking commands to their apps or working with them through non-haptic interactions, they risk seeing the screens turned off automatically by their devices screensaver. An early proposal for a Wake Lock API would let developers signal the needs to keep the screen up in these circumstances.

+

Whether users are speaking commands to their apps or working with them through non-haptic interactions, they risk seeing the screens turned off automatically by their devices screensaver. An early proposal for a Screen Wake Lock API would let developers signal the needs to keep the screen up in these circumstances.

diff --git a/mobile/userinput.zh.html b/mobile/userinput.zh.html index 13c342ec..30a565c0 100644 --- a/mobile/userinput.zh.html +++ b/mobile/userinput.zh.html @@ -49,7 +49,7 @@

开发中的技术

除了Web通知以外,标记 API定义了另一种通知机制,允许已经安装在设备上的 Web 应用(例如通过清单文件)设置一个标记,通常显示在主屏幕上应用程序的图标旁边,在应用程序的状态发生变化时通知用户可能需要注意的信息(如新消息)。

-

不论用户使用语音向它们的应用设备下达命令还是通过非触觉交互来处理这些命令,他们都面临着由于屏幕保护程序导致的屏幕自动关闭的风险。唤醒锁 API 让开发者在这种情况下保持屏幕不锁定。

+

不论用户使用语音向它们的应用设备下达命令还是通过非触觉交互来处理这些命令,他们都面临着由于屏幕保护程序导致的屏幕自动关闭的风险。屏幕唤醒锁 API 让开发者在这种情况下保持屏幕不锁定。