本文整理汇总了C++中webcore::HistoryItem::title方法的典型用法代码示例。如果您正苦于以下问题:C++ HistoryItem::title方法的具体用法?C++ HistoryItem::title怎么用?C++ HistoryItem::title使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类webcore::HistoryItem
的用法示例。
在下文中一共展示了HistoryItem::title方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: toPageState
PageState toPageState(const WebCore::HistoryItem& historyItem)
{
PageState pageState;
pageState.title = historyItem.title();
pageState.mainFrameState = toFrameState(historyItem);
return pageState;
}
示例2: toPageState
PageState toPageState(const WebCore::HistoryItem& historyItem)
{
PageState pageState;
pageState.title = historyItem.title();
pageState.mainFrameState = toFrameState(historyItem);
pageState.shouldOpenExternalURLsPolicy = historyItem.shouldOpenExternalURLsPolicy();
return pageState;
}
示例3: webkit_web_history_item_get_title
/**
* webkit_web_history_item_get_title:
* @web_history_item: a #WebKitWebHistoryItem
*
* Returns: the page title of @web_history_item
*/
G_CONST_RETURN gchar* webkit_web_history_item_get_title(WebKitWebHistoryItem* webHistoryItem)
{
g_return_val_if_fail(WEBKIT_IS_WEB_HISTORY_ITEM(webHistoryItem), NULL);
WebCore::HistoryItem* item = core(webHistoryItem);
g_return_val_if_fail(item, NULL);
WebKitWebHistoryItemPrivate* priv = webHistoryItem->priv;
priv->title = item->title().utf8();
return priv->title.data();
}