1 // Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved.
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
13 // * Neither the name of Google Inc. nor the name Chromium Embedded
14 // Framework nor the names of its contributors may be used to endorse
15 // or promote products derived from this software without specific prior
16 // written permission.
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
32 #define CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
35 #include "include/base/cef_build.h"
39 #include "include/internal/cef_string.h"
42 #define cef_cursor_handle_t HCURSOR
43 #define cef_event_handle_t MSG*
44 #define cef_window_handle_t HWND
45 #define cef_text_input_context_t void*
47 #define kNullCursorHandle NULL
48 #define kNullEventHandle NULL
49 #define kNullWindowHandle NULL
56 // Structure representing CefExecuteProcess arguments.
58 typedef struct _cef_main_args_t {
63 // Structure representing window information.
65 typedef struct _cef_window_info_t {
66 // Standard parameters required by CreateWindowEx()
68 cef_string_t window_name;
74 cef_window_handle_t parent_window;
78 // Set to true (1) to create the browser using windowless (off-screen)
79 // rendering. No window will be created for the browser and all rendering will
80 // occur via the CefRenderHandler interface. The |parent_window| value will be
81 // used to identify monitor info and to act as the parent window for dialogs,
82 // context menus, etc. If |parent_window| is not provided then the main screen
83 // monitor will be used and some functionality that requires a parent window
84 // may not function correctly. In order to create windowless browsers the
85 // CefSettings.windowless_rendering_enabled value must be set to true.
87 int windowless_rendering_enabled;
90 // Set to true (1) to enable transparent painting in combination with
91 // windowless rendering. When this value is true a transparent background
92 // color will be used (RGBA=0x00000000). When this value is false the
93 // background will be white and opaque.
95 int transparent_painting_enabled;
98 // Handle for the new browser window. Only used with windowed rendering.
100 cef_window_handle_t window;
109 #endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_