webengine/webkitutils/HistoryProvider/HistoryController.cpp
branchRCL_3
changeset 37 ac77f89b1d9e
parent 36 c711bdda59f4
child 48 79859ed3eea9
equal deleted inserted replaced
36:c711bdda59f4 37:ac77f89b1d9e
   256 {
   256 {
   257     if(m_historyViewEnabled) {
   257     if(m_historyViewEnabled) {
   258         HistoryEntry* entry = entryByIndex(m_currentIndex);
   258         HistoryEntry* entry = entryByIndex(m_currentIndex);
   259         if (entry) {
   259         if (entry) {
   260             TSize bmsize = bitmap->SizeInPixels();
   260             TSize bmsize = bitmap->SizeInPixels();
       
   261 #ifdef BRDO_MULTITOUCH_ENABLED_FF            
       
   262             entry->storeThumbnail(bitmap, TRect(0,0,bmsize.iWidth, bmsize.iHeight));
       
   263 #else
   261             TRect parentControlRect = m_historyCallback->parent()->Rect();
   264             TRect parentControlRect = m_historyCallback->parent()->Rect();
   262             int historyViewWidth = parentControlRect.Width();
   265             int historyViewWidth = parentControlRect.Width();
   263             int historyViewHeight( parentControlRect.Height());
   266             int historyViewHeight( parentControlRect.Height());
   264             // Find out that in either portrait or landscape view what is the max height
   267             // Find out that in either portrait or landscape view what is the max height
   265             int maxDimension = (historyViewWidth > historyViewHeight)? historyViewWidth:historyViewHeight;
   268             int maxDimension = (historyViewWidth > historyViewHeight)? historyViewWidth:historyViewHeight;
   266             int thumbnailHeight = Min(bmsize.iHeight, maxDimension*KCenterThumbnailHeightPercent/100);
   269             int thumbnailHeight = Min(bmsize.iHeight, maxDimension*KCenterThumbnailHeightPercent/100);
   267             int thumbnailWidth = Min(bmsize.iWidth, maxDimension*KCenterThumbnailWidthPercent/100);
   270             int thumbnailWidth = Min(bmsize.iWidth, maxDimension*KCenterThumbnailWidthPercent/100);
   268             entry->storeThumbnail(bitmap, TRect(0,0,thumbnailWidth, thumbnailHeight));
   271             entry->storeThumbnail(bitmap, TRect(0,0,thumbnailWidth, thumbnailHeight));            
       
   272 #endif
   269         }
   273         }
   270     }
   274     }
   271 }
   275 }
   272 
   276 
   273 /**
   277 /**