This commit is contained in:
smfr%smfr.org 2005-12-02 06:59:22 +00:00
Родитель de27d692d8
Коммит c9c2daf727
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -55,6 +55,7 @@ class nsIDragHelperService;
class nsIPrintSettings;
class nsIURI;
class nsISupports;
class nsISecureBrowserUI;
// Protocol implemented by anyone interested in progress
// related to a BrowserView. A listener should explicitly
@ -164,6 +165,7 @@ enum {
- (void)removeListener:(id <CHBrowserListener>)listener;
- (void)setContainer:(NSView<CHBrowserListener, CHBrowserContainer>*)container;
- (nsIDOMWindow*)getContentWindow; // addrefs
- (nsISecureBrowserUI*)getSecureBrowserUI; // addrefs
// nsIWebNavigation methods
- (void)loadURI:(NSString *)urlSpec referrer:(NSString*)referrer flags:(unsigned int)flags allowPopups:(BOOL)inAllowPopups;

Просмотреть файл

@ -360,6 +360,18 @@ const long NSFindPanelActionSetFindString = 7;
return window;
}
// addrefs return value
- (nsISecureBrowserUI*)getSecureBrowserUI
{
nsISecureBrowserUI* secureUI = nsnull;
nsIDocShell* docShell = [self getDocShell];
if (docShell)
docShell->GetSecurityUI(&secureUI);
return secureUI;
}
- (void)loadURI:(NSString *)urlSpec referrer:(NSString*)referrer flags:(unsigned int)flags allowPopups:(BOOL)inAllowPopups
{
nsCOMPtr<nsIWebNavigation> nav = do_QueryInterface(_webBrowser);