| 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 // ----------------------------------------------------------------------------- | 5 // ----------------------------------------------------------------------------- |
| 6 // NOTE: If you change this file you need to touch renderer_resources.grd to | 6 // NOTE: If you change this file you need to touch renderer_resources.grd to |
| 7 // have your change take effect. | 7 // have your change take effect. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 | 9 |
| 10 var chrome; | 10 var chrome = chrome || {}; |
| 11 (function() { | 11 (function() { |
| 12 native function GetViews(); | 12 native function GetViews(); |
| 13 native function GetWindow(); | 13 native function GetWindow(); |
| 14 native function GetCurrentWindow(); | 14 native function GetCurrentWindow(); |
| 15 native function GetLastFocusedWindow(); | 15 native function GetLastFocusedWindow(); |
| 16 native function CreateWindow(); | 16 native function CreateWindow(); |
| 17 native function UpdateWindow(); | 17 native function UpdateWindow(); |
| 18 native function RemoveWindow(); | 18 native function RemoveWindow(); |
| 19 native function GetAllWindows(); | 19 native function GetAllWindows(); |
| 20 native function GetTab(); | 20 native function GetTab(); |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 //---------------------------------------------------------------------------- | 487 //---------------------------------------------------------------------------- |
| 488 | 488 |
| 489 // Self. | 489 // Self. |
| 490 chrome.self = chrome.self || {}; | 490 chrome.self = chrome.self || {}; |
| 491 chrome.self.onConnect = new chrome.Event("channel-connect"); | 491 chrome.self.onConnect = new chrome.Event("channel-connect"); |
| 492 | 492 |
| 493 chrome.self.getViews = function() { | 493 chrome.self.getViews = function() { |
| 494 return GetViews(); | 494 return GetViews(); |
| 495 } | 495 } |
| 496 })(); | 496 })(); |
| OLD | NEW |