Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2689)

Unified Diff: chrome/renderer/render_view.cc

Issue 337032: Show status bubble for links that have keyboard focus.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 30061)
+++ chrome/renderer/render_view.cc (working copy)
@@ -1612,10 +1612,11 @@
void RenderView::setStatusText(const WebString& text) {
}
-void RenderView::setMouseOverURL(const WebURL& url) {
- GURL latest_url(url);
+void RenderView::UpdateTargetURL(const GURL& url, const GURL& fallback_url) {
+ GURL latest_url = url.spec().empty() ? fallback_url : url;
if (latest_url == target_url_)
return;
+
// Tell the browser to display a destination link.
if (target_url_status_ == TARGET_INFLIGHT ||
target_url_status_ == TARGET_PENDING) {
@@ -1631,6 +1632,16 @@
}
}
+void RenderView::setMouseOverURL(const WebURL& url) {
+ mouse_over_url_ = GURL(url);
+ UpdateTargetURL(mouse_over_url_, focus_url_);
+}
+
+void RenderView::setKeyboardFocusURL(const WebURL& url) {
+ focus_url_ = GURL(url);
+ UpdateTargetURL(focus_url_, mouse_over_url_);
+}
+
void RenderView::setToolTipText(const WebString& text, WebTextDirection hint) {
Send(new ViewHostMsg_SetTooltipText(routing_id_, UTF16ToWideHack(text),
hint));
« no previous file with comments | « chrome/renderer/render_view.h ('k') | webkit/api/public/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698