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 #include "gfx/gtk_native_view_id_manager.h" | 5 #include "ui/gfx/gtk_native_view_id_manager.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <gdk/gdkx.h> | 8 #include <gdk/gdkx.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/rand_util.h" | 11 #include "base/rand_util.h" |
12 #include "gfx/gtk_preserve_window.h" | 12 #include "ui/gfx/gtk_preserve_window.h" |
13 | 13 |
14 // ----------------------------------------------------------------------------- | 14 // ----------------------------------------------------------------------------- |
15 // Bounce functions for GTK to callback into a C++ object... | 15 // Bounce functions for GTK to callback into a C++ object... |
16 | 16 |
17 void OnRealize(gfx::NativeView widget, void* arg) { | 17 void OnRealize(gfx::NativeView widget, void* arg) { |
18 GtkNativeViewManager* manager = reinterpret_cast<GtkNativeViewManager*>(arg); | 18 GtkNativeViewManager* manager = reinterpret_cast<GtkNativeViewManager*>(arg); |
19 manager->OnRealize(widget); | 19 manager->OnRealize(widget); |
20 } | 20 } |
21 | 21 |
22 void OnUnrealize(gfx::NativeView widget, void *arg) { | 22 void OnUnrealize(gfx::NativeView widget, void *arg) { |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 214 |
215 if (k != perm_xid_to_info_.end()) | 215 if (k != perm_xid_to_info_.end()) |
216 k->second.widget = NULL; | 216 k->second.widget = NULL; |
217 } | 217 } |
218 | 218 |
219 native_view_to_id_.erase(i); | 219 native_view_to_id_.erase(i); |
220 id_to_info_.erase(j); | 220 id_to_info_.erase(j); |
221 } | 221 } |
222 | 222 |
223 // ----------------------------------------------------------------------------- | 223 // ----------------------------------------------------------------------------- |
OLD | NEW |