Merge the logic of managing ViewsDelegate

This commit is contained in:
Cheng Zhao 2018-04-19 15:38:33 +09:00
parent 9bc79f840e
commit 1c6c75da4f
4 changed files with 12 additions and 18 deletions

View file

@ -15,6 +15,12 @@
class BrowserProcess;
#if defined(TOOLKIT_VIEWS)
namespace brightray {
class ViewsDelegate;
}
#endif
namespace atom {
class AtomBindings;
@ -76,6 +82,8 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts {
#if defined(OS_MACOSX)
std::unique_ptr<ViewsDelegateMac> views_delegate_;
#else
std::unique_ptr<brightray::ViewsDelegate> views_delegate_;
#endif
// A fake BrowserProcess object that used to feed the source code from chrome.