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

Side by Side Diff: chrome/browser/resources/ntp_search/mock/mock.js

Issue 10867021: NTP5: Improving the Tile Page resize logic (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing Dan's comments Created 8 years, 3 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(pedrosimonetti): document how to generate the data pseudo-automatically. 5 // TODO(pedrosimonetti): document how to generate the data pseudo-automatically.
6 !/^chrome:\/\/./.test(location.href) && (function() { 6 !/^chrome:\/\/./.test(location.href) && (function() {
7 7
8 var __chrome__ = chrome; 8 var __chrome__ = chrome;
9 var shouldRegisterData = !!window.chrome && !!window.chrome.send; 9 var shouldRegisterData = !!window.chrome && !!window.chrome.send;
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 }, 180 },
181 }; 181 };
182 182
183 //---------------------------------------------------------------------------- 183 //----------------------------------------------------------------------------
184 // Debug 184 // Debug
185 //---------------------------------------------------------------------------- 185 //----------------------------------------------------------------------------
186 186
187 var debugArgs = {}; 187 var debugArgs = {};
188 var debugStylesheet = null; 188 var debugStylesheet = null;
189 var animationSelectorSpeedMap = { 189 var animationSelectorSpeedMap = {
190 '#card-slider-frame': 250,
190 '.dot': 200, 191 '.dot': 200,
191 '.animate-page-height': 200, 192 '.animate-page-height': 200,
192 '.animate-grid-width': 200, 193 '.animate-grid-width': 200,
193 '.tile-grid-content': 200, 194 '.tile-grid-content': 200,
194 '.tile-row': 200, 195 '.tile-row': 200,
195 '.animate-grid-width .tile-cell': 200 196 '.animate-grid-width .tile-cell': 200
196 }; 197 };
197 198
198 function adjustAnimationSpeed(slownessFactor) { 199 function adjustAnimationSpeed(slownessFactor) {
199 slownessFactor = slownessFactor || 1; 200 slownessFactor = slownessFactor || 1;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 //---------------------------------------------------------------------------- 249 //----------------------------------------------------------------------------
249 // ChromeMock initialization 250 // ChromeMock initialization
250 //---------------------------------------------------------------------------- 251 //----------------------------------------------------------------------------
251 252
252 if (shouldRegisterData) { 253 if (shouldRegisterData) {
253 interceptLoadData(); 254 interceptLoadData();
254 } 255 }
255 256
256 window.chrome = ChromeMock; 257 window.chrome = ChromeMock;
257 })(); 258 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp_search/new_tab.css » ('j') | chrome/browser/resources/ntp_search/new_tab.css » ('J')

Powered by Google App Engine
This is Rietveld 408576698