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

Side by Side Diff: extensions/renderer/resources/window_controls.js

Issue 534163002: Move app.window API implementation to extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix OWNERS Created 6 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 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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698