201026_01
authorhgs
Fri, 02 Jul 2010 11:27:49 -0400
changeset 4 d5cdb6bc139d
parent 3 0954f5dd2cd0
child 7 a1f515018ac1
201026_01
ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_press.png
ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_wait.png
ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/icon_dialog_error.png
ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.css
ginebra2/chrome/bedrockchrome/outofmemory.snippet/outofmemorydialog.js
ginebra2/chrome/bedrockchrome/suggests.snippet/icons/bottomshadow.png
ginebra2/chrome/bedrockchrome/suggests.snippet/icons/divider.png
ginebra2/chrome/bedrockchrome/suggests.snippet/icons/topshadow.png
ginebra2/ginebra2.pro
Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_press.png has changed
Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/button_dialog_out_of_memory_ok_wait.png has changed
Binary file ginebra2/chrome/bedrockchrome/outofmemory.snippet/icons/icon_dialog_error.png has changed
--- /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);
+}
--- /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 =
+        '<div><img src="outofmemory.snippet/icons/icon_dialog_error.png"/>&nbsp;&nbsp;<span class="title">' + title + '</span></div>' +
+        '<div class="textLabel">' + message +'</div>' +
+        '<div class="controls">' +
+            '<div type="button" onmouseup="hideOutOfMemoryDialog();" class="outOfMemoryDialogButton outOfMemoryDoneButton"></div>'+ 
+        '</div>'
+    document.write(html);
+}
+
+function showOutOfMemoryDialog() {
+    window.snippets.OutOfMemoryDialogId.show(false);
+} 
+
+function hideOutOfMemoryDialog(){
+    window.snippets.OutOfMemoryDialogId.hide();
+}
Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/bottomshadow.png has changed
Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/divider.png has changed
Binary file ginebra2/chrome/bedrockchrome/suggests.snippet/icons/topshadow.png has changed
--- 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
 }