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

Side by Side Diff: third_party/polymer/v0_8/components/iron-media-query/iron-media-query.html

Issue 1162563004: Upgrade to 1.0 and switch clients to dom-repeat where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a layout import and remove the gzipped webanimation in reproduce.sh Created 5 years, 6 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
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 2 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also 6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 --> 8 -->
9 9
10 <link rel="import" href="../polymer/polymer.html"> 10 <link rel="import" href="../polymer/polymer.html">
11 11
12 <!-- 12 <!--
13 `iron-media-query` can be used to data bind to a CSS media query. 13 `iron-media-query` can be used to data bind to a CSS media query.
14 The `query` property is a bare CSS media query. 14 The `query` property is a bare CSS media query.
15 The `queryMatches` property is a boolean representing if the page matches that m edia query. 15 The `queryMatches` property is a boolean representing if the page matches that m edia query.
16 16
17 Example: 17 Example:
18 18
19 <iron-media-query query="(min-width: 600px)" queryMatches="{{queryMatches}}" ></iron-media-query> 19 <iron-media-query query="(min-width: 600px)" queryMatches="{{queryMatches}}" ></iron-media-query>
20 20
21 @group Polymer Core Elements 21 @group Iron Elements
22 @demo demo/index.html
23 @hero hero.svg
22 @element iron-media-query 24 @element iron-media-query
23 --> 25 -->
24 26
25 <script> 27 <script>
26 28
27 Polymer({ 29 Polymer({
28 30
29 is: 'iron-media-query', 31 is: 'iron-media-query',
30 32
31 properties: { 33 properties: {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 this.queryHandler(this._mq); 75 this.queryHandler(this._mq);
74 }, 76 },
75 77
76 queryHandler: function(mq) { 78 queryHandler: function(mq) {
77 this._setQueryMatches(mq.matches); 79 this._setQueryMatches(mq.matches);
78 } 80 }
79 81
80 }); 82 });
81 83
82 </script> 84 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698