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

Unified Diff: sky/framework/sky-drawer.sky

Issue 950353003: Add a shadow to the sky-drawer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/stocks/stocks.sky ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-drawer.sky
diff --git a/sky/framework/sky-drawer.sky b/sky/framework/sky-drawer.sky
index a772d9874bbc511dc5be9f177a896ef2e16e27a8..d9a4e9ab7f8efc8eb1d8b6a9439b675669584ec6 100644
--- a/sky/framework/sky-drawer.sky
+++ b/sky/framework/sky-drawer.sky
@@ -3,10 +3,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-->
+<import src="shadow.sky" as="shadow" />
<import src="sky-element.sky" />
<import src="sky-scrollable.sky" />
-<sky-element>
+<sky-element attributes="level:number">
<template>
<style>
#mask {
@@ -63,6 +64,7 @@ class SkyDrawer extends SkyElement implements AnimationDelegate {
}
void shadowRootReady() {
+ shadow.applyTo(shadowRoot);
_mask = shadowRoot.getElementById('mask');
_mask.addEventListener('gesturetap', _handleMaskTap);
_content = shadowRoot.getElementById('content');
« no previous file with comments | « sky/examples/stocks/stocks.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698