| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // <window-controls> shadow element implementation. | 6 // <window-controls> shadow element implementation. |
| 7 // | 7 // |
| 8 | 8 |
| 9 var chrome = requireNative('chrome').GetChrome(); | 9 var chrome = requireNative('chrome').GetChrome(); |
| 10 var forEach = require('utils').forEach; | 10 var forEach = require('utils').forEach; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 if (chrome.app.window.current().isMaximized()) { | 69 if (chrome.app.window.current().isMaximized()) { |
| 70 chrome.app.window.current().restore(); | 70 chrome.app.window.current().restore(); |
| 71 } else { | 71 } else { |
| 72 chrome.app.window.current().maximize(); | 72 chrome.app.window.current().maximize(); |
| 73 } | 73 } |
| 74 } | 74 } |
| 75 | 75 |
| 76 addTagWatcher('WINDOW-CONTROLS', function(addedNode) { | 76 addTagWatcher('WINDOW-CONTROLS', function(addedNode) { |
| 77 new WindowControls(addedNode); | 77 new WindowControls(addedNode); |
| 78 }); | 78 }); |
| OLD | NEW |