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

Unified Diff: views/controls/native/native_view_host_wrapper.h

Issue 510004: Fix crash/leak issue in native_view_host_gtk.cc. (Closed)
Patch Set: " Created 11 years 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 | « views/controls/native/native_view_host_win.cc ('k') | views/controls/native_control_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native/native_view_host_wrapper.h
diff --git a/views/controls/native/native_view_host_wrapper.h b/views/controls/native/native_view_host_wrapper.h
index 948f0ce6c5eec9a6301f29e0a43dc255ca8c9593..056584ea55a1854611653fd5734c4c0c45d48499 100644
--- a/views/controls/native/native_view_host_wrapper.h
+++ b/views/controls/native/native_view_host_wrapper.h
@@ -23,8 +23,9 @@ class NativeViewHostWrapper {
// Called before the attached gfx::NativeView is detached from the
// NativeViewHost, allowing the wrapper to perform platform-specific
- // cleanup.
- virtual void NativeViewDetaching() = 0;
+ // cleanup. |destroyed| is true if the native view is detached
+ // because it's being destroyed, or false otherwise.
+ virtual void NativeViewDetaching(bool destroyed) = 0;
// Called when our associated NativeViewHost is added to a View hierarchy
// rooted at a valid Widget.
« no previous file with comments | « views/controls/native/native_view_host_win.cc ('k') | views/controls/native_control_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698