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

Unified Diff: ui/views/controls/native/native_view_host.h

Issue 10910034: Attempt 2 at: Fixes crash that occured because NativeViewHostAura::Detach was not (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: da fix Created 8 years, 4 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: ui/views/controls/native/native_view_host.h
diff --git a/ui/views/controls/native/native_view_host.h b/ui/views/controls/native/native_view_host.h
index 4aa3d85854029625bce51b66065eb2adba19a629..d0adf6cd83cec51fe8c87bc0b68f597253241c2b 100644
--- a/ui/views/controls/native/native_view_host.h
+++ b/ui/views/controls/native/native_view_host.h
@@ -95,6 +95,11 @@ class VIEWS_EXPORT NativeViewHost : public View {
// detached because it's being destroyed, or false otherwise.
void Detach(bool destroyed);
+ // Invokes ViewRemoved() on the FocusManager for all the child Widgets of our
+ // NativeView. This is used when detaching to ensure the FocusManager doesn't
+ // have a reference to a View that is no longer reachable.
+ void ClearFocus();
+
// The attached native view. There is exactly one native_view_ attached.
gfx::NativeView native_view_;
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698