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

Side by Side Diff: remoting/webapp/jscompiler_hacks.js

Issue 12566035: Added survey butter-bar to web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 {HTMLElement} */ 9 /** @type {HTMLElement} */
10 Document.prototype.activeElement; 10 Document.prototype.activeElement;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // TODO(jamiewalch): Flesh this out with the correct type when we're a v2 app. 70 // TODO(jamiewalch): Flesh this out with the correct type when we're a v2 app.
71 /** @type {remoting.MockStorage} */ 71 /** @type {remoting.MockStorage} */
72 remoting.storage.local = null; 72 remoting.storage.local = null;
73 73
74 /** @type {Object} */ 74 /** @type {Object} */
75 chrome.storage = {}; 75 chrome.storage = {};
76 76
77 /** @type {remoting.MockStorage} */ 77 /** @type {remoting.MockStorage} */
78 chrome.storage.local; 78 chrome.storage.local;
79 79
80 /** @type {remoting.MockStorage} */
81 chrome.storage.sync;
82
80 /** @type {Object} */ 83 /** @type {Object} */
81 chrome.app.runtime = { 84 chrome.app.runtime = {
82 /** @type {Object} */ 85 /** @type {Object} */
83 onLaunched: { 86 onLaunched: {
84 /** @param {function():void} callback */ 87 /** @param {function():void} callback */
85 addListener: function(callback) {} 88 addListener: function(callback) {}
86 } 89 }
87 }; 90 };
88 91
89 /** @type {Object} */ 92 /** @type {Object} */
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 * @param {function(chrome.Window):void} callback */ 143 * @param {function(chrome.Window):void} callback */
141 chrome.windows.get = function(id, getInfo, callback) {} 144 chrome.windows.get = function(id, getInfo, callback) {}
142 145
143 /** @constructor */ 146 /** @constructor */
144 chrome.Window = function() { 147 chrome.Window = function() {
145 /** @type {string} */ 148 /** @type {string} */
146 this.state = ''; 149 this.state = '';
147 /** @type {string} */ 150 /** @type {string} */
148 this.type = ''; 151 this.type = '';
149 }; 152 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698