| OLD | NEW |
| 1 // Copyright (c) 2012 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_GFX_NATIVE_WIDGET_TYPES_H_ | 5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| 6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ | 6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 #elif defined(OS_ANDROID) | 269 #elif defined(OS_ANDROID) |
| 270 typedef ANativeWindow* AcceleratedWidget; | 270 typedef ANativeWindow* AcceleratedWidget; |
| 271 const AcceleratedWidget kNullAcceleratedWidget = 0; | 271 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 272 #elif defined(USE_OZONE) | 272 #elif defined(USE_OZONE) |
| 273 typedef intptr_t AcceleratedWidget; | 273 typedef intptr_t AcceleratedWidget; |
| 274 const AcceleratedWidget kNullAcceleratedWidget = 0; | 274 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 275 #else | 275 #else |
| 276 #error unknown platform | 276 #error unknown platform |
| 277 #endif | 277 #endif |
| 278 | 278 |
| 279 enum SwapResult { |
| 280 SwapAck, |
| 281 SwapFailed, |
| 282 SwapNakRecreateBuffers, |
| 283 }; |
| 284 |
| 279 } // namespace gfx | 285 } // namespace gfx |
| 280 | 286 |
| 281 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 287 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |