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

Side by Side Diff: ui/base/gtk/gdk_x_compat.h

Issue 10795024: ui: Forward declare DefaultSingletonTraits in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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
« no previous file with comments | « ui/base/gtk/g_object_destructor_filo.cc ('k') | ui/base/touch/touch_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_BASE_GTK_GDK_X_COMPAT_H_ 5 #ifndef UI_BASE_GTK_GDK_X_COMPAT_H_
6 #define UI_BASE_GTK_GDK_X_COMPAT_H_ 6 #define UI_BASE_GTK_GDK_X_COMPAT_H_
7 7
8 #include <gtk/gtk.h>
sky 2012/07/19 16:09:02 Why the gtk include here? All the types here are g
8 #include <gdk/gdkx.h> 9 #include <gdk/gdkx.h>
9 10
10 // Google Chrome must depend on GTK 2.18, at least until the next LTS drops 11 // Google Chrome must depend on GTK 2.18, at least until the next LTS drops
11 // (and we might have to extend which version of GTK we want to target due to 12 // (and we might have to extend which version of GTK we want to target due to
12 // RHEL). To make our porting job for GTK3 easier, we define all the methods 13 // RHEL). To make our porting job for GTK3 easier, we define all the methods
13 // that replace deprecated APIs in this file and then include it everywhere. 14 // that replace deprecated APIs in this file and then include it everywhere.
14 // 15 //
15 // This file is organized first by version, and then with each version, 16 // This file is organized first by version, and then with each version,
16 // alphabetically by method. 17 // alphabetically by method.
17 18
18 #if !GTK_CHECK_VERSION(2, 24, 0) 19 #if !GTK_CHECK_VERSION(2, 24, 0)
19 inline GdkWindow* gdk_x11_window_lookup_for_display(GdkDisplay* display, 20 inline GdkWindow* gdk_x11_window_lookup_for_display(GdkDisplay* display,
20 Window window) { 21 Window window) {
21 return static_cast<GdkWindow*>(gdk_xid_table_lookup_for_display(display, 22 return static_cast<GdkWindow*>(gdk_xid_table_lookup_for_display(display,
22 window)); 23 window));
23 } 24 }
24 #endif 25 #endif
25 26
26 #endif // UI_BASE_GTK_GDK_X_COMPAT_H_ 27 #endif // UI_BASE_GTK_GDK_X_COMPAT_H_
OLDNEW
« no previous file with comments | « ui/base/gtk/g_object_destructor_filo.cc ('k') | ui/base/touch/touch_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698