Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: examples/graphics/life/life.css

Issue 6286025: Port the Life example to Pepper 2. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « examples/graphics/life/life.cc ('k') | examples/graphics/life/life.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /* Copyright 2011 The Native Client SDK Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can
3 * be found in the LICENSE file.
4 */
5
6 /* These div ids are used together to implement a work-around for event
7 * bubbling when using a NaCl module. Using these div ids allows you to
8 * handle user events in the browser, instead of the events being passed into
9 * the NaCl <embed> element. The event layer stacks on top of the NaCl layer
10 * so that it captures the user events, like this:
11 * |--------------------|
12 * | |----------------| |
13 * | | |------------| | |
14 * | | | Event layer| | |
15 * | | |------------| | |
16 * | | NaCl layer | |
17 * | |----------------| |
18 * | Background layer |
19 * |--------------------|
20 */
21
22 /* The background layer. This establishes a Z-stack for the event and NaCl
23 * layers.
24 */
25 .background_layer {
26 position: relative;
27 z-index: 0;
28 }
29
30 /* The event layer. This layer has to completely cover the NaCl layer, and
31 * have a higher z-order. This layer captures the user events and doesn't
32 * let them get through to the NaCl layer. Note that |width| and |height|
33 * need to match the corresponding attributes of the <embed> tag that
34 * contains the NaCl module.
35 */
36 .event_layer {
37 position: absolute;
38 top: 0;
39 left: 0;
40 width: 400;
41 height: 400;
42 z-index: 2;
43 }
44
45 /* The NaCl layer. This layer contains the NaCl module. It must have a
46 * lower z-index than the event layer.
47 */
48 .nacl_module_layer {
49 position: absolute;
50 top: 0;
51 left: 0;
52 z-index: 1;
53 }
OLDNEW
« no previous file with comments | « examples/graphics/life/life.cc ('k') | examples/graphics/life/life.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698