| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 cr.define('uber', function() { | 5 cr.define('uber', function() { |
| 6 var PageManager = cr.ui.pageManager.PageManager; | 6 var PageManager = cr.ui.pageManager.PageManager; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * A PageManager observer that updates the uber page. | 9 * A PageManager observer that updates the uber page. |
| 10 * @constructor | 10 * @constructor |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 * @param {boolean} replace If true, allow no history events to be created. | 46 * @param {boolean} replace If true, allow no history events to be created. |
| 47 * @override | 47 * @override |
| 48 */ | 48 */ |
| 49 updateHistory: function(path, replace) { | 49 updateHistory: function(path, replace) { |
| 50 var historyFunction = replace ? uber.replaceState : uber.pushState; | 50 var historyFunction = replace ? uber.replaceState : uber.pushState; |
| 51 historyFunction({}, path); | 51 historyFunction({}, path); |
| 52 }, | 52 }, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // Export | 55 // Export |
| 56 return { | 56 return {PageManagerObserver: PageManagerObserver}; |
| 57 PageManagerObserver: PageManagerObserver | |
| 58 }; | |
| 59 }); | 57 }); |
| OLD | NEW |