]> git.sesse.net Git - casparcg/blob - dependencies64/cef/include/internal/cef_types_win.h
* Merged html producer and updated to latest CEF version (does not have satisfactory...
[casparcg] / dependencies64 / cef / include / internal / cef_types_win.h
1 // Copyright (c) 2009 Marshall A. Greenblatt. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
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
12 // distribution.
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.
17 //
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.
29
30
31 #ifndef CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
32 #define CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_
33 #pragma once
34
35 #include "include/base/cef_build.h"
36
37 #if defined(OS_WIN)
38 #include <windows.h>
39 #include "include/internal/cef_string.h"
40
41 // Handle types.
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*
46
47 #define kNullCursorHandle NULL
48 #define kNullEventHandle NULL
49 #define kNullWindowHandle NULL
50
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54
55 ///
56 // Structure representing CefExecuteProcess arguments.
57 ///
58 typedef struct _cef_main_args_t {
59   HINSTANCE instance;
60 } cef_main_args_t;
61
62 ///
63 // Structure representing window information.
64 ///
65 typedef struct _cef_window_info_t {
66   // Standard parameters required by CreateWindowEx()
67   DWORD ex_style;
68   cef_string_t window_name;
69   DWORD style;
70   int x;
71   int y;
72   int width;
73   int height;
74   cef_window_handle_t parent_window;
75   HMENU menu;
76
77   ///
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.
86   ///
87   int windowless_rendering_enabled;
88
89   ///
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.
94   ///
95   int transparent_painting_enabled;
96
97   ///
98   // Handle for the new browser window. Only used with windowed rendering.
99   ///
100   cef_window_handle_t window;
101 } cef_window_info_t;
102
103 #ifdef __cplusplus
104 }
105 #endif
106
107 #endif  // OS_WIN
108
109 #endif  // CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_