| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 APP_GFX_NATIVE_WIDGET_TYPES_H_ | 5 #ifndef APP_GFX_NATIVE_WIDGET_TYPES_H_ |
| 6 #define APP_GFX_NATIVE_WIDGET_TYPES_H_ | 6 #define APP_GFX_NATIVE_WIDGET_TYPES_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #if defined(OS_WIN) | 133 #if defined(OS_WIN) |
| 134 typedef HWND PluginWindowHandle; | 134 typedef HWND PluginWindowHandle; |
| 135 const PluginWindowHandle kNullPluginWindow = NULL; | 135 const PluginWindowHandle kNullPluginWindow = NULL; |
| 136 #elif defined(USE_X11) | 136 #elif defined(USE_X11) |
| 137 typedef unsigned long PluginWindowHandle; | 137 typedef unsigned long PluginWindowHandle; |
| 138 const PluginWindowHandle kNullPluginWindow = 0; | 138 const PluginWindowHandle kNullPluginWindow = 0; |
| 139 #else | 139 #else |
| 140 // On OS X we don't have windowed plugins. | 140 // On OS X we don't have windowed plugins. |
| 141 // We use a NULL/0 PluginWindowHandle in shared code to indicate there | 141 // We use a NULL/0 PluginWindowHandle in shared code to indicate there |
| 142 // is no window present, so mirror that behavior here. | 142 // is no window present, so mirror that behavior here. |
| 143 typedef bool PluginWindowHandle; | 143 // |
| 144 const PluginWindowHandle kNullPluginWindow = false; | 144 // The GPU plugin is currently an exception to this rule. As of this |
| 145 // writing it uses some NPAPI infrastructure, and minimally we need |
| 146 // to identify the plugin instance via this window handle. When the |
| 147 // GPU plugin becomes a full-on GPU process, this typedef can be |
| 148 // returned to a bool. For now we use a type large enough to hold a |
| 149 // pointer on 64-bit architectures in case we need this capability. |
| 150 typedef uint64 PluginWindowHandle; |
| 151 const PluginWindowHandle kNullPluginWindow = 0; |
| 145 #endif | 152 #endif |
| 146 | 153 |
| 147 } // namespace gfx | 154 } // namespace gfx |
| 148 | 155 |
| 149 #endif // APP_GFX_NATIVE_WIDGET_TYPES_H_ | 156 #endif // APP_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |