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

Side by Side Diff: chrome/browser/resources/md_history/lazy_load.crisper.js

Issue 2361513003: MD History: Update sign in state in data source (Closed)
Patch Set: try another approach Created 4 years, 2 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 Polymer({ 1 Polymer({
2 is: 'iron-collapse', 2 is: 'iron-collapse',
3 behaviors: [ Polymer.IronResizableBehavior ], 3 behaviors: [ Polymer.IronResizableBehavior ],
4 properties: { 4 properties: {
5 horizontal: { 5 horizontal: {
6 type: Boolean, 6 type: Boolean,
7 value: false, 7 value: false,
8 observer: '_horizontalChanged' 8 observer: '_horizontalChanged'
9 }, 9 },
10 opened: { 10 opened: {
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 type: Boolean, 2123 type: Boolean,
2124 value: false 2124 value: false
2125 }, 2125 },
2126 hasSeenForeignData_: Boolean 2126 hasSeenForeignData_: Boolean
2127 }, 2127 },
2128 listeners: { 2128 listeners: {
2129 'toggle-menu': 'onToggleMenu_', 2129 'toggle-menu': 'onToggleMenu_',
2130 scroll: 'onListScroll_' 2130 scroll: 'onListScroll_'
2131 }, 2131 },
2132 attached: function() { 2132 attached: function() {
2133 chrome.send('otherDevicesInitialized');
2134 md_history.BrowserService.getInstance().recordHistogram(SYNCED_TABS_HISTOGRA M_NAME, SyncedTabsHistogram.INITIALIZED, SyncedTabsHistogram.LIMIT); 2133 md_history.BrowserService.getInstance().recordHistogram(SYNCED_TABS_HISTOGRA M_NAME, SyncedTabsHistogram.INITIALIZED, SyncedTabsHistogram.LIMIT);
2135 }, 2134 },
2136 getContentScrollTarget: function() { 2135 getContentScrollTarget: function() {
2137 return this; 2136 return this;
2138 }, 2137 },
2139 createInternalDevice_: function(session) { 2138 createInternalDevice_: function(session) {
2140 var tabs = []; 2139 var tabs = [];
2141 var separatorIndexes = []; 2140 var separatorIndexes = [];
2142 for (var i = 0; i < session.windows.length; i++) { 2141 for (var i = 0; i < session.windows.length; i++) {
2143 var windowId = session.windows[i].sessionId; 2142 var windowId = session.windows[i].sessionId;
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
3282 var cl = this.$.selectionBar.classList; 3281 var cl = this.$.selectionBar.classList;
3283 if (cl.contains('expand')) { 3282 if (cl.contains('expand')) {
3284 cl.remove('expand'); 3283 cl.remove('expand');
3285 cl.add('contract'); 3284 cl.add('contract');
3286 this._positionBar(this._pos.width, this._pos.left); 3285 this._positionBar(this._pos.width, this._pos.left);
3287 } else if (cl.contains('contract')) { 3286 } else if (cl.contains('contract')) {
3288 cl.remove('contract'); 3287 cl.remove('contract');
3289 } 3288 }
3290 } 3289 }
3291 }); 3290 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698