summaryrefslogtreecommitdiffstats
path: root/ui/gfx/gtk_native_view_id_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/gtk_native_view_id_manager.h')
-rw-r--r--ui/gfx/gtk_native_view_id_manager.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/gtk_native_view_id_manager.h b/ui/gfx/gtk_native_view_id_manager.h
index 462a51d..6ea16a2 100644
--- a/ui/gfx/gtk_native_view_id_manager.h
+++ b/ui/gfx/gtk_native_view_id_manager.h
@@ -72,6 +72,11 @@ class GtkNativeViewManager {
// returns: true if |id| is a valid id, false otherwise.
bool GetPermanentXIDForId(XID* xid, gfx::NativeViewId id);
+ // Can be called from any thread.
+ // Will return false if the given XID isn't permanent or has already been
+ // released.
+ bool AddRefPermanentXID(XID xid);
+
// Must be called from the UI thread because we may need to access a
// GtkWidget or destroy a GdkWindow.
//