OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/native_widget_types.h" | 5 #include "gfx/native_widget_types.h" |
6 | 6 |
7 #include "base/logging.h" | |
8 #include "gfx/gtk_native_view_id_manager.h" | 7 #include "gfx/gtk_native_view_id_manager.h" |
9 | 8 |
10 namespace gfx { | 9 namespace gfx { |
11 | 10 |
12 NativeViewId IdFromNativeView(NativeView view) { | 11 NativeViewId IdFromNativeView(NativeView view) { |
13 return Singleton<GtkNativeViewManager>()->GetIdForWidget(view); | 12 return Singleton<GtkNativeViewManager>()->GetIdForWidget(view); |
14 } | 13 } |
15 | 14 |
16 } // namespace gfx | 15 } // namespace gfx |
OLD | NEW |