зеркало из https://github.com/mozilla/pjs.git
Shack methods (rev saari, appr sdagley)
This commit is contained in:
Родитель
3e00fbe840
Коммит
4f9688ed4f
|
@ -2006,3 +2006,33 @@ char* CBrowserContext::Prompt(
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
|
||||
// ¥ FreeBuiltinElement
|
||||
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
|
||||
// Dispose of an embedded SHACK widget
|
||||
void
|
||||
CBrowserContext :: FreeBuiltinElement ( LO_BuiltinStruct* inBuiltinStruct )
|
||||
{
|
||||
CHTMLView* theCurrentView = ExtractHyperView(*this);
|
||||
Assert_(theCurrentView != NULL);
|
||||
if (theCurrentView != NULL)
|
||||
theCurrentView->FreeBuiltinElement(inBuiltinStruct);
|
||||
|
||||
} // FreeBuiltinElement
|
||||
|
||||
|
||||
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
|
||||
// ¥ DisplayBuiltin
|
||||
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
|
||||
// Create and display a SHACK tree widget in HTML area
|
||||
void
|
||||
CBrowserContext :: DisplayBuiltin ( int inLocation, LO_BuiltinStruct* inBuiltinStruct )
|
||||
{
|
||||
CHTMLView* theCurrentView = ExtractHyperView(*this);
|
||||
Assert_(theCurrentView != NULL);
|
||||
if (theCurrentView != NULL)
|
||||
theCurrentView->DisplayBuiltin(inLocation, inBuiltinStruct);
|
||||
|
||||
} // DisplayBuiltin
|
||||
|
|
|
@ -436,6 +436,12 @@ class CBrowserContext : public CNSContext
|
|||
int width,
|
||||
int height);
|
||||
|
||||
virtual void FreeBuiltinElement(
|
||||
LO_BuiltinStruct * inBuiltinStruct) ;
|
||||
virtual void DisplayBuiltin(
|
||||
int inLocation,
|
||||
LO_BuiltinStruct* inBuiltinStruct) ;
|
||||
|
||||
virtual char* Prompt(
|
||||
const char* inMessage,
|
||||
const char* inDefaultText);
|
||||
|
|
|
@ -1316,4 +1316,9 @@ void CNSContext::HandleClippingView(
|
|||
int /*y*/,
|
||||
int /*width*/,
|
||||
int /*height*/) {}
|
||||
void CNSContext::FreeBuiltinElement(
|
||||
LO_BuiltinStruct * /*inBuiltinStruct*/) {}
|
||||
void CNSContext::DisplayBuiltin(
|
||||
int /*inLocation*/,
|
||||
LO_BuiltinStruct* /*inBuiltinStruct*/) {}
|
||||
|
||||
|
|
|
@ -484,6 +484,12 @@ protected:
|
|||
int width,
|
||||
int height);
|
||||
|
||||
virtual void FreeBuiltinElement(
|
||||
LO_BuiltinStruct * inBuiltinStruct) ;
|
||||
virtual void DisplayBuiltin(
|
||||
int inLocation,
|
||||
LO_BuiltinStruct* inBuiltinStruct) ;
|
||||
|
||||
public:
|
||||
|
||||
static UInt32 sNSCWindowID; // Unique ID, incremented for each context
|
||||
|
|
Загрузка…
Ссылка в новой задаче