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

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

Issue 10832011: Makes NativeViewHostWin change the parent of the hwnd when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix focus issues Created 8 years, 5 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 | « ui/ui.gyp ('k') | ui/views/controls/native/native_view_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_win.h
diff --git a/ui/views/controls/native/native_view_host_win.h b/ui/views/controls/native/native_view_host_win.h
index bf0cc247fef5f0a47eb2c7a7193cb8f1e7f026ac..4d41c23fa60d5f3696c418cb93472edee0ae8285 100644
--- a/ui/views/controls/native/native_view_host_win.h
+++ b/ui/views/controls/native/native_view_host_win.h
@@ -32,6 +32,11 @@ class NativeViewHostWin : public NativeViewHostWrapper {
virtual gfx::NativeViewAccessible GetNativeViewAccessible();
private:
+ // 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();
+
// Our associated NativeViewHost.
NativeViewHost* host_;
« no previous file with comments | « ui/ui.gyp ('k') | ui/views/controls/native/native_view_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698