# HG changeset patch # User hgs # Date 1278084469 14400 # Node ID d5cdb6bc139d7f82982b5b0ced61ea274eb5aca6 # Parent 0954f5dd2cd060d4d2e3e8ea121674ce9569031f 201026_01 diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_press.png Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_press.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_wait.png Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_wait.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/icon_dialog_error.png Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/icon_dialog_error.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.css Fri Jul 02 11:27:49 2010 -0400 @@ -0,0 +1,47 @@ +/* OutOfMemory dialog */ + +#OutOfMemoryDialogId +{ + width: 275px; + background: -webkit-gradient(linear, left top, left bottom, from(#556c90), to(#3c4d6a)); + border: 3px solid #002447; + padding: 20px; + -webkit-border-top-left-radius: 10px; + -webkit-border-top-right-radius: 10px; + -webkit-border-bottom-left-radius: 10px; + -webkit-border-bottom-right-radius: 10px; +} + +#OutOfMemoryDialogId span.title { + font-size: 22px; + color: #fff; + margin-left: 20px; +} + +#OutOfMemoryDialogId div.textLabel { + text-align: left; + font-size: 22px; + color: #fff; + margin-top: 20px; +} + +#OutOfMemoryDialogId div.controls { + height: 40px; + text-align: center; +} + +#OutOfMemoryDialogId div.outOfMemoryDialogButton { + width: 100px; + height: 40px; + display: inline-block; + background-repeat: no-repeat; + background-repeat: center center; + } + +#OutOfMemoryDialogId div.outOfMemoryDoneButton { + background-image: url(icons/button_dialog_out_of_memory_ok_wait.png); +} + +#OutOfMemoryDialogId div.outOfMemoryDoneButton:active { + background-image: url(icons/button_dialog_out_of_memory_ok_press.png); +} diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.js Fri Jul 02 11:27:49 2010 -0400 @@ -0,0 +1,33 @@ +//outofmemorydialog.js + +function outOfMemoryDialog() +{ + window.pageController.lowMemory.connect(showOutOfMemoryDialog); + window.pageController.outOfMemory.connect(showOutOfMemoryDialog); + + this.write = writeOutOfMemoryDialog; + // do setup + this.write(); + +} + +function writeOutOfMemoryDialog() +{ + var title = window.localeDelegate.translateText("txt_browser_error_dialog_device_low"); + var message = window.localeDelegate.translateText("txt_browser_error_dialog_close_some"); + var html = + '
  ' + title + '
' + + '
' + message +'
' + + '
' + + '
'+ + '
' + document.write(html); +} + +function showOutOfMemoryDialog() { + window.snippets.OutOfMemoryDialogId.show(false); +} + +function hideOutOfMemoryDialog(){ + window.snippets.OutOfMemoryDialogId.hide(); +} diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/suggests.snippet/icons/bottomshadow.png Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/bottomshadow.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/suggests.snippet/icons/divider.png Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/divider.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/chrome/bedrockchrome/suggests.snippet/icons/topshadow.png Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/topshadow.png has changed diff -r 0954f5dd2cd0 -r d5cdb6bc139d ginebra2/ginebra2.pro --- a/ginebra2/ginebra2.pro Tue Jun 29 00:46:29 2010 -0400 +++ b/ginebra2/ginebra2.pro Fri Jul 02 11:27:49 2010 -0400 @@ -334,7 +334,8 @@ } LIBS += -lcommdb LIBS += -lesock -lconnmon -linsock - + LIBS += -lavkon -lapparc -leikcore -lcone + contains(br_openurl, yes) { DEFINES += OPENURL }