OLD | NEW |
1 // Copyright (c) 2009 The chrome Authors. All rights reserved. | 1 // Copyright (c) 2009 The chrome 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 script contains privileged chrome extension related javascript APIs. | 5 // This script contains privileged chrome extension related javascript APIs. |
6 // It is loaded by pages whose URL has the chrome-extension protocol. | 6 // It is loaded by pages whose URL has the chrome-extension protocol. |
7 | 7 |
8 var chrome = chrome || {}; | 8 var chrome = chrome || {}; |
9 (function() { | 9 (function() { |
10 native function GetExtensionAPIDefinition(); | 10 native function GetExtensionAPIDefinition(); |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 throw new Error( | 356 throw new Error( |
357 "Either the iconIndex or imageData property must be specified."); | 357 "Either the iconIndex or imageData property must be specified."); |
358 } | 358 } |
359 } | 359 } |
360 | 360 |
361 setupBrowserActionEvent(extensionId); | 361 setupBrowserActionEvent(extensionId); |
362 setupPageActionEvents(extensionId); | 362 setupPageActionEvents(extensionId); |
363 setupToolstripEvents(GetRenderViewId()); | 363 setupToolstripEvents(GetRenderViewId()); |
364 }); | 364 }); |
365 })(); | 365 })(); |
OLD | NEW |