summaryrefslogtreecommitdiffstats
path: root/gfx/gtk_native_view_id_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gtk_native_view_id_manager.h')
-rw-r--r--gfx/gtk_native_view_id_manager.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gfx/gtk_native_view_id_manager.h b/gfx/gtk_native_view_id_manager.h
index e97a852..8772bc8 100644
--- a/gfx/gtk_native_view_id_manager.h
+++ b/gfx/gtk_native_view_id_manager.h
@@ -9,6 +9,7 @@
#include <map>
#include "base/singleton.h"
+#include "base/synchronization/lock.h"
#include "gfx/native_widget_types.h"
typedef unsigned long XID;
@@ -84,7 +85,7 @@ class GtkNativeViewManager {
void OnUnrealize(gfx::NativeView widget);
void OnDestroy(gfx::NativeView widget);
- Lock& unrealize_lock() { return unrealize_lock_; }
+ base::Lock& unrealize_lock() { return unrealize_lock_; }
private:
// This object is a singleton:
@@ -104,10 +105,10 @@ class GtkNativeViewManager {
// This lock can be used to block GTK from unrealizing windows. This is needed
// when the BACKGROUND_X11 thread is using a window obtained via GetXIDForId,
// and can't allow the X11 resource to be deleted.
- Lock unrealize_lock_;
+ base::Lock unrealize_lock_;
// protects native_view_to_id_ and id_to_info_
- Lock lock_;
+ base::Lock lock_;
// If asked for an id for the same widget twice, we want to return the same
// id. So this records the current mapping.