| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ | 5 #ifndef UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ |
| 6 #define GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ | 6 #define UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| 11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "gfx/native_widget_types.h" | 13 #include "gfx/native_widget_types.h" |
| 14 | 14 |
| 15 typedef unsigned long XID; | 15 typedef unsigned long XID; |
| 16 struct _GtkPreserveWindow; | 16 struct _GtkPreserveWindow; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // that is not true of the widgets stored in this registry. | 131 // that is not true of the widgets stored in this registry. |
| 132 // | 132 // |
| 133 // An XID will map to NULL, if there is an outstanding reference but the | 133 // An XID will map to NULL, if there is an outstanding reference but the |
| 134 // widget was destroyed. In this case, the destruction of the X window | 134 // widget was destroyed. In this case, the destruction of the X window |
| 135 // is deferred to the dropping of all references. | 135 // is deferred to the dropping of all references. |
| 136 std::map<XID, PermanentXIDInfo> perm_xid_to_info_; | 136 std::map<XID, PermanentXIDInfo> perm_xid_to_info_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(GtkNativeViewManager); | 138 DISALLOW_COPY_AND_ASSIGN(GtkNativeViewManager); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 #endif // GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ | 141 #endif // UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ |
| OLD | NEW |