LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsITextInputProcessorCallback.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsITextInputProcessorCallback.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsITextInputProcessorCallback_h__
       6             : #define __gen_nsITextInputProcessorCallback_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : /* For IDL files that don't want to include root IDL files. */
      14             : #ifndef NS_NO_VTABLE
      15             : #define NS_NO_VTABLE
      16             : #endif
      17             : class nsITextInputProcessor; /* forward declaration */
      18             : 
      19             : 
      20             : /* starting interface:    nsITextInputProcessorNotification */
      21             : #define NS_ITEXTINPUTPROCESSORNOTIFICATION_IID_STR "c0ce1add-82bb-45ab-b99a-42cfba7fd5d7"
      22             : 
      23             : #define NS_ITEXTINPUTPROCESSORNOTIFICATION_IID \
      24             :   {0xc0ce1add, 0x82bb, 0x45ab, \
      25             :     { 0xb9, 0x9a, 0x42, 0xcf, 0xba, 0x7f, 0xd5, 0xd7 }}
      26             : 
      27           0 : class NS_NO_VTABLE nsITextInputProcessorNotification : public nsISupports {
      28             :  public:
      29             : 
      30             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITEXTINPUTPROCESSORNOTIFICATION_IID)
      31             : 
      32             :   /* readonly attribute ACString type; */
      33             :   NS_IMETHOD GetType(nsACString & aType) = 0;
      34             : 
      35             :   /* readonly attribute unsigned long offset; */
      36             :   NS_IMETHOD GetOffset(uint32_t *aOffset) = 0;
      37             : 
      38             :   /* readonly attribute AString text; */
      39             :   NS_IMETHOD GetText(nsAString & aText) = 0;
      40             : 
      41             :   /* readonly attribute boolean collapsed; */
      42             :   NS_IMETHOD GetCollapsed(bool *aCollapsed) = 0;
      43             : 
      44             :   /* readonly attribute uint32_t length; */
      45             :   NS_IMETHOD GetLength(uint32_t *aLength) = 0;
      46             : 
      47             :   /* readonly attribute boolean reversed; */
      48             :   NS_IMETHOD GetReversed(bool *aReversed) = 0;
      49             : 
      50             :   /* readonly attribute ACString writingMode; */
      51             :   NS_IMETHOD GetWritingMode(nsACString & aWritingMode) = 0;
      52             : 
      53             :   /* readonly attribute boolean causedByComposition; */
      54             :   NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) = 0;
      55             : 
      56             :   /* readonly attribute boolean causedBySelectionEvent; */
      57             :   NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) = 0;
      58             : 
      59             :   /* readonly attribute boolean occurredDuringComposition; */
      60             :   NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) = 0;
      61             : 
      62             :   /* readonly attribute unsigned long removedLength; */
      63             :   NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) = 0;
      64             : 
      65             :   /* readonly attribute unsigned long addedLength; */
      66             :   NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) = 0;
      67             : 
      68             :   /* readonly attribute boolean causedOnlyByComposition; */
      69             :   NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) = 0;
      70             : 
      71             :   /* readonly attribute boolean includingChangesDuringComposition; */
      72             :   NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) = 0;
      73             : 
      74             :   /* readonly attribute boolean includingChangesWithoutComposition; */
      75             :   NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) = 0;
      76             : 
      77             : };
      78             : 
      79             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITextInputProcessorNotification, NS_ITEXTINPUTPROCESSORNOTIFICATION_IID)
      80             : 
      81             : /* Use this macro when declaring classes that implement this interface. */
      82             : #define NS_DECL_NSITEXTINPUTPROCESSORNOTIFICATION \
      83             :   NS_IMETHOD GetType(nsACString & aType) override; \
      84             :   NS_IMETHOD GetOffset(uint32_t *aOffset) override; \
      85             :   NS_IMETHOD GetText(nsAString & aText) override; \
      86             :   NS_IMETHOD GetCollapsed(bool *aCollapsed) override; \
      87             :   NS_IMETHOD GetLength(uint32_t *aLength) override; \
      88             :   NS_IMETHOD GetReversed(bool *aReversed) override; \
      89             :   NS_IMETHOD GetWritingMode(nsACString & aWritingMode) override; \
      90             :   NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override; \
      91             :   NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override; \
      92             :   NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override; \
      93             :   NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override; \
      94             :   NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override; \
      95             :   NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override; \
      96             :   NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override; \
      97             :   NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) override; 
      98             : 
      99             : /* Use this macro when declaring the members of this interface when the
     100             :    class doesn't implement the interface. This is useful for forwarding. */
     101             : #define NS_DECL_NON_VIRTUAL_NSITEXTINPUTPROCESSORNOTIFICATION \
     102             :   nsresult GetType(nsACString & aType); \
     103             :   nsresult GetOffset(uint32_t *aOffset); \
     104             :   nsresult GetText(nsAString & aText); \
     105             :   nsresult GetCollapsed(bool *aCollapsed); \
     106             :   nsresult GetLength(uint32_t *aLength); \
     107             :   nsresult GetReversed(bool *aReversed); \
     108             :   nsresult GetWritingMode(nsACString & aWritingMode); \
     109             :   nsresult GetCausedByComposition(bool *aCausedByComposition); \
     110             :   nsresult GetCausedBySelectionEvent(bool *aCausedBySelectionEvent); \
     111             :   nsresult GetOccurredDuringComposition(bool *aOccurredDuringComposition); \
     112             :   nsresult GetRemovedLength(uint32_t *aRemovedLength); \
     113             :   nsresult GetAddedLength(uint32_t *aAddedLength); \
     114             :   nsresult GetCausedOnlyByComposition(bool *aCausedOnlyByComposition); \
     115             :   nsresult GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition); \
     116             :   nsresult GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition); 
     117             : 
     118             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     119             : #define NS_FORWARD_NSITEXTINPUTPROCESSORNOTIFICATION(_to) \
     120             :   NS_IMETHOD GetType(nsACString & aType) override { return _to GetType(aType); } \
     121             :   NS_IMETHOD GetOffset(uint32_t *aOffset) override { return _to GetOffset(aOffset); } \
     122             :   NS_IMETHOD GetText(nsAString & aText) override { return _to GetText(aText); } \
     123             :   NS_IMETHOD GetCollapsed(bool *aCollapsed) override { return _to GetCollapsed(aCollapsed); } \
     124             :   NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
     125             :   NS_IMETHOD GetReversed(bool *aReversed) override { return _to GetReversed(aReversed); } \
     126             :   NS_IMETHOD GetWritingMode(nsACString & aWritingMode) override { return _to GetWritingMode(aWritingMode); } \
     127             :   NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override { return _to GetCausedByComposition(aCausedByComposition); } \
     128             :   NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override { return _to GetCausedBySelectionEvent(aCausedBySelectionEvent); } \
     129             :   NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override { return _to GetOccurredDuringComposition(aOccurredDuringComposition); } \
     130             :   NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override { return _to GetRemovedLength(aRemovedLength); } \
     131             :   NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override { return _to GetAddedLength(aAddedLength); } \
     132             :   NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override { return _to GetCausedOnlyByComposition(aCausedOnlyByComposition); } \
     133             :   NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override { return _to GetIncludingChangesDuringComposition(aIncludingChangesDuringComposition); } \
     134             :   NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) override { return _to GetIncludingChangesWithoutComposition(aIncludingChangesWithoutComposition); } 
     135             : 
     136             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     137             : #define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORNOTIFICATION(_to) \
     138             :   NS_IMETHOD GetType(nsACString & aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
     139             :   NS_IMETHOD GetOffset(uint32_t *aOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffset(aOffset); } \
     140             :   NS_IMETHOD GetText(nsAString & aText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
     141             :   NS_IMETHOD GetCollapsed(bool *aCollapsed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCollapsed(aCollapsed); } \
     142             :   NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
     143             :   NS_IMETHOD GetReversed(bool *aReversed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReversed(aReversed); } \
     144             :   NS_IMETHOD GetWritingMode(nsACString & aWritingMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWritingMode(aWritingMode); } \
     145             :   NS_IMETHOD GetCausedByComposition(bool *aCausedByComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedByComposition(aCausedByComposition); } \
     146             :   NS_IMETHOD GetCausedBySelectionEvent(bool *aCausedBySelectionEvent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedBySelectionEvent(aCausedBySelectionEvent); } \
     147             :   NS_IMETHOD GetOccurredDuringComposition(bool *aOccurredDuringComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOccurredDuringComposition(aOccurredDuringComposition); } \
     148             :   NS_IMETHOD GetRemovedLength(uint32_t *aRemovedLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRemovedLength(aRemovedLength); } \
     149             :   NS_IMETHOD GetAddedLength(uint32_t *aAddedLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddedLength(aAddedLength); } \
     150             :   NS_IMETHOD GetCausedOnlyByComposition(bool *aCausedOnlyByComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCausedOnlyByComposition(aCausedOnlyByComposition); } \
     151             :   NS_IMETHOD GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludingChangesDuringComposition(aIncludingChangesDuringComposition); } \
     152             :   NS_IMETHOD GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIncludingChangesWithoutComposition(aIncludingChangesWithoutComposition); } 
     153             : 
     154             : #if 0
     155             : /* Use the code below as a template for the implementation class for this interface. */
     156             : 
     157             : /* Header file */
     158             : class nsTextInputProcessorNotification : public nsITextInputProcessorNotification
     159             : {
     160             : public:
     161             :   NS_DECL_ISUPPORTS
     162             :   NS_DECL_NSITEXTINPUTPROCESSORNOTIFICATION
     163             : 
     164             :   nsTextInputProcessorNotification();
     165             : 
     166             : private:
     167             :   ~nsTextInputProcessorNotification();
     168             : 
     169             : protected:
     170             :   /* additional members */
     171             : };
     172             : 
     173             : /* Implementation file */
     174             : NS_IMPL_ISUPPORTS(nsTextInputProcessorNotification, nsITextInputProcessorNotification)
     175             : 
     176             : nsTextInputProcessorNotification::nsTextInputProcessorNotification()
     177             : {
     178             :   /* member initializers and constructor code */
     179             : }
     180             : 
     181             : nsTextInputProcessorNotification::~nsTextInputProcessorNotification()
     182             : {
     183             :   /* destructor code */
     184             : }
     185             : 
     186             : /* readonly attribute ACString type; */
     187             : NS_IMETHODIMP nsTextInputProcessorNotification::GetType(nsACString & aType)
     188             : {
     189             :     return NS_ERROR_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192             : /* readonly attribute unsigned long offset; */
     193             : NS_IMETHODIMP nsTextInputProcessorNotification::GetOffset(uint32_t *aOffset)
     194             : {
     195             :     return NS_ERROR_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198             : /* readonly attribute AString text; */
     199             : NS_IMETHODIMP nsTextInputProcessorNotification::GetText(nsAString & aText)
     200             : {
     201             :     return NS_ERROR_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204             : /* readonly attribute boolean collapsed; */
     205             : NS_IMETHODIMP nsTextInputProcessorNotification::GetCollapsed(bool *aCollapsed)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* readonly attribute uint32_t length; */
     211             : NS_IMETHODIMP nsTextInputProcessorNotification::GetLength(uint32_t *aLength)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : 
     216             : /* readonly attribute boolean reversed; */
     217             : NS_IMETHODIMP nsTextInputProcessorNotification::GetReversed(bool *aReversed)
     218             : {
     219             :     return NS_ERROR_NOT_IMPLEMENTED;
     220             : }
     221             : 
     222             : /* readonly attribute ACString writingMode; */
     223             : NS_IMETHODIMP nsTextInputProcessorNotification::GetWritingMode(nsACString & aWritingMode)
     224             : {
     225             :     return NS_ERROR_NOT_IMPLEMENTED;
     226             : }
     227             : 
     228             : /* readonly attribute boolean causedByComposition; */
     229             : NS_IMETHODIMP nsTextInputProcessorNotification::GetCausedByComposition(bool *aCausedByComposition)
     230             : {
     231             :     return NS_ERROR_NOT_IMPLEMENTED;
     232             : }
     233             : 
     234             : /* readonly attribute boolean causedBySelectionEvent; */
     235             : NS_IMETHODIMP nsTextInputProcessorNotification::GetCausedBySelectionEvent(bool *aCausedBySelectionEvent)
     236             : {
     237             :     return NS_ERROR_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240             : /* readonly attribute boolean occurredDuringComposition; */
     241             : NS_IMETHODIMP nsTextInputProcessorNotification::GetOccurredDuringComposition(bool *aOccurredDuringComposition)
     242             : {
     243             :     return NS_ERROR_NOT_IMPLEMENTED;
     244             : }
     245             : 
     246             : /* readonly attribute unsigned long removedLength; */
     247             : NS_IMETHODIMP nsTextInputProcessorNotification::GetRemovedLength(uint32_t *aRemovedLength)
     248             : {
     249             :     return NS_ERROR_NOT_IMPLEMENTED;
     250             : }
     251             : 
     252             : /* readonly attribute unsigned long addedLength; */
     253             : NS_IMETHODIMP nsTextInputProcessorNotification::GetAddedLength(uint32_t *aAddedLength)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : 
     258             : /* readonly attribute boolean causedOnlyByComposition; */
     259             : NS_IMETHODIMP nsTextInputProcessorNotification::GetCausedOnlyByComposition(bool *aCausedOnlyByComposition)
     260             : {
     261             :     return NS_ERROR_NOT_IMPLEMENTED;
     262             : }
     263             : 
     264             : /* readonly attribute boolean includingChangesDuringComposition; */
     265             : NS_IMETHODIMP nsTextInputProcessorNotification::GetIncludingChangesDuringComposition(bool *aIncludingChangesDuringComposition)
     266             : {
     267             :     return NS_ERROR_NOT_IMPLEMENTED;
     268             : }
     269             : 
     270             : /* readonly attribute boolean includingChangesWithoutComposition; */
     271             : NS_IMETHODIMP nsTextInputProcessorNotification::GetIncludingChangesWithoutComposition(bool *aIncludingChangesWithoutComposition)
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* End of implementation class template. */
     277             : #endif
     278             : 
     279             : 
     280             : /* starting interface:    nsITextInputProcessorCallback */
     281             : #define NS_ITEXTINPUTPROCESSORCALLBACK_IID_STR "23d5f242-adb5-46f1-8766-90d1bf0383df"
     282             : 
     283             : #define NS_ITEXTINPUTPROCESSORCALLBACK_IID \
     284             :   {0x23d5f242, 0xadb5, 0x46f1, \
     285             :     { 0x87, 0x66, 0x90, 0xd1, 0xbf, 0x03, 0x83, 0xdf }}
     286             : 
     287             : class NS_NO_VTABLE nsITextInputProcessorCallback : public nsISupports {
     288             :  public:
     289             : 
     290             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITEXTINPUTPROCESSORCALLBACK_IID)
     291             : 
     292             :   /* boolean onNotify (in nsITextInputProcessor aTextInputProcessor, in nsITextInputProcessorNotification aNotification); */
     293             :   NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) = 0;
     294             : 
     295             : };
     296             : 
     297             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITextInputProcessorCallback, NS_ITEXTINPUTPROCESSORCALLBACK_IID)
     298             : 
     299             : /* Use this macro when declaring classes that implement this interface. */
     300             : #define NS_DECL_NSITEXTINPUTPROCESSORCALLBACK \
     301             :   NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) override; 
     302             : 
     303             : /* Use this macro when declaring the members of this interface when the
     304             :    class doesn't implement the interface. This is useful for forwarding. */
     305             : #define NS_DECL_NON_VIRTUAL_NSITEXTINPUTPROCESSORCALLBACK \
     306             :   nsresult OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval); 
     307             : 
     308             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     309             : #define NS_FORWARD_NSITEXTINPUTPROCESSORCALLBACK(_to) \
     310             :   NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) override { return _to OnNotify(aTextInputProcessor, aNotification, _retval); } 
     311             : 
     312             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     313             : #define NS_FORWARD_SAFE_NSITEXTINPUTPROCESSORCALLBACK(_to) \
     314             :   NS_IMETHOD OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnNotify(aTextInputProcessor, aNotification, _retval); } 
     315             : 
     316             : #if 0
     317             : /* Use the code below as a template for the implementation class for this interface. */
     318             : 
     319             : /* Header file */
     320             : class nsTextInputProcessorCallback : public nsITextInputProcessorCallback
     321             : {
     322             : public:
     323             :   NS_DECL_ISUPPORTS
     324             :   NS_DECL_NSITEXTINPUTPROCESSORCALLBACK
     325             : 
     326             :   nsTextInputProcessorCallback();
     327             : 
     328             : private:
     329             :   ~nsTextInputProcessorCallback();
     330             : 
     331             : protected:
     332             :   /* additional members */
     333             : };
     334             : 
     335             : /* Implementation file */
     336             : NS_IMPL_ISUPPORTS(nsTextInputProcessorCallback, nsITextInputProcessorCallback)
     337             : 
     338             : nsTextInputProcessorCallback::nsTextInputProcessorCallback()
     339             : {
     340             :   /* member initializers and constructor code */
     341             : }
     342             : 
     343             : nsTextInputProcessorCallback::~nsTextInputProcessorCallback()
     344             : {
     345             :   /* destructor code */
     346             : }
     347             : 
     348             : /* boolean onNotify (in nsITextInputProcessor aTextInputProcessor, in nsITextInputProcessorNotification aNotification); */
     349             : NS_IMETHODIMP nsTextInputProcessorCallback::OnNotify(nsITextInputProcessor *aTextInputProcessor, nsITextInputProcessorNotification *aNotification, bool *_retval)
     350             : {
     351             :     return NS_ERROR_NOT_IMPLEMENTED;
     352             : }
     353             : 
     354             : /* End of implementation class template. */
     355             : #endif
     356             : 
     357             : 
     358             : #endif /* __gen_nsITextInputProcessorCallback_h__ */

Generated by: LCOV version 1.13