-
Notifications
You must be signed in to change notification settings - Fork 4
/
145.txt
117 lines (84 loc) · 5 KB
/
145.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
* 仕様書
[REFS[
- [16] [CITE@en[Vibration API]] ([TIME[2014-11-20 01:59:39 +09:00]] 版) <http://dev.w3.org/2009/dap/vibration/>
]REFS]
* メソッド
[23] [CODE(DOMm)@en[[[vibrate]]]]
[[メソッド]]は、 [CODE(DOMi)@en[[[VibratePattern]]]] [[型]]の[[引数]]を持ちます [SRC[>>16]]。
[25] [CODE(DOMm)@en[[[vibrate]]]] [[メソッド]]は、
[[バイブレーションパターンの処理]]を実行しなければ[['''なりません''']] [SRC[>>16]]。
すなわち、[[引数]]を[[検証および正規化]]し、[[バイブレーションを実施]]しなければなりません
[SRC[>>16]]。
[26] ただし、[CODE(JS)@en[[[document.hidden]]]] が[[真]]なら、
実施せずに[[偽]]を返します [SRC[>>16]]。しかしながら、 [[OS]]
の機能と深く統合された[[特権]]を持った[[アプリケーション]]は、
その場合でも本条項に従う必要はありません [SRC[>>16]]。
;; [27] どの [CODE(DOMi)@en[[[Document]]]] の [CODE(DOMa)@en[[[hidden]]]]
[[属性]]なのかは明らかではありません。当該 [CODE(DOMi)@en[[[Navigator]]]]
[[オブジェクト]]が属する [CODE(DOMi)@en[[[Window]]]] の[[閲覧文脈]]の[[文書]]ということで良いのでしょうか。
[24] [CODE(DOMm)@en[[[vibrate]]]] [[メソッド]]の[[戻り値]]の[[型]]は、
[CODE(IDL)@en[[[boolean]]]] です [SRC[>>16]]。この値は[[バイブレーションを実施]]できたかどうかを表しています。
* 歴史
** ガラケー時代
[17] [[ガラケー]]の中には、[[HTML]] の [DFN[[CODE(HTMLa)@en[[[vibration]]]]]]
[[属性]]や [DFN[[CODE(HTMLa)@en[[[viblength]]]]]] [[属性]]によって[[バイブレーション]]の挙動を指定できるものもありました。
[20] この2つの[[属性]]は、 [CODE(HTMLe)@en[[[a]]]] [[要素]]、
[CODE(HTMLe)@en[[[input]]]] [[要素]]、
[CODE(HTMLe)@en[[[img]]]] [[要素]]に存在していました。
[19] [CODE(HTMLe)@en[[[img]]]] [[要素]]の [CODE(HTMLa)@en[[[vibration]]]]
[[属性]]は、対応機種のサポート終了により2010年4月の2.1.0版で削除されました。
[WEAK[(他の[[要素]]では存続。)]]
;; [18] これらの[[属性]]は標準化されることなく、[[ガラケー]]の衰退により使われなくなりました。
** Vibration API
[1] [CITE@en[Vibration API]]
( ([TIME[2011-11-17 21:51:59 +09:00]] 版))
<http://www.w3.org/TR/2011/WD-vibration-20111117/>
[2] [CITE[Bug 679966 – WebVibrator]]
( ([TIME[2011-11-18 08:22:05 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=679966>
[3] [CITE@en[Vibration API]]
( ([TIME[2012-05-03 23:34:31 +09:00]] 版))
<http://www.w3.org/TR/2012/CR-vibration-20120508/>
[4] [CITE[cordova-plugin-vibration/doc/index.md at master · apache/cordova-plugin-vibration · GitHub]]
( ([TIME[2014-06-11 00:39:40 +09:00]] 版))
<https://github.com/apache/cordova-plugin-vibration/blob/master/doc/index.md>
[5] [CITE@en[Cordova and w3c spec Algnment - Vibration Gap Analysis]]
( ([[Lisa Seacat DeLuca]] 著, [TIME[2014-06-09 23:20:25 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-webapps/2014AprJun/0868.html>
[8] [CITE@en[Vibration API]]
( ([TIME[2012-02-02 01:38:44 +09:00]] 版))
<http://www.w3.org/TR/2012/WD-vibration-20120202/>
[9] [CITE@en[Vibration API]]
( ([TIME[2013-05-23 21:41:39 +09:00]] 版))
<http://www.w3.org/TR/2013/WD-vibration-20130523/>
[10] [CITE@en[Vibration API]]
( ([TIME[2013-07-23 02:25:43 +09:00]] 版))
<http://www.w3.org/TR/2013/CR-vibration-20130723/>
[11] [CITE@en[Vibration API]]
( ([TIME[2014-02-10 23:36:36 +09:00]] 版))
<http://www.w3.org/TR/2014/WD-vibration-20140211/>
[12] [CITE@en[Vibration API]]
( ([TIME[2014-06-16 23:39:19 +09:00]] 版))
<http://www.w3.org/TR/2014/WD-vibration-20140619/>
[13] [CITE@en[Vibration API]]
( ([TIME[2014-09-04 19:19:32 +09:00]] 版))
<http://www.w3.org/TR/2014/CR-vibration-20140909/>
[15] [CITE@en[Vibration]]
( ([[Anne van Kesteren]] 著, [TIME[2014-10-09 21:46:44 +09:00]] 版))
<http://lists.w3.org/Archives/Public/www-archive/2014Oct/0000.html>
[14] [CITE@en[Integrate vibration · f57831c · whatwg/notifications]]
( ([TIME[2014-11-21 01:39:14 +09:00]] 版))
<https://github.com/whatwg/notifications/commit/f57831c11f90ec31b01a042508580bd45d74bb6c>
[6] [CITE@en[Vibration API]]
( ([TIME[2014-12-08 16:37:11 +09:00]] 版))
<http://www.w3.org/TR/2014/PR-vibration-20141209/>
[7] [CITE@en[Vibration API]]
( ([TIME[2015-02-06 02:28:12 +09:00]] 版))
<http://www.w3.org/TR/2015/REC-vibration-20150210/>
[21] [CITE@en[Vibration API: All Results]]
([TIME[2014-12-08 17:31:14 +09:00]] 版)
<http://w3c.github.io/test-results/vibration/20141118.html>
[22] >>21 の[[実装報告]]によると、 [[Firefox]] と [[Chrome]] が対応しています。
[28] [CITE@en[Add Notification.prototype.vibrate. Fixes #43. · whatwg/notifications@4661293]]
([TIME[2015-07-16 13:01:53 +09:00]] 版)
<https://github.com/whatwg/notifications/commit/4661293aa4e2dcd46c9db5e163f3781914835f87>