Diff for /chimera/ContentClickListener.mm between versions 1.1 and 1.2

version 1.1, 2002/03/07 18:35:48 version 1.2, 2002/03/08 00:27:48
Line 37 Line 37
   
 #include "nsCOMPtr.h"  #include "nsCOMPtr.h"
 #include "ContentClickListener.h"  #include "ContentClickListener.h"
   #include "nsIDOMEventTarget.h"
   #include "nsIContent.h"
   #include "nsIAtom.h"
   #include "nsIDOMElement.h"
   #include "nsString.h"
   #include "nsUnicharUtils.h"
   
 NS_IMPL_ISUPPORTS2(ContentClickListener, nsIDOMMouseListener, nsIDOMEventListener);  NS_IMPL_ISUPPORTS2(ContentClickListener, nsIDOMMouseListener, nsIDOMEventListener);
   
Line 54  ContentClickListener::~ContentClickListe Line 60  ContentClickListener::~ContentClickListe
 NS_IMETHODIMP  NS_IMETHODIMP
 ContentClickListener::MouseClick(nsIDOMEvent* aEvent)  ContentClickListener::MouseClick(nsIDOMEvent* aEvent)
 {  {
  printf("You clicked in the content area! Good for you!\n");  nsCOMPtr<nsIDOMEventTarget> target;
   aEvent->GetTarget(getter_AddRefs(target));
   if (!target)
     return NS_OK;
   nsCOMPtr<nsIDOMElement> content(do_QueryInterface(target));
   nsAutoString localName;
   if (content)
     content->GetLocalName(localName);
   
   ToLowerCase(localName);
   
   nsCOMPtr<nsIDOMElement> linkContent;
   
   return NS_OK;    return NS_OK;
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>