| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Functions related to controlling the modal ui state of the app. | 7 * Functions related to controlling the modal ui state of the app. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 } | 76 } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * Get the major mode that the app is running in. | 80 * Get the major mode that the app is running in. |
| 81 * @return {string} The app's current major mode. | 81 * @return {string} The app's current major mode. |
| 82 */ | 82 */ |
| 83 remoting.getMajorMode = function() { | 83 remoting.getMajorMode = function() { |
| 84 return remoting.currentMode.split('.')[0]; | 84 return remoting.currentMode.split('.')[0]; |
| 85 }; | 85 }; |
| OLD | NEW |