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

Side by Side Diff: app/gfx/native_widget_types.h

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « no previous file | build/common.gypi » ('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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698