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

Unified Diff: chrome/renderer/render_view.h

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/print_web_view_helper.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 30061)
+++ chrome/renderer/render_view.h (working copy)
@@ -240,6 +240,7 @@
WebKit::WebFrame* frame, const WebKit::WebContextMenuData& data);
virtual void setStatusText(const WebKit::WebString& text);
virtual void setMouseOverURL(const WebKit::WebURL& url);
+ virtual void setKeyboardFocusURL(const WebKit::WebURL& url);
virtual void setToolTipText(
const WebKit::WebString& text, WebKit::WebTextDirection hint);
virtual void startDragging(
@@ -733,6 +734,10 @@
// Initializes the document_tag_ member if necessary.
void EnsureDocumentTag();
+ // Update the target url and tell the browser that the target URL has changed.
+ // If |url| is empty, show |fallback_url|.
+ void UpdateTargetURL(const GURL& url, const GURL& fallback_url);
+
// Bitwise-ORed set of extra bindings that have been enabled. See
// BindingsPolicy for details.
int enabled_bindings_;
@@ -749,10 +754,15 @@
// The last gotten main frame's encoding.
std::string last_encoding_name_;
- // The URL we think the user's mouse is hovering over. We use this to
+ // The URL we show the user in the status bar. We use this to
// determine if we want to send a new one (we do not need to send
- // duplicates).
+ // duplicates). It will be equal to either |mouse_over_url_| or |focus_url_|,
+ // depending on which was updated last.
GURL target_url_;
+ // The URL the user's mouse is hovering over.
+ GURL mouse_over_url_;
+ // The URL that has keyboard focus.
+ GURL focus_url_;
// The state of our target_url transmissions. When we receive a request to
// send a URL to the browser, we set this to TARGET_INFLIGHT until an ACK
« no previous file with comments | « chrome/renderer/print_web_view_helper.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698