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

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

Issue 874303003: Move sky-box,-button,-checkbox,-radio out of their directories (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/framework/sky-button.sky ('k') | sky/framework/sky-checkbox.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-button/sky-button.sky
diff --git a/sky/framework/sky-button/sky-button.sky b/sky/framework/sky-button/sky-button.sky
deleted file mode 100644
index 34f255a026b403c9ca933d8ac31cd4b0ed38f5c4..0000000000000000000000000000000000000000
--- a/sky/framework/sky-button/sky-button.sky
+++ /dev/null
@@ -1,49 +0,0 @@
-<!--
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
--->
-<import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" />
-
-<sky-element
- name="sky-button"
- attributes="highlight:boolean"
- on-pointerdown="handlePointerDown"
- on-pointerup="handlePointerUp"
- on-pointercancel="handlePointerCancel">
-<template>
- <style>
- :host {
- display: inline-flex;
- border-radius: 4px;
- justify-content: center;
- align-items: center;
- border: 1px solid blue;
- -webkit-user-select: none;
- margin: 5px;
- }
- :host([highlight=true]) {
- background-color: orange;
- }
- </style>
- <content />
-</template>
-<script>
-module.exports = class extends SkyElement {
- created() {
- super.created();
-
- this.tabIndex = 0; // Make focusable.
- }
- handlePointerDown() {
- this.highlight = true;
- }
- handlePointerUp() {
- this.highlight = false;
- }
- handlePointerCancel() {
- this.highlight = false;
- }
-}.register();
-</script>
-</sky-element>
« no previous file with comments | « sky/framework/sky-button.sky ('k') | sky/framework/sky-checkbox.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698