| 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 "base/gfx/gtk_native_view_id_manager.h" | 5 #include "app/gfx/gtk_native_view_id_manager.h" |
| 6 | 6 |
| 7 #include "base/gfx/rect.h" | 7 #include "base/gfx/rect.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 | 10 |
| 11 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
| 12 #include <gdk/gdkx.h> | 12 #include <gdk/gdkx.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... |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 std::map<gfx::NativeViewId, NativeViewInfo>::iterator j = | 137 std::map<gfx::NativeViewId, NativeViewInfo>::iterator j = |
| 138 id_to_info_.find(i->second); | 138 id_to_info_.find(i->second); |
| 139 CHECK(j != id_to_info_.end()); | 139 CHECK(j != id_to_info_.end()); |
| 140 | 140 |
| 141 native_view_to_id_.erase(i); | 141 native_view_to_id_.erase(i); |
| 142 id_to_info_.erase(j); | 142 id_to_info_.erase(j); |
| 143 } | 143 } |
| 144 | 144 |
| 145 // ----------------------------------------------------------------------------- | 145 // ----------------------------------------------------------------------------- |
| OLD | NEW |