diogogmt

getNavigator

Nov 20th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. printf("\nGetting the window...\n");
  2. nsCOMPtr<nsIDOMWindow> window = GetWindow();
  3.  
  4. printf("\nGetting the navigator...\n");
  5. nsCOMPtr<nsIDOMNavigator> navigator;
  6. window->GetNavigator(getter_AddRefs(navigator));
  7. //NS_ENSURE_ARG_POINTER(navigator);
  8.  
  9. printf("\nGetting the pointer...\n");
  10. nsCOMPtr<nsIDOMMouseLockable> pointer;
  11. navigator->GetPointer(getter_AddRefs(pointer));
  12. //NS_ENSURE_ARG_POINTER(pointer);
  13. if (pointer) {
  14. printf("\npointer exists, now unlocking the mouse\n");
  15. pointer->Unlock();
  16. }
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment