Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Side by Side Diff: gfx/native_widget_types_gtk.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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 "gfx/gtk_native_view_id_manager.h" 7 #include "gfx/gtk_native_view_id_manager.h"
8 8
9 namespace gfx { 9 namespace gfx {
10 10
11 NativeViewId IdFromNativeView(NativeView view) { 11 NativeViewId IdFromNativeView(NativeView view) {
12 return Singleton<GtkNativeViewManager>()->GetIdForWidget(view); 12 return GtkNativeViewManager::GetInstance()->GetIdForWidget(view);
13 } 13 }
14 14
15 } // namespace gfx 15 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698