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

Side by Side Diff: third_party/polymer/v1_0/components/iron-pages/iron-pages.html

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 Polymer({ 65 Polymer({
66 66
67 is: 'iron-pages', 67 is: 'iron-pages',
68 68
69 behaviors: [ 69 behaviors: [
70 Polymer.IronResizableBehavior, 70 Polymer.IronResizableBehavior,
71 Polymer.IronSelectableBehavior 71 Polymer.IronSelectableBehavior
72 ], 72 ],
73 73
74 properties: {
75
76 // as the selected page is the only one visible, activateEvent
77 // is both non-sensical and problematic; e.g. in cases where a user
78 // handler attempts to change the page and the activateEvent
79 // handler immediately changes it back
80 activateEvent: {
81 value: null
82 }
83
84 },
85
74 observers: [ 86 observers: [
75 '_selectedPageChanged(selected)' 87 '_selectedPageChanged(selected)'
76 ], 88 ],
77 89
78 _selectedPageChanged: function(selected, old) { 90 _selectedPageChanged: function(selected, old) {
79 this.async(this.notifyResize); 91 this.async(this.notifyResize);
80 } 92 }
81 }); 93 });
82 94
83 </script> 95 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698