BROWSER_LOGD("Error! Could not get ids!");
}
- bp_history_offset offset = (BP_HISTORY_O_URL | BP_HISTORY_O_TITLE | BP_HISTORY_O_FAVICON | BP_HISTORY_O_DATE_CREATED);
+ bp_history_offset offset = (BP_HISTORY_O_URL | BP_HISTORY_O_TITLE | BP_HISTORY_O_FAVICON | BP_HISTORY_O_DATE_CREATED | BP_HISTORY_O_THUMBNAIL);
int freq_arr[1000];
for(int i = 0; i< count; i++){
- bp_history_info_fmt history_info;
- bp_history_adaptor_get_info(ids[i],offset,&history_info);
-
int freq;
if (0 == bp_history_adaptor_get_frequency(ids[i], &freq))
{
//thumbail
std::shared_ptr<tizen_browser::tools::BrowserImage> hi = std::make_shared<tizen_browser::tools::BrowserImage>();
- hi->imageType = tizen_browser::tools::BrowserImage::ImageType::ImageTypePNG;
+ hi->imageType = tools::BrowserImage::ImageTypePNG;
hi->width = history_info.thumbnail_width;
hi->height = history_info.thumbnail_height;
hi->dataSize = history_info.thumbnail_length;
const int SMALL_TILES_ROWS = 2;
const int MAX_TILES_NUMBER = 5;
+const int MainUI::MAX_TILE_WIDTH = 784;
+const int MainUI::MAX_TILE_HEIGHT = 498;
EXPORT_SERVICE(MainUI, "org.tizen.browser.mainui")
boost::signals2::signal<void (const std::string & )> mostVisitedClicked;
boost::signals2::signal<void (const std::string & )> bookmarkClicked;
boost::signals2::signal<void (const std::string & )> bookmarkManagerClicked;
+
+ static const int MAX_TILE_WIDTH;
+ static const int MAX_TILE_HEIGHT;
private:
void createItemClasses();
if(!m_webEngine->isPrivateMode()){
m_historyService->addHistoryItem(std::make_shared<tizen_browser::services::HistoryItem> (m_webEngine->getURI(),
m_webEngine->getTitle(),
- m_webEngine->getFavicon()));
+ m_webEngine->getFavicon()), m_webEngine->getSnapshotData(MainUI::MAX_TILE_WIDTH, MainUI::MAX_TILE_HEIGHT));
}
#if 0
if(!m_platformInputManager->getPointerModeEnabled())