|
From: CVS C. to T. <the...@li...> - 2011-01-27 21:45:43
|
Revision: 619
http://themis.svn.sourceforge.net/themis/?rev=619&view=rev
Author: mark_hellegers
Date: 2011-01-27 21:45:37 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Added support for setting and getting the size of the window of the site.
Modified Paths:
--------------
trunk/themis/framework/SiteEntry.cpp
trunk/themis/framework/SiteEntry.h
Modified: trunk/themis/framework/SiteEntry.cpp
===================================================================
--- trunk/themis/framework/SiteEntry.cpp 2011-01-27 21:42:33 UTC (rev 618)
+++ trunk/themis/framework/SiteEntry.cpp 2011-01-27 21:45:37 UTC (rev 619)
@@ -17,6 +17,8 @@
const string kStatusText = "StatusText";
const string kCookiesDisabled = "CookiesDisabled";
const string kFavIcon = "FavIcon";
+const string kWidth = "Width";
+const string kHeight = "Height";
SiteEntry :: SiteEntry(int32 id,
const char * url)
@@ -118,3 +120,17 @@
set(kStatusText, text);
}
+
+void SiteEntry :: SetSize(int width, int height) {
+
+ set(kWidth, width);
+ set(kHeight, height);
+
+}
+
+void SiteEntry :: GetSize(int & width, int & height) {
+
+ width = getInteger(kWidth);
+ height = getInteger(kHeight);
+
+}
Modified: trunk/themis/framework/SiteEntry.h
===================================================================
--- trunk/themis/framework/SiteEntry.h 2011-01-27 21:42:33 UTC (rev 618)
+++ trunk/themis/framework/SiteEntry.h 2011-01-27 21:45:37 UTC (rev 619)
@@ -26,6 +26,8 @@
void SetFavIcon(BBitmap * bmp);
virtual void SetLoadingProgress(int loadingprogress);
void SetStatusText(const char * text);
+ void SetSize(int width, int height);
+ void GetSize(int & width, int & height);
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|