Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <include src="../uber/uber_utils.js"> | 5 <include src="../uber/uber_utils.js"> |
| 6 | 6 |
| 7 /////////////////////////////////////////////////////////////////////////////// | 7 /////////////////////////////////////////////////////////////////////////////// |
| 8 // Globals: | 8 // Globals: |
| 9 var RESULTS_PER_PAGE = 150; | 9 var RESULTS_PER_PAGE = 150; |
| 10 var MAX_SEARCH_DEPTH_MONTHS = 18; | 10 var MAX_SEARCH_DEPTH_MONTHS = 18; |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 862 | 862 |
| 863 return newHash.join('&'); | 863 return newHash.join('&'); |
| 864 }; | 864 }; |
| 865 | 865 |
| 866 /////////////////////////////////////////////////////////////////////////////// | 866 /////////////////////////////////////////////////////////////////////////////// |
| 867 // Document Functions: | 867 // Document Functions: |
| 868 /** | 868 /** |
| 869 * Window onload handler, sets up the page. | 869 * Window onload handler, sets up the page. |
| 870 */ | 870 */ |
| 871 function load() { | 871 function load() { |
| 872 cr.enablePlatformSpecificCSSRules(); | |
|
Dan Beam
2012/03/13 01:50:10
where is this necessary?
Evan Stade
2012/03/13 01:58:09
I put this here as a "it might be necessary" sort
| |
| 872 uber.onContentFrameLoaded(); | 873 uber.onContentFrameLoaded(); |
| 873 | 874 |
| 874 var searchField = $('search-field'); | 875 var searchField = $('search-field'); |
| 875 searchField.focus(); | 876 searchField.focus(); |
| 876 | 877 |
| 877 localStrings = new LocalStrings(); | 878 localStrings = new LocalStrings(); |
| 878 historyModel = new HistoryModel(); | 879 historyModel = new HistoryModel(); |
| 879 historyView = new HistoryView(historyModel); | 880 historyView = new HistoryView(historyModel); |
| 880 pageState = new PageState(historyModel, historyView); | 881 pageState = new PageState(historyModel, historyView); |
| 881 | 882 |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1132 historyView.reload(); | 1133 historyView.reload(); |
| 1133 } | 1134 } |
| 1134 | 1135 |
| 1135 // Add handlers to HTML elements. | 1136 // Add handlers to HTML elements. |
| 1136 document.addEventListener('DOMContentLoaded', load); | 1137 document.addEventListener('DOMContentLoaded', load); |
| 1137 | 1138 |
| 1138 // This event lets us enable and disable menu items before the menu is shown. | 1139 // This event lets us enable and disable menu items before the menu is shown. |
| 1139 document.addEventListener('canExecute', function(e) { | 1140 document.addEventListener('canExecute', function(e) { |
| 1140 e.canExecute = true; | 1141 e.canExecute = true; |
| 1141 }); | 1142 }); |
| OLD | NEW |