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

Unified Diff: app/gfx/native_widget_types.h

Issue 267076: Turn NULL used as int to 0. (Closed)
Patch Set: Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/clipboard/clipboard_linux.cc ('k') | base/multiprocess_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/native_widget_types.h
diff --git a/app/gfx/native_widget_types.h b/app/gfx/native_widget_types.h
index d116d9ca0d8659d0f12db8b4a29cee5b4035b68a..0153194796b295ba33ea58dbb587bec493dfaf27 100644
--- a/app/gfx/native_widget_types.h
+++ b/app/gfx/native_widget_types.h
@@ -129,13 +129,16 @@ NativeViewId IdFromNativeView(NativeView view);
// window id.
#if defined(OS_WIN)
typedef HWND PluginWindowHandle;
+ const PluginWindowHandle kNullPluginWindow = NULL;
#elif defined(USE_X11)
typedef unsigned long PluginWindowHandle;
+ const PluginWindowHandle kNullPluginWindow = 0;
#else
// On OS X we don't have windowed plugins.
// We use a NULL/0 PluginWindowHandle in shared code to indicate there
// is no window present, so mirror that behavior here.
typedef bool PluginWindowHandle;
+ const PluginWindowHandle kNullPluginWindow = false;
#endif
} // namespace gfx
« no previous file with comments | « app/clipboard/clipboard_linux.cc ('k') | base/multiprocess_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698