Support setting about panel options
This commit is contained in:
parent
2efb7a12cb
commit
7de6a06acf
4 changed files with 25 additions and 1 deletions
|
@ -253,4 +253,15 @@ void Browser::DockSetIcon(const gfx::Image& image) {
|
|||
setApplicationIconImage:image.AsNSImage()];
|
||||
}
|
||||
|
||||
void Browser::ShowAboutPanel() {
|
||||
NSDictionary* options = DictionaryValueToNSDictionary(about_panel_options_);
|
||||
[[AtomApplication sharedApplication]
|
||||
orderFrontStandardAboutPanelWithOptions:options];
|
||||
}
|
||||
|
||||
void Browser::SetAboutPanelOptions(const base::DictionaryValue& options) {
|
||||
about_panel_options_.Clear();
|
||||
about_panel_options_.MergeDictionary(&options);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue