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

Unified Diff: public/web/WebViewClient.h

Issue 851393002: add previously focused node to WebClient::focusedNodeChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: merge, review comments Created 5 years, 11 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 | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebViewClient.h
diff --git a/public/web/WebViewClient.h b/public/web/WebViewClient.h
index 908bbdb34545988de0589ab7f242653ccc0a4a1f..0309796db0076a9095a907d2a9781d3f508f0ab0 100644
--- a/public/web/WebViewClient.h
+++ b/public/web/WebViewClient.h
@@ -186,8 +186,11 @@ public:
virtual void focusNext() { }
virtual void focusPrevious() { }
- // Called when a new node gets focused.
+ // FIXME: remove this function.
virtual void focusedNodeChanged(const WebNode&) { }
+ // Called when a new node gets focused. |fromNode| is the previously focused node, |toNode|
+ // is the newly focused node. Either can be null.
+ virtual void focusedNodeChanged(const WebNode& fromNode, const WebNode& toNode) { }
// Indicates two things:
// 1) This view may have a new layout now.
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698