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

Side by Side Diff: remoting/webapp/js_proto/chrome_proto.js

Issue 493813002: Show MessageWindow from the background page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add support for confirm dialogs Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 // This file contains various hacks needed to inform JSCompiler of various 5 // This file contains various hacks needed to inform JSCompiler of various
6 // WebKit- and Chrome-specific properties and methods. It is used only with 6 // WebKit- and Chrome-specific properties and methods. It is used only with
7 // JSCompiler to verify the type-correctness of our code. 7 // JSCompiler to verify the type-correctness of our code.
8 8
9 /** @type {Object} */ 9 /** @type {Object} */
10 var chrome = {}; 10 var chrome = {};
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 this.state = ''; 325 this.state = '';
326 /** @type {string} */ 326 /** @type {string} */
327 this.type = ''; 327 this.type = '';
328 }; 328 };
329 329
330 /** @constructor */ 330 /** @constructor */
331 var AppWindow = function() { 331 var AppWindow = function() {
332 /** @type {Window} */ 332 /** @type {Window} */
333 this.contentWindow = null; 333 this.contentWindow = null;
334 /** @type {chrome.Event} */ 334 /** @type {chrome.Event} */
335 this.onClosed = null;
336 /** @type {chrome.Event} */
335 this.onRestored = null; 337 this.onRestored = null;
336 /** @type {chrome.Event} */ 338 /** @type {chrome.Event} */
337 this.onMaximized = null; 339 this.onMaximized = null;
338 /** @type {chrome.Event} */ 340 /** @type {chrome.Event} */
339 this.onFullscreened = null; 341 this.onFullscreened = null;
340 /** @type {string} */ 342 /** @type {string} */
341 this.id = ''; 343 this.id = '';
342 }; 344 };
343 345
344 AppWindow.prototype.close = function() {}; 346 AppWindow.prototype.close = function() {};
345 AppWindow.prototype.drawAttention = function() {}; 347 AppWindow.prototype.drawAttention = function() {};
346 AppWindow.prototype.maximize = function() {}; 348 AppWindow.prototype.maximize = function() {};
347 AppWindow.prototype.minimize = function() {}; 349 AppWindow.prototype.minimize = function() {};
348 AppWindow.prototype.restore = function() {}; 350 AppWindow.prototype.restore = function() {};
351 AppWindow.prototype.show = function() {};
349 AppWindow.prototype.fullscreen = function() {}; 352 AppWindow.prototype.fullscreen = function() {};
350 /** @return {boolean} */ 353 /** @return {boolean} */
351 AppWindow.prototype.isFullscreen = function() {}; 354 AppWindow.prototype.isFullscreen = function() {};
352 /** @return {boolean} */ 355 /** @return {boolean} */
353 AppWindow.prototype.isMaximized = function() {}; 356 AppWindow.prototype.isMaximized = function() {};
354 357
355 /** 358 /**
356 * @param {{rects: Array.<ClientRect>}} rects 359 * @param {{rects: Array.<ClientRect>}} rects
357 */ 360 */
358 AppWindow.prototype.setShape = function(rects) {}; 361 AppWindow.prototype.setShape = function(rects) {};
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 chrome.cast.initialize = 504 chrome.cast.initialize =
502 function(apiConfig, onInitSuccess, onInitError) {}; 505 function(apiConfig, onInitSuccess, onInitError) {};
503 506
504 /** 507 /**
505 * @param {function(chrome.cast.Session):void} successCallback 508 * @param {function(chrome.cast.Session):void} successCallback
506 * @param {function(chrome.cast.Error):void} errorCallback 509 * @param {function(chrome.cast.Error):void} errorCallback
507 */ 510 */
508 chrome.cast.requestSession = 511 chrome.cast.requestSession =
509 function(successCallback, errorCallback) {}; 512 function(successCallback, errorCallback) {};
510 513
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698