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

Unified Diff: chrome/renderer/page_click_listener.h

Issue 8351009: Updating PageClickTracker to Notify listeners When Text Input Loses Focus. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix issue with gaining focus with tab Created 9 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
Index: chrome/renderer/page_click_listener.h
diff --git a/chrome/renderer/page_click_listener.h b/chrome/renderer/page_click_listener.h
index fca52c8825a09c4cb50346bb6fe80a81d30fba52..64ccca13fbf8909dd847810a41e25393da3d87af 100644
--- a/chrome/renderer/page_click_listener.h
+++ b/chrome/renderer/page_click_listener.h
@@ -23,6 +23,12 @@ class PageClickListener {
bool was_focused,
bool is_focused) = 0;
+ // If the previously focused element was an input field, listeners are
+ // informed that the text field has lost its focus.
+ // If this method returns true, the notification will not be propagated to
+ // other listeners.
+ virtual bool InputElementLostFocus() = 0;
+
protected:
virtual ~PageClickListener() {}
};

Powered by Google App Engine
This is Rietveld 408576698