-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·276 lines (255 loc) · 9.73 KB
/
index.html
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>What's new in Android? The Web.</title>
<link rel="stylesheet" href="./static/slides.css">
</head>
<body>
<a id="deck" href="https://mkw.st/+">+Mike West (mkw.st/+), @mikewest</a>
<article id="slides">
<figure class="dark overlay">
<img src="./static/logo/bugdroid.png" class="flat" alt="" width="500">
<img src="./static/logo/chrome.png" class="build" alt="" width="200" style="position: absolute; left: 400px; top: 286px; background: rgba(255,255,255,0.4); border-radius: 125px;">
<h1>What's new, Android?</h1>
</figure>
<figure>
<img src="./static/logo/bavarian_chrome.png" class="flat" alt="I work for Chrome in Munich." width="600">
</figure>
<section id="intro">
<style>
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(-3600deg);
}
}
@-moz-keyframes spin {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(-3600deg);
}
}
#intro .droid {
position: absolute;
left: 50px;
top: 200px;
z-index: 2;
}
#intro.fully-built .droid {
left: 180px;
}
#intro .cloud {
position: absolute;
right: 0;
top: 225px;
z-index: 2;
}
#intro.fully-built .cloud {
right: 86px;
}
#intro.fully-built .chrome {
opacity: 0.5;
z-index: 1;
-webkit-animation: spin 4s linear infinite
}
</style>
<img src="./static/logo/bugdroid.png"
class="flat build droid"
alt="I'd like to talk a little about Android, "
width="250">
<img src="./static/logo/cloud.png"
class="flat build cloud"
alt="a little about the web, "
width="350">
<img src="./static/logo/chrome.png"
class="flat build chrome"
alt="and a lot about how we're bringing them closer together with Chrome."
width="400">
<span class="build" style="position: absolute;left: 444px; z-index: 10; top: 269px; font-size: 150px; color: #206dda; text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);">♥</span>
</section>
<section style="overflow:hidden;">
<img src="./static/logo/bugdroid.png"
class="flat"
alt=""
width="700"
style="opacity: 0.3; top: 225px; position: absolute;">
<h1 style="position:relative;z-index:5;"><a href="http://goo.gl/GdMjs">850,000 device<br> activations daily</a></h1>
<!--
<img src="./images/funnygraph.png" alt="That means we'll be activating one device per person per day in 2023. Ish."
class="build" style="position: absolute;z-index: 2;left: 195px;">
-->
</section>
<section style="overflow:hidden;">
<img src="./static/logo/bugdroid.png"
class="flat"
alt=""
width="700"
style="opacity: 0.3; top: 225px; position: absolute;">
<h1 style="position:relative;z-index:5;"><img src="./images/googleplay.png" alt="Google Play" class="flat"> offers<br><a href="http://goo.gl/GdMjs">450,000 apps</a></h1>
<h1 style="position:relative;z-index:5; margin-top:1em;">1 billion monthly downloads</h1>
</section>
<section style="overflow:hidden;" id="gateway">
<style>
#gateway img.droid {
-webkit-transition: all 3s ease;
-moz-transition: all 3s ease;
top: 261px;
left: 100px;
position: absolute;
}
#gateway[aria-hidden=false] img.droid {
top: 125px;
}
</style>
<img src="./static/logo/bugdroid.png"
class="flat droid"
alt=""
width="300">
<img src="./static/logo/cloud.png"
class="flat"
alt=""
width="700"
style="top: 225px; position: absolute;">
</section>
<section style="overflow:hidden;">
<img src="./static/logo/cloud.png"
class="flat"
alt=""
width="700"
style="opacity: 0.3; top: 225px; position: absolute;">
<img src="./images/mobile-internet-usage.png" alt="That's up from about 2% in 2010."
style="margin-top: 1em; z-index: 5; position: relative;">
</section>
<figure>
<img src="./images/chromeandroid.png" alt="Mobile is the future. Our goal is to be a shining example to pull the web forward, so Chrome has to be on mobile devices.">
</figure>
<figure>
<img src="./images/html5test.png" alt="Chrome brings serious HTML5 chops." width="900">
</figure>
<figure>
<a href="http://html5rocks.com/"><img src="./images/html5rocks.png" class="flat" width="676" alt="HTML5Rocks has all the details on the APIs I'm going to mention going forward."></a>
</figure>
<figure class="overlay dark">
<a href="http://goo.gl/RnlTU"><img src="./images/visualtools.jpeg" width="1000" height="700"></a>
<h2>Visuals</h2>
</figure>
<section>
<ul class="blocklist">
<li><code>position: fixed;</code></li>
<li>Hardware accelerated canvas</li>
<li>3D CSS Transforms/Transitions</li>
<li><code>requestAnimationFrame</code></li>
<li>(Early) camera API via<br> <code><input accept=""></code></li>
</ul>
</section>
<figure class="overlay dark">
<a href="http://goo.gl/KLWzX"><img src="./images/offline.jpeg" width="1000" height="700"></a>
<h2>Offline Support</h2>
</figure>
<section>
<h1><code><a href="http://www.html5rocks.com/en/tutorials/appcache/beginner/">Appcache</a></code></h1>
<pre><code>
CACHE MANIFEST
index.html
stylesheet.css
images/logo.png
scripts/main.js
</code></pre>
</section>
<section>
<h1><code>localStorage</code></h1>
<pre><code>
window.localStorage['key'] = 'string value';
</code></pre>
</section>
<section>
<h1><code><a href="http://www.html5rocks.com/en/tutorials/webdatabase/todo/">WebSQL</a></code></h1>
<pre><code>
var db = openDatabase('todo', '1.0', 5 * 1024 * 1024);
db.transaction(function(tx){
tx.executeSql(
<strong>"INSERT INTO todo(todo, added_on) VALUES (?,?)",
["Talk about Chrome.", new Date()],</strong>
onSuccessHandler,
onErrorHandler);
});
</code></pre>
</section>
<section>
<h1><code><a href="http://www.html5rocks.com/en/tutorials/indexeddb/todo/">IndexedDB</a></code></h1>
<pre><code>
var request = indexedDB.open("todo");
request.onsuccess = function(e) {
var db = e.target.result;
var trans = db.transaction(["todo"],
IDBTransaction.READ_WRITE, 0);
<strong>var req = trans.objectStore("todo").put({
"text": todoText,
"timeStamp" : new Date().getTime()
});</strong>
req.onsuccess = onSuccessHandler;
req.onerror = onErrorHandler;
};
</code></pre>
</section>
<section>
<h1><code><a href="http://www.html5rocks.com/en/tutorials/file/filesystem/">Filesystem APIs</a></code></h1>
<pre><code>
var fs = window.requestFileSystem(window.TEMPORARY,
5*1024*1024, onInitFs, errorHandler);
function onInitFs() {
fs.root.getFile(
'log.txt',
{create: true, exclusive: true},
function(fileEntry) {
// fileEntry.isFile === true
// fileEntry.name == 'log.txt'
// fileEntry.fullPath == '/log.txt'
}, errorHandler);
}
</code></pre>
</section>
<section>
<h1>Remote Debugging</h1>
<iframe width="853" height="480" src="https://www.youtube-nocookie.com/embed/s4zpL4VBbuU?rel=0" frameborder="0" allowfullscreen></iframe>
</section>
<section>
<ul class="blocklist">
<li>GPU diagnostics:<br><a href="chrome://gpu-internals">chrome://gpu-internals</a></li>
<li>AppCache debugging:<br><a href="chrome://appcache-internals">chrome://appcache-internals</a></li>
<li>Net stack debugging:<br><a href="chrome://net-internals">chrome://net-internals</a></li>
<li>Full list at <a href="about:about">about:about</a></li>
</ul>
</section>
<section>
<h1>We need your help!</h1>
<ul>
<li>Hammer on the beta, and file<br>bugs via <a href="http://new.mcrbug.com/">new.mcrbug.com</a></li>
<li style="margin-top:0.5em">Help us triage by starring<br>bugs at <a href="http://mcrbug.com/">mcrbug.com</a></li>
</ul>
</section>
<section>
<h1 style="font-size:40em;line-height:1;">?</h1>
<p style="color: #666; font-weight: 700;">+Mike West (mkw.st/+) mkwst@google.com</p>
</section>
</article>
<script src="./static/slide_controller.js"></script>
<script>
var sc = new SlideController('slides');
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6166875-6']);
_gaq.push(['_setDomainName', 'mkw.st']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>