Skip to content

Commit c1f6259

Browse files
linesightclaude
andcommitted
Update cef_mac.pxd: fix SetAsChild signature, add runtime_style/enum
- SetAsChild(parent, x, y, w, h) -> SetAsChild(parent, CefRect) - Add cef_runtime_style_t enum with CEF_RUNTIME_STYLE_ALLOY - Add runtime_style field to CefWindowInfo - Import CefRect from cef_types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e2ef751 commit c1f6259

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/extern/cef/cef_mac.pxd

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@
55
include "compile_time_constants.pxi"
66

77
from libcpp cimport bool as cpp_bool
8+
from cef_types cimport CefRect
89

910
cdef extern from "include/internal/cef_mac.h":
1011

1112
ctypedef void* CefWindowHandle
1213
ctypedef void* CefCursorHandle
1314

15+
ctypedef enum cef_runtime_style_t:
16+
CEF_RUNTIME_STYLE_DEFAULT
17+
CEF_RUNTIME_STYLE_CHROME
18+
CEF_RUNTIME_STYLE_ALLOY
19+
1420
cdef cppclass CefWindowInfo:
21+
cef_runtime_style_t runtime_style
1522
void SetAsChild(CefWindowHandle parent,
16-
int x, int y, int width, int height)
23+
const CefRect& windowRect)
1724
void SetAsWindowless(CefWindowHandle parent)
1825

1926
cdef cppclass CefMainArgs:

0 commit comments

Comments
 (0)