Add CefDisplayHandler::OnContentsSizeChange() notificiation (issue #341).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@330 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-21 14:09:04 +00:00
parent 04c948fd51
commit 2085cc9ce2
7 changed files with 61 additions and 1 deletions

View File

@@ -950,11 +950,23 @@ void BrowserWebViewDelegate::willSendRequest(
request.setRequestorID(browser_->UIT_GetUniqueID());
}
void BrowserWebViewDelegate::didChangeContentsSize(
WebFrame* frame, const WebSize& size) {
CefRefPtr<CefClient> client = browser_->GetClient();
if (client.get()) {
CefRefPtr<CefDisplayHandler> handler = client->GetDisplayHandler();
if (handler.get()) {
handler->OnContentsSizeChange(browser_, browser_->UIT_GetCefFrame(frame),
size.width, size.height);
}
}
}
void BrowserWebViewDelegate::reportFindInPageMatchCount(
int request_id, int count, bool final_update)
{
browser_->UIT_NotifyFindStatus(request_id, count, gfx::Rect(),
-1, // // Don't update active match ordinal.
-1, // Don't update active match ordinal.
final_update);
}