Back to index

lightning-sunbird  0.9+nobinonly
Functions
CTextInputEventHandling.cpp File Reference
#include "CTextInputEventHandler.h"
#include "nsCRT.h"
#include "nsAutoBuffer.h"

Go to the source code of this file.

Functions

static pascal OSStatus TextInputHandler (EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData)
void InitializeTextInputEventHandling ()

Function Documentation

Definition at line 343 of file CTextInputEventHandling.cpp.

{
  static CTextInputEventHandler Singleton;
  EventTypeSpec eventTypes[5] = {
    {kEventClassTextInput, kEventTextInputUpdateActiveInputArea },
    {kEventClassTextInput, kEventTextInputUnicodeForKeyEvent },
    {kEventClassTextInput, kEventTextInputOffsetToPos },
    {kEventClassTextInput, kEventTextInputPosToOffset },
    {kEventClassTextInput, kEventTextInputGetSelectedText }
  };  
  
  EventHandlerUPP textInputUPP = NewEventHandlerUPP(TextInputHandler); 
  OSStatus err = InstallApplicationEventHandler( textInputUPP, 5, eventTypes, &Singleton, NULL);
  NS_ASSERTION(err==noErr, "Cannot install carbon event");
}

Here is the call graph for this function:

Here is the caller graph for this function:

static pascal OSStatus TextInputHandler ( EventHandlerCallRef  inHandlerCallRef,
EventRef  inEvent,
void inUserData 
) [static]

Definition at line 334 of file CTextInputEventHandling.cpp.

{
   CTextInputEventHandler* realHandler = (CTextInputEventHandler*)inUserData;
   return realHandler->HandleAll(inHandlerCallRef, inEvent);
}

Here is the call graph for this function:

Here is the caller graph for this function: