Merge pull request #5943 from bbondy/master

Allow obtaining system Pepper Flash path
This commit is contained in:
Cheng Zhao 2016-06-09 01:48:53 +00:00 committed by GitHub
commit b422c47b67
3 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,8 @@ int GetPathConstant(const std::string& name) {
return chrome::DIR_USER_PICTURES;
else if (name == "videos")
return chrome::DIR_USER_VIDEOS;
else if (name == "pepperFlashSystemPlugin")
return chrome::FILE_PEPPER_FLASH_SYSTEM_PLUGIN;
else
return -1;
}

View file

@ -346,6 +346,7 @@ You can request the following paths by the name:
* `music` Directory for a user's music.
* `pictures` Directory for a user's pictures.
* `videos` Directory for a user's videos.
* `pepperFlashSystemPlugin` Full path to the system version of the Pepper Flash plugin.
### `app.setPath(name, path)`

View file

@ -41,6 +41,8 @@ app.on('ready', () => {
});
```
The path to the system wide Pepper Flash plugin can also be obtained by calling `app.getPath('pepperFlashSystemPlugin')`.
## Enable Flash Plugin in a `<webview>` Tag
Add `plugins` attribute to `<webview>` tag.