diff -r bf4420e9fa4d -r 2e16851ffecd ginebra/chrome/bedrockchrome/contextmenu.snippet/contextmenubg.js --- a/ginebra/chrome/bedrockchrome/contextmenu.snippet/contextmenubg.js Fri Jun 11 16:23:26 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -function printProp(x) { - window.chrome.alert(x + ":"); - for (property in x) { - window.chrome.alert(property + ": " + x[property]); - } -} - -window.webView.contextEvent.connect( - function(e) { - window.chrome.alert("web context22222222222: " + e + " " + e.pos.x); - window.snippets.ContextMenuBgId.show(); - } -); - -window.historyView.contextEvent.connect( - function(e) { - window.chrome.alert("history context: " + e + " " + e.itemIndex + - " x=" + e.pos.x + " y=" + e.pos.y); - printProp(e); - } -); - -window.chrome.loadComplete.connect( - -); - -function ContextMenuBg() -{ - // attach internal funcs - this.write = writeContextMenuBg; - - // do setup - this.write(); -} - -function goToRecentUrlView () { - window.viewStack.switchView("bookmarkHistoryView", "webView"); - } - -function goToBookmarkView () { - window.viewStack.switchView("bookmarkTreeView", "webView"); - } - -// "Private" methods -function writeContextMenuBg() { - var html = - '
' + - - - '
' + - - '
' + - '
    ' + - '
  • ' + window.localeDelegate.translateText("bookmarks_bookmarks") + '
  • ' + - '
  • '+ window.localeDelegate.translateText("content_view_menu_history") + '
  • ' + -// '
  • ' + window.localeDelegate.translateText("settings_clear_all") + '
  • ' + - '
' + - '
' + - '
' + - '
'; - document.write(html); -} -