View Image

From CDOT Wiki
Revision as of 12:16, 29 September 2006 by Bhearsum (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What happens when I click 'View Image' in the context menu?

  1. 'View Image' is bound to the element viewImageCmd.label in browser.dtd
  2. The 'oncommand' function is defined as gContextMenu.viewImage(event) in browser-context.inc
  3. 'viewImage' is defined in browser.js which calls openUILink
  4. 'openUILink' calls openUILinkIn
  5. Eventually, openUILinkIn calls browser.addURI
  6. 'browser.addURI' gets a reference to a <tabbrowser> element through getWebNavigation()
  7. A <tabbrowser> element is defined in browser.xml
  8. Eventually, there is a C++ function that get's called, nsDocShell::LoadURI