Subversion Repositories Kolibri OS

Rev

Rev 5746 | Rev 5749 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5746 Rev 5747
Line 586... Line 586...
586
	strcpy(#editURL, #URL);
586
	strcpy(#editURL, #URL);
587
	BrowserHistory.AddUrl();
587
	BrowserHistory.AddUrl();
588
	if (!strncmp(#URL,"WebView:",8))
588
	if (!strncmp(#URL,"WebView:",8))
589
	{
589
	{
590
		SetPageDefaults();
590
		SetPageDefaults();
591
		if (!strcmp(#URL, URL_SERVICE_HOME)) LoadInternalPage(#homepage, sizeof(homepage));
591
		if (!strcmp(#URL, URL_SERVICE_HOME)) WB1.LoadInternalPage(#homepage, sizeof(homepage));
592
		else if (!strcmp(#URL, URL_SERVICE_HISTORY)) ShowHistory();
592
		else if (!strcmp(#URL, URL_SERVICE_HISTORY)) ShowHistory();
593
		return;
593
		return;
594
	}
594
	}
595
	if (!strncmp(#URL,"http:",5))
595
	if (!strncmp(#URL,"http:",5))
596
	{
596
	{
Line 636... Line 636...
636
	if (!bufsize)
636
	if (!bufsize)
637
	{
637
	{
638
		PageLinks.Clear();
638
		PageLinks.Clear();
639
		if (http_transfer)
639
		if (http_transfer)
640
		{
640
		{
641
			LoadInternalPage(#loading, sizeof(loading));
641
			WB1.LoadInternalPage(#loading, sizeof(loading));
642
		}
642
		}
643
		else
643
		else
644
			LoadInternalPage(#page_not_found, sizeof(page_not_found));
644
			WB1.LoadInternalPage(#page_not_found, sizeof(page_not_found));
645
	}
645
	}
646
	else
646
	else
647
		WB1.Parse();
647
		WB1.Parse();
Line 648... Line 648...
648
 
648
 
Line 654... Line 654...
654
{
654
{
655
	if (!strcmpi(#URL + strlen(#URL) - strlen(ext), ext)) return true;
655
	if (!strcmpi(#URL + strlen(#URL) - strlen(ext), ext)) return true;
656
	return false;
656
	return false;
657
}
657
}
Line 658... Line -...
658
 
-
 
659
void LoadInternalPage(dword bufpos, in_filesize){
-
 
660
	bufsize = in_filesize;
-
 
661
	bufpointer = bufpos;
-
 
662
	WB1.Parse();
-
 
663
}
-
 
Line 664... Line 658...
664
 
658
 
665
 
659
 
666
 
660