github.com/ckxng/wakeup@v0.0.0-20190105202853-90356a5f5a15/include/internal/cef_types_win.h (about) 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/internal/cef_build.h" 36 37 #if defined(OS_WIN) 38 #include <windows.h> 39 #include "include/internal/cef_string.h" 40 41 #ifdef __cplusplus 42 extern "C" { 43 #endif 44 45 // Handle types. 46 #define cef_cursor_handle_t HCURSOR 47 #define cef_event_handle_t MSG* 48 #define cef_window_handle_t HWND 49 #define cef_text_input_context_t void* 50 51 /// 52 // Structure representing CefExecuteProcess arguments. 53 /// 54 typedef struct _cef_main_args_t { 55 HINSTANCE instance; 56 } cef_main_args_t; 57 58 /// 59 // Structure representing window information. 60 /// 61 typedef struct _cef_window_info_t { 62 // Standard parameters required by CreateWindowEx() 63 DWORD ex_style; 64 cef_string_t window_name; 65 DWORD style; 66 int x; 67 int y; 68 int width; 69 int height; 70 cef_window_handle_t parent_window; 71 HMENU menu; 72 73 // If window rendering is disabled no browser window will be created. Set 74 // |parent_window| to be used for identifying monitor info 75 // (MonitorFromWindow). If |parent_window| is not provided the main screen 76 // monitor will be used. 77 BOOL window_rendering_disabled; 78 79 // Set to true to enable transparent painting. 80 // If window rendering is disabled and |transparent_painting| is set to true 81 // WebKit rendering will draw on a transparent background (RGBA=0x00000000). 82 // When this value is false the background will be white and opaque. 83 BOOL transparent_painting; 84 85 // Handle for the new browser window. 86 cef_window_handle_t window; 87 } cef_window_info_t; 88 89 #ifdef __cplusplus 90 } 91 #endif 92 93 #endif // OS_WIN 94 95 #endif // CEF_INCLUDE_INTERNAL_CEF_TYPES_WIN_H_