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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 2877323002: Add WebContentObserver::OnWebContentsLostFocus() (Closed)
Patch Set: Blured -> LostFocus Created 3 years, 7 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: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index a12d017e47a36e800b83d82c28bdf4f014490213..a28f4fb006c0dcfc1fac325576f03ffbcaa095e9 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -1016,6 +1016,10 @@ void WebContentsViewAura::GotFocus() {
web_contents_->NotifyWebContentsFocused();
}
+void WebContentsViewAura::LostFocus() {
+ web_contents_->NotifyWebContentsLostFocus();
+}
+
void WebContentsViewAura::TakeFocus(bool reverse) {
if (web_contents_->GetDelegate() &&
!web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse) &&

Powered by Google App Engine
This is Rietveld 408576698