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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-media-query/iron-media-query-extracted.js

Issue 1287713002: [MD settings] merge polymer 1.0.11; hack for settings checkbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 Polymer({
2 2
3 Polymer({
4
5 is: 'iron-media-query', 3 is: 'iron-media-query',
6 4
7 properties: { 5 properties: {
8 6
9 /** 7 /**
10 * The Boolean return value of the media query. 8 * The Boolean return value of the media query.
11 */ 9 */
12 queryMatches: { 10 queryMatches: {
13 type: Boolean, 11 type: Boolean,
14 value: false, 12 value: false,
(...skipping 24 matching lines...) Expand all
39 } 37 }
40 this._mq = window.matchMedia(query); 38 this._mq = window.matchMedia(query);
41 this._mq.addListener(this._mqHandler); 39 this._mq.addListener(this._mqHandler);
42 this.queryHandler(this._mq); 40 this.queryHandler(this._mq);
43 }, 41 },
44 42
45 queryHandler: function(mq) { 43 queryHandler: function(mq) {
46 this._setQueryMatches(mq.matches); 44 this._setQueryMatches(mq.matches);
47 } 45 }
48 46
49 }); 47 });
50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698