Add CefHandler::HandleStatus for status messages, mouse over URLs and keyboard focus URLs (issue #61).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@169 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-01-26 15:12:49 +00:00
parent ca3a392c33
commit e8436018ef
10 changed files with 84 additions and 0 deletions

View File

@@ -389,12 +389,15 @@ bool BrowserWebViewDelegate::runModalBeforeUnloadDialog(
}
void BrowserWebViewDelegate::setStatusText(const WebString& text) {
ShowStatus(text, STATUSTYPE_TEXT);
}
void BrowserWebViewDelegate::setMouseOverURL(const WebURL& url) {
ShowStatus(url.spec().utf16(), STATUSTYPE_MOUSEOVER_URL);
}
void BrowserWebViewDelegate::setKeyboardFocusURL(const WebKit::WebURL& url) {
ShowStatus(url.spec().utf16(), STATUSTYPE_KEYBOARD_FOCUS_URL);
}
void BrowserWebViewDelegate::setToolTipText(
@@ -891,6 +894,16 @@ void BrowserWebViewDelegate::WaitForPolicyDelegate() {
// Private methods -----------------------------------------------------------
void BrowserWebViewDelegate::ShowStatus(const WebString& text,
CefHandler::StatusType type)
{
CefRefPtr<CefHandler> handler = browser_->GetHandler();
if(handler.get()) {
CefString textStr = string16(text);
handler->HandleStatus(browser_, textStr, type);
}
}
void BrowserWebViewDelegate::LocationChangeDone(WebFrame* frame) {
CefRefPtr<CefHandler> handler = browser_->GetHandler();
bool is_top_frame = false;