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

Side by Side Diff: chrome/browser/resources/md_history/constants.js

Issue 2318643003: MD History: truncate title to 300 chars in C++ instead of JS (Closed)
Patch Set: more !android Created 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Globals: 5 // Globals:
6 /** @const */ var RESULTS_PER_PAGE = 150; 6 /** @const */ var RESULTS_PER_PAGE = 150;
7 7
8 /** 8 /**
9 * Amount of time between pageviews that we consider a 'break' in browsing, 9 * Amount of time between pageviews that we consider a 'break' in browsing,
10 * measured in milliseconds. 10 * measured in milliseconds.
11 * @const 11 * @const
12 */ 12 */
13 var BROWSING_GAP_TIME = 15 * 60 * 1000; 13 var BROWSING_GAP_TIME = 15 * 60 * 1000;
14 14
15 /** 15 /**
16 * Maximum length of a history item title. Anything longer than this will be
17 * cropped to fit within this limit. This value is large enough that it will not
18 * be noticeable in a 960px wide history-item.
19 * @const
20 */
21 var TITLE_MAX_LENGTH = 300;
22
23 /**
24 * The largest bucket value for UMA histogram, based on entry ID. All entries 16 * The largest bucket value for UMA histogram, based on entry ID. All entries
25 * with IDs greater than this will be included in this bucket. 17 * with IDs greater than this will be included in this bucket.
26 * @const 18 * @const
27 */ 19 */
28 var UMA_MAX_BUCKET_VALUE = 1000; 20 var UMA_MAX_BUCKET_VALUE = 1000;
29 21
30 /** 22 /**
31 * The largest bucket value for a UMA histogram that is a subset of above. 23 * The largest bucket value for a UMA histogram that is a subset of above.
32 * @const 24 * @const
33 */ 25 */
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 }; 65 };
74 66
75 /** 67 /**
76 * @enum {number} 68 * @enum {number}
77 */ 69 */
78 var HistoryRange = { 70 var HistoryRange = {
79 ALL_TIME: 0, 71 ALL_TIME: 0,
80 WEEK: 1, 72 WEEK: 1,
81 MONTH: 2 73 MONTH: 2
82 }; 74 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/app.vulcanized.html ('k') | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698