mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Document the return values of all methods in the docs
This commit is contained in:
committed by
Samuel Attard
parent
bf88fe32fd
commit
d2a701a465
@@ -23,7 +23,7 @@ zoom percent divided by 100, so 300% = 3.0.
|
||||
|
||||
### `webFrame.getZoomFactor()`
|
||||
|
||||
Returns the current zoom factor.
|
||||
Returns `Number` - The current zoom factor.
|
||||
|
||||
### `webFrame.setZoomLevel(level)`
|
||||
|
||||
@@ -35,7 +35,7 @@ limits of 300% and 50% of original size, respectively.
|
||||
|
||||
### `webFrame.getZoomLevel()`
|
||||
|
||||
Returns the current zoom level.
|
||||
Returns `Number` - The current zoom level.
|
||||
|
||||
### `webFrame.setZoomLevelLimits(minimumLevel, maximumLevel)`
|
||||
|
||||
@@ -109,6 +109,43 @@ this limitation.
|
||||
|
||||
### `webFrame.getResourceUsage()`
|
||||
|
||||
Returns `Object`:
|
||||
* `images` Object
|
||||
* `count` Integer
|
||||
* `size` Integer
|
||||
* `liveSize` Integer
|
||||
* `decodedSize` Integer
|
||||
* `purgedSize` Integer
|
||||
* `purgeableSize` Integer
|
||||
* `cssStyleSheets`
|
||||
* `count` Integer
|
||||
* `size` Integer
|
||||
* `liveSize` Integer
|
||||
* `decodedSize` Integer
|
||||
* `purgedSize` Integer
|
||||
* `purgeableSize` Integer
|
||||
* `xslStyleSheets`
|
||||
* `count` Integer
|
||||
* `size` Integer
|
||||
* `liveSize` Integer
|
||||
* `decodedSize` Integer
|
||||
* `purgedSize` Integer
|
||||
* `purgeableSize` Integer
|
||||
* `fonts`
|
||||
* `count` Integer
|
||||
* `size` Integer
|
||||
* `liveSize` Integer
|
||||
* `decodedSize` Integer
|
||||
* `purgedSize` Integer
|
||||
* `purgeableSize` Integer
|
||||
* `other`
|
||||
* `count` Integer
|
||||
* `size` Integer
|
||||
* `liveSize` Integer
|
||||
* `decodedSize` Integer
|
||||
* `purgedSize` Integer
|
||||
* `purgeableSize` Integer
|
||||
|
||||
Returns an object describing usage information of Blink's internal memory
|
||||
caches.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user