Microsoft.VisualStudio.R.Package.Browsers.WebBrowserServices.DoOpenVsBrowser C# (CSharp) Method

DoOpenVsBrowser() private method

private DoOpenVsBrowser ( WebBrowserRole role, string url ) : void
role WebBrowserRole
url string
return void
        private void DoOpenVsBrowser(WebBrowserRole role, string url) {
            IVsWindowFrame frame;
            IVsWebBrowser wb;
            var guid = GetRoleGuid(role);
            if(guid == Guid.Empty) {
                WebBrowserService.Navigate(url, (uint)__VSWBNAVIGATEFLAGS.VSNWB_ForceNew, out frame);
            } else {
                var flags = (uint)(__VSCREATEWEBBROWSER.VSCWB_AutoShow | 
                                   __VSCREATEWEBBROWSER.VSCWB_ForceNew | 
                                   __VSCREATEWEBBROWSER.VSCWB_StartCustom |
                                   __VSCREATEWEBBROWSER.VSCWB_ReuseExisting);
                var title = GetRoleWindowTitle(role);
                WebBrowserService.CreateWebBrowser(flags, guid, title, url, null, out wb, out frame);
            }
        }