Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "devtools.inspectedWindow", | 7 "namespace": "devtools.inspectedWindow", |
| 8 "description": "Use the <code>chrome.devtools.inspectedWindow</code> API to interact with the inspected window: obtain the tab ID for the inspected page, ev aluate the code in the context of the inspected window, reload the page, or obta in the list of resources within the page.", | 8 "description": "Use the <code>chrome.devtools.inspectedWindow</code> API to interact with the inspected window: obtain the tab ID for the inspected page, ev aluate the code in the context of the inspected window, reload the page, or obta in the list of resources within the page.", |
| 9 "nocompile": true, | 9 "nocompile": true, |
| 10 "types": [ | 10 "types": [ |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 { | 169 { |
| 170 "name": "reload", | 170 "name": "reload", |
| 171 "type": "function", | 171 "type": "function", |
| 172 "description": "Reloads the inspected page.", | 172 "description": "Reloads the inspected page.", |
| 173 "parameters": [ | 173 "parameters": [ |
| 174 { | 174 { |
| 175 "type": "object", | 175 "type": "object", |
| 176 "name": "reloadOptions", | 176 "name": "reloadOptions", |
| 177 "optional": true, | 177 "optional": true, |
| 178 "properties": { | 178 "properties": { |
| 179 "ignoreCache": { | 179 "ignoreCache": { |
|
Takashi Toyoshima
2016/04/06 09:36:23
I believe this "ignoreCache" should not be changed
| |
| 180 "type": "boolean", | 180 "type": "boolean", |
| 181 "optional": true, | 181 "optional": true, |
| 182 "description": "When true, the loader will ignore the cache for all inspected page resources loaded before the <code>load</code> event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or withi n the Developer Tools window." | 182 "description": "When true, the loader will bypass the cache for all inspected page resources loaded before the <code>load</code> event is fired. The effect is similar to pressing Ctrl+Shift+R in the inspected window or withi n the Developer Tools window." |
| 183 }, | 183 }, |
| 184 "userAgent": { | 184 "userAgent": { |
| 185 "type": "string", | 185 "type": "string", |
| 186 "optional": true, | 186 "optional": true, |
| 187 "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resour ces of the inspected page. The string will also override the value of the <code> navigator.userAgent</code> property that's returned to any scripts that are runn ing within the inspected page." | 187 "description": "If specified, the string will override the value of the <code>User-Agent</code> HTTP header that's sent while loading the resour ces of the inspected page. The string will also override the value of the <code> navigator.userAgent</code> property that's returned to any scripts that are runn ing within the inspected page." |
| 188 }, | 188 }, |
| 189 "injectedScript": { | 189 "injectedScript": { |
| 190 "type": "string", | 190 "type": "string", |
| 191 "optional": true, | 191 "optional": true, |
| 192 "description": "If specified, the script will be injected into e very frame of the inspected page immediately upon load, before any of the frame' s scripts. The script will not be injected after subsequent reloads—for ex ample, if the user presses Ctrl+R." | 192 "description": "If specified, the script will be injected into e very frame of the inspected page immediately upon load, before any of the frame' s scripts. The script will not be injected after subsequent reloads—for ex ample, if the user presses Ctrl+R." |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 244 { | 244 { |
| 245 "name": "content", | 245 "name": "content", |
| 246 "type": "string", | 246 "type": "string", |
| 247 "description": "New content of the resource." | 247 "description": "New content of the resource." |
| 248 } | 248 } |
| 249 ] | 249 ] |
| 250 } | 250 } |
| 251 ] | 251 ] |
| 252 } | 252 } |
| 253 ] | 253 ] |
| OLD | NEW |