Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('gpu', function() { | 4 cr.define('gpu', function() { |
| 5 /** | 5 /** |
| 6 * This class provides a 'bridge' for communicating between javascript and the | 6 * This class provides a 'bridge' for communicating between javascript and the |
| 7 * browser. When run outside of WebUI, e.g. as a regular webpage, it provides | 7 * browser. When run outside of WebUI, e.g. as a regular webpage, it provides |
| 8 * synthetic data to assist in testing. | 8 * synthetic data to assist in testing. |
| 9 * @constructor | 9 * @constructor |
| 10 */ | 10 */ |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 }).bind(this)); | 149 }).bind(this)); |
| 150 }, | 150 }, |
| 151 | 151 |
| 152 /** | 152 /** |
| 153 * Returns an array of log messages issued by the GPU process, if any. | 153 * Returns an array of log messages issued by the GPU process, if any. |
| 154 */ | 154 */ |
| 155 get logMessages() { | 155 get logMessages() { |
| 156 return this.logMessages_; | 156 return this.logMessages_; |
| 157 }, | 157 }, |
| 158 | 158 |
| 159 /** | |
| 160 * Returns the value of the sandboxed row. | |
|
Jorge Lucangeli Obes
2015/11/04 18:04:44
Nit: I'd make it even more evident:
Returns the v
achuithb
2015/11/04 18:10:52
Done.
| |
| 161 */ | |
| 162 isSandboxedForTesting : function() { | |
| 163 for (i = 0; i < this.gpuInfo_.basic_info.length; ++i) { | |
| 164 var info = this.gpuInfo_.basic_info[i]; | |
| 165 if (info.description == "Sandboxed") | |
| 166 return info.value; | |
| 167 } | |
| 168 return false; | |
| 169 } | |
| 159 }; | 170 }; |
| 160 | 171 |
| 161 return { | 172 return { |
| 162 BrowserBridge: BrowserBridge | 173 BrowserBridge: BrowserBridge |
| 163 }; | 174 }; |
| 164 }); | 175 }); |
| OLD | NEW |