| 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) |
| 11 #include <jni.h> | 11 #include <jni.h> |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "ui/base/ui_export.h" | 16 #include "ui/gfx/gfx_export.h" |
| 17 | 17 |
| 18 // This file provides cross platform typedefs for native widget types. | 18 // This file provides cross platform typedefs for native widget types. |
| 19 // NativeWindow: this is a handle to a native, top-level window | 19 // NativeWindow: this is a handle to a native, top-level window |
| 20 // NativeView: this is a handle to a native UI element. It may be the | 20 // NativeView: this is a handle to a native UI element. It may be the |
| 21 // same type as a NativeWindow on some platforms. | 21 // same type as a NativeWindow on some platforms. |
| 22 // NativeViewId: Often, in our cross process model, we need to pass around a | 22 // NativeViewId: Often, in our cross process model, we need to pass around a |
| 23 // reference to a "window". This reference will, say, be echoed back from a | 23 // reference to a "window". This reference will, say, be echoed back from a |
| 24 // renderer to the browser when it wishes to query its size. On Windows we | 24 // renderer to the browser when it wishes to query its size. On Windows we |
| 25 // use an HWND for this. | 25 // use an HWND for this. |
| 26 // | 26 // |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 #elif defined(USE_OZONE) | 321 #elif defined(USE_OZONE) |
| 322 typedef intptr_t AcceleratedWidget; | 322 typedef intptr_t AcceleratedWidget; |
| 323 const AcceleratedWidget kNullAcceleratedWidget = 0; | 323 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 324 #else | 324 #else |
| 325 #error unknown platform | 325 #error unknown platform |
| 326 #endif | 326 #endif |
| 327 | 327 |
| 328 } // namespace gfx | 328 } // namespace gfx |
| 329 | 329 |
| 330 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 330 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |