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

Unified Diff: gfx/native_widget_types.h

Issue 5856001: Cleanup: USE_X11 + OS_MACOSX = OS_POSIX. (Closed) Base URL: svn://chrome-svn/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 side-by-side diff with in-line comments
Download patch
Index: gfx/native_widget_types.h
===================================================================
--- gfx/native_widget_types.h (revision 69803)
+++ gfx/native_widget_types.h (working copy)
@@ -37,7 +37,7 @@
// 'views'.
#if defined(OS_WIN)
-#include <windows.h>
+#include <windows.h> // NOLINT
typedef struct HFONT__* HFONT;
#elif defined(OS_MACOSX)
struct CGContext;
@@ -120,7 +120,7 @@
return reinterpret_cast<NativeView>(id);
}
#define NativeViewFromIdInBrowser(x) NativeViewFromId(x)
-#elif defined(OS_MACOSX) || defined(USE_X11)
+#elif defined(OS_POSIX)
// On Mac and Linux, a NativeView is a pointer to an object, and is useless
// outside the process in which it was created. NativeViewFromId should only be
// used inside the appropriate platform ifdef outside of the browser.
@@ -133,7 +133,7 @@
static inline NativeView NativeViewFromIdInBrowser(NativeViewId id) {
return reinterpret_cast<NativeView>(id);
}
-#endif // defined(OS_MACOSX) || defined(USE_X11)
+#endif // defined(OS_POSIX)
// Convert a NativeView to a NativeViewId. See the comments at the top of
// this file.
« chrome/browser/printing/print_job_worker.cc ('K') | « chrome/renderer/render_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698