Skip to content

Commit 0ae0e23

Browse files
Update to 105.3.39+g2ec21f9+chromium-105.0.5195.127
1 parent 1b2aad3 commit 0ae0e23

File tree

204 files changed

+7328
-7256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+7328
-7256
lines changed

CefGlue.Interop.Gen/cef_parser.py

+31-30
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,7 @@ def get_comment(body, name):
9999
line = data['line'].strip()
100100
pos = data['start']
101101
if len(line) == 0:
102-
# check if the next previous line is a comment
103-
prevdata = get_prev_line(body, pos)
104-
prevline = prevdata['line'].strip()
105-
if prevline[0:2] == '//' and prevline[0:3] != '///':
106-
result.append(None)
107-
else:
108-
break
102+
break
109103
# single line /*--cef()--*/
110104
elif line[0:2] == '/*' and line[-2:] == '*/':
111105
continue
@@ -119,9 +113,9 @@ def get_comment(body, name):
119113
continue
120114
elif in_block_comment:
121115
continue
122-
elif line[0:2] == '//':
116+
elif line[0:3] == '///':
123117
# keep the comment line including any leading spaces
124-
result.append(line[2:])
118+
result.append(line[3:])
125119
else:
126120
break
127121

@@ -132,15 +126,9 @@ def get_comment(body, name):
132126
def validate_comment(file, name, comment):
133127
""" Validate the comment array returned by get_comment(). """
134128
# Verify that the comment contains beginning and ending '///' as required by
135-
# CppDoc (the leading '//' from each line will already have been removed by
136-
# the get_comment() logic). There may be additional comments proceeding the
137-
# CppDoc block so we look at the quantity of lines equaling '/' and expect
138-
# the last line to be '/'.
139-
docct = 0
140-
for line in comment:
141-
if not line is None and len(line) > 0 and line == '/':
142-
docct = docct + 1
143-
if docct != 2 or len(comment) < 3 or comment[len(comment) - 1] != '/':
129+
# Doxygen (the leading '///' from each line will already have been removed by
130+
# the get_comment() logic).
131+
if len(comment) < 3 or len(comment[0]) != 0 or len(comment[-1]) != 0:
144132
raise Exception('Missing or incorrect comment in %s for: %s' % \
145133
(file, name))
146134

@@ -157,29 +145,28 @@ def format_comment(comment, indent, translate_map=None, maxchars=80):
157145
hasemptyline = False
158146
for line in comment:
159147
# if the line starts with a leading space, remove that space
160-
if not line is None and len(line) > 0 and line[0:1] == ' ':
148+
if not line is None and len(line) > 0 and line[0] == ' ':
161149
line = line[1:]
162150
didremovespace = True
163151
else:
164152
didremovespace = False
165153

166-
if line is None or len(line) == 0 or line[0:1] == ' ' \
167-
or line[0:1] == '/':
154+
if line is None or len(line) == 0 or line[0] == ' ':
168155
# the previous paragraph, if any, has ended
169156
if len(wrapme) > 0:
170157
if not translate_map is None:
171158
# apply the translation
172159
for key in translate_keys:
173160
wrapme = wrapme.replace(key, translate_map[key])
174161
# output the previous paragraph
175-
result += wrap_text(wrapme, indent + '// ', maxchars)
162+
result += wrap_text(wrapme, indent + '/// ', maxchars)
176163
wrapme = ''
177164

178165
if not line is None:
179-
if len(line) == 0 or line[0:1] == ' ' or line[0:1] == '/':
166+
if len(line) == 0 or line[0] == ' ':
180167
# blank lines or anything that's further indented should be
181168
# output as-is
182-
result += indent + '//'
169+
result += indent + '///'
183170
if len(line) > 0:
184171
if didremovespace:
185172
result += ' ' + line
@@ -200,7 +187,7 @@ def format_comment(comment, indent, translate_map=None, maxchars=80):
200187
for key in translate_map.keys():
201188
wrapme = wrapme.replace(key, translate_map[key])
202189
# output the previous paragraph
203-
result += wrap_text(wrapme, indent + '// ', maxchars)
190+
result += wrap_text(wrapme, indent + '/// ', maxchars)
204191

205192
if hasemptyline:
206193
# an empty line means a break between comments, so the comment is
@@ -394,21 +381,35 @@ def dict_to_str(dict):
394381
'char* const': ['char* const', 'NULL'],
395382
'cef_color_t': ['cef_color_t', '0'],
396383
'cef_json_parser_error_t': ['cef_json_parser_error_t', 'JSON_NO_ERROR'],
397-
'CefCursorHandle': ['cef_cursor_handle_t', 'kNullCursorHandle'],
384+
'CefAudioParameters': ['cef_audio_parameters_t', 'CefAudioParameters()'],
385+
'CefBaseTime': ['cef_basetime_t', 'CefBaseTime()'],
386+
'CefBoxLayoutSettings': [
387+
'cef_box_layout_settings_t', 'CefBoxLayoutSettings()'
388+
],
398389
'CefCompositionUnderline': [
399390
'cef_composition_underline_t', 'CefCompositionUnderline()'
400391
],
392+
'CefCursorHandle': ['cef_cursor_handle_t', 'kNullCursorHandle'],
393+
'CefCursorInfo': ['cef_cursor_info_t', 'CefCursorInfo()'],
394+
'CefDraggableRegion': ['cef_draggable_region_t', 'CefDraggableRegion()'],
401395
'CefEventHandle': ['cef_event_handle_t', 'kNullEventHandle'],
402-
'CefWindowHandle': ['cef_window_handle_t', 'kNullWindowHandle'],
403396
'CefInsets': ['cef_insets_t', 'CefInsets()'],
397+
'CefKeyEvent': ['cef_key_event_t', 'CefKeyEvent()'],
398+
'CefMainArgs': ['cef_main_args_t', 'CefMainArgs()'],
399+
'CefMouseEvent': ['cef_mouse_event_t', 'CefMouseEvent()'],
404400
'CefPoint': ['cef_point_t', 'CefPoint()'],
401+
'CefPopupFeatures': ['cef_popup_features_t', 'CefPopupFeatures()'],
402+
'CefRange': ['cef_range_t', 'CefRange()'],
405403
'CefRect': ['cef_rect_t', 'CefRect()'],
404+
'CefScreenInfo': ['cef_screen_info_t', 'CefScreenInfo()'],
406405
'CefSize': ['cef_size_t', 'CefSize()'],
407-
'CefRange': ['cef_range_t', 'CefRange()'],
408-
'CefDraggableRegion': ['cef_draggable_region_t', 'CefDraggableRegion()'],
406+
'CefTouchEvent': ['cef_touch_event_t', 'CefTouchEvent()'],
407+
'CefTouchHandleState': [
408+
'cef_touch_handle_state_t', 'CefTouchHandleState()'
409+
],
409410
'CefThreadId': ['cef_thread_id_t', 'TID_UI'],
410411
'CefTime': ['cef_time_t', 'CefTime()'],
411-
'CefAudioParameters': ['cef_audio_parameters_t', 'CefAudioParameters()']
412+
'CefWindowHandle': ['cef_window_handle_t', 'kNullWindowHandle'],
412413
}
413414

414415

CefGlue.Interop.Gen/include/cef_accessibility_handler.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@
4141
#include "include/cef_values.h"
4242

4343
///
44-
// Implement this interface to receive accessibility notification when
45-
// accessibility events have been registered. The methods of this class will
46-
// be called on the UI thread.
44+
/// Implement this interface to receive accessibility notification when
45+
/// accessibility events have been registered. The methods of this class will
46+
/// be called on the UI thread.
4747
///
4848
/*--cef(source=client)--*/
4949
class CefAccessibilityHandler : public virtual CefBaseRefCounted {
5050
public:
5151
///
52-
// Called after renderer process sends accessibility tree changes to the
53-
// browser process.
52+
/// Called after renderer process sends accessibility tree changes to the
53+
/// browser process.
5454
///
5555
/*--cef()--*/
5656
virtual void OnAccessibilityTreeChange(CefRefPtr<CefValue> value) = 0;
5757

5858
///
59-
// Called after renderer process sends accessibility location changes to the
60-
// browser process.
59+
/// Called after renderer process sends accessibility location changes to the
60+
/// browser process.
6161
///
6262
/*--cef()--*/
6363
virtual void OnAccessibilityLocationChange(CefRefPtr<CefValue> value) = 0;

CefGlue.Interop.Gen/include/cef_api_hash.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
// way that may cause binary incompatibility with other builds. The universal
4343
// hash value will change if any platform is affected whereas the platform hash
4444
// values will change only if that particular platform is affected.
45-
#define CEF_API_HASH_UNIVERSAL "1f35577ebd00c5e6cc03a172bb41e3c0d820f3d1"
45+
#define CEF_API_HASH_UNIVERSAL "44197292401010f8fce5b053733edd8642d01095"
4646
#if defined(OS_WIN)
47-
#define CEF_API_HASH_PLATFORM "99f91193dce6b93011526269c4dc5d0c32569b70"
47+
#define CEF_API_HASH_PLATFORM "95bf7fa1356070be95b7a6fee958355c6619fb63"
4848
#elif defined(OS_MAC)
49-
#define CEF_API_HASH_PLATFORM "316e120c0bf151de8145ee3b45ef3451e1ff60dc"
49+
#define CEF_API_HASH_PLATFORM "8ec5426d7aa0418fca147380e97623a49cd8eaf4"
5050
#elif defined(OS_LINUX)
51-
#define CEF_API_HASH_PLATFORM "e061aecbfbf09b9068391bdfcd80c9d5ed1faece"
51+
#define CEF_API_HASH_PLATFORM "b2cbc2e6a3048d2415566d35ba434967fd796491"
5252
#endif
5353

5454
#ifdef __cplusplus

CefGlue.Interop.Gen/include/cef_app.h

+68-66
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@
4848
class CefApp;
4949

5050
///
51-
// This function should be called from the application entry point function to
52-
// execute a secondary process. It can be used to run secondary processes from
53-
// the browser client executable (default behavior) or from a separate
54-
// executable specified by the CefSettings.browser_subprocess_path value. If
55-
// called for the browser process (identified by no "type" command-line value)
56-
// it will return immediately with a value of -1. If called for a recognized
57-
// secondary process it will block until the process should exit and then return
58-
// the process exit code. The |application| parameter may be empty. The
59-
// |windows_sandbox_info| parameter is only used on Windows and may be NULL (see
60-
// cef_sandbox_win.h for details).
51+
/// This function should be called from the application entry point function to
52+
/// execute a secondary process. It can be used to run secondary processes from
53+
/// the browser client executable (default behavior) or from a separate
54+
/// executable specified by the cef_settings_t.browser_subprocess_path value. If
55+
/// called for the browser process (identified by no "type" command-line value)
56+
/// it will return immediately with a value of -1. If called for a recognized
57+
/// secondary process it will block until the process should exit and then
58+
/// return the process exit code. The |application| parameter may be empty. The
59+
/// |windows_sandbox_info| parameter is only used on Windows and may be NULL
60+
/// (see cef_sandbox_win.h for details).
6161
///
6262
/*--cef(api_hash_check,optional_param=application,
6363
optional_param=windows_sandbox_info)--*/
@@ -66,11 +66,11 @@ int CefExecuteProcess(const CefMainArgs& args,
6666
void* windows_sandbox_info);
6767

6868
///
69-
// This function should be called on the main application thread to initialize
70-
// the CEF browser process. The |application| parameter may be empty. A return
71-
// value of true indicates that it succeeded and false indicates that it failed.
72-
// The |windows_sandbox_info| parameter is only used on Windows and may be NULL
73-
// (see cef_sandbox_win.h for details).
69+
/// This function should be called on the main application thread to initialize
70+
/// the CEF browser process. The |application| parameter may be empty. A return
71+
/// value of true indicates that it succeeded and false indicates that it
72+
/// failed. The |windows_sandbox_info| parameter is only used on Windows and may
73+
/// be NULL (see cef_sandbox_win.h for details).
7474
///
7575
/*--cef(api_hash_check,optional_param=application,
7676
optional_param=windows_sandbox_info)--*/
@@ -80,119 +80,121 @@ bool CefInitialize(const CefMainArgs& args,
8080
void* windows_sandbox_info);
8181

8282
///
83-
// This function should be called on the main application thread to shut down
84-
// the CEF browser process before the application exits.
83+
/// This function should be called on the main application thread to shut down
84+
/// the CEF browser process before the application exits.
8585
///
8686
/*--cef()--*/
8787
void CefShutdown();
8888

8989
///
90-
// Perform a single iteration of CEF message loop processing. This function is
91-
// provided for cases where the CEF message loop must be integrated into an
92-
// existing application message loop. Use of this function is not recommended
93-
// for most users; use either the CefRunMessageLoop() function or
94-
// CefSettings.multi_threaded_message_loop if possible. When using this function
95-
// care must be taken to balance performance against excessive CPU usage. It is
96-
// recommended to enable the CefSettings.external_message_pump option when using
97-
// this function so that CefBrowserProcessHandler::OnScheduleMessagePumpWork()
98-
// callbacks can facilitate the scheduling process. This function should only be
99-
// called on the main application thread and only if CefInitialize() is called
100-
// with a CefSettings.multi_threaded_message_loop value of false. This function
101-
// will not block.
90+
/// Perform a single iteration of CEF message loop processing. This function is
91+
/// provided for cases where the CEF message loop must be integrated into an
92+
/// existing application message loop. Use of this function is not recommended
93+
/// for most users; use either the CefRunMessageLoop() function or
94+
/// cef_settings_t.multi_threaded_message_loop if possible. When using this
95+
/// function care must be taken to balance performance against excessive CPU
96+
/// usage. It is recommended to enable the cef_settings_t.external_message_pump
97+
/// option when using this function so that
98+
/// CefBrowserProcessHandler::OnScheduleMessagePumpWork() callbacks can
99+
/// facilitate the scheduling process. This function should only be called on
100+
/// the main application thread and only if CefInitialize() is called with a
101+
/// cef_settings_t.multi_threaded_message_loop value of false. This function
102+
/// will not block.
102103
///
103104
/*--cef()--*/
104105
void CefDoMessageLoopWork();
105106

106107
///
107-
// Run the CEF message loop. Use this function instead of an application-
108-
// provided message loop to get the best balance between performance and CPU
109-
// usage. This function should only be called on the main application thread and
110-
// only if CefInitialize() is called with a
111-
// CefSettings.multi_threaded_message_loop value of false. This function will
112-
// block until a quit message is received by the system.
108+
/// Run the CEF message loop. Use this function instead of an application-
109+
/// provided message loop to get the best balance between performance and CPU
110+
/// usage. This function should only be called on the main application thread
111+
/// and only if CefInitialize() is called with a
112+
/// cef_settings_t.multi_threaded_message_loop value of false. This function
113+
/// will block until a quit message is received by the system.
113114
///
114115
/*--cef()--*/
115116
void CefRunMessageLoop();
116117

117118
///
118-
// Quit the CEF message loop that was started by calling CefRunMessageLoop().
119-
// This function should only be called on the main application thread and only
120-
// if CefRunMessageLoop() was used.
119+
/// Quit the CEF message loop that was started by calling CefRunMessageLoop().
120+
/// This function should only be called on the main application thread and only
121+
/// if CefRunMessageLoop() was used.
121122
///
122123
/*--cef()--*/
123124
void CefQuitMessageLoop();
124125

125126
///
126-
// Set to true before calling Windows APIs like TrackPopupMenu that enter a
127-
// modal message loop. Set to false after exiting the modal message loop.
127+
/// Set to true before calling Windows APIs like TrackPopupMenu that enter a
128+
/// modal message loop. Set to false after exiting the modal message loop.
128129
///
129130
/*--cef()--*/
130131
void CefSetOSModalLoop(bool osModalLoop);
131132

132133
///
133-
// Call during process startup to enable High-DPI support on Windows 7 or newer.
134-
// Older versions of Windows should be left DPI-unaware because they do not
135-
// support DirectWrite and GDI fonts are kerned very badly.
134+
/// Call during process startup to enable High-DPI support on Windows 7 or
135+
/// newer. Older versions of Windows should be left DPI-unaware because they do
136+
/// not support DirectWrite and GDI fonts are kerned very badly.
136137
///
137138
/*--cef(capi_name=cef_enable_highdpi_support)--*/
138139
void CefEnableHighDPISupport();
139140

140141
///
141-
// Implement this interface to provide handler implementations. Methods will be
142-
// called by the process and/or thread indicated.
142+
/// Implement this interface to provide handler implementations. Methods will be
143+
/// called by the process and/or thread indicated.
143144
///
144145
/*--cef(source=client,no_debugct_check)--*/
145146
class CefApp : public virtual CefBaseRefCounted {
146147
public:
147148
///
148-
// Provides an opportunity to view and/or modify command-line arguments before
149-
// processing by CEF and Chromium. The |process_type| value will be empty for
150-
// the browser process. Do not keep a reference to the CefCommandLine object
151-
// passed to this method. The CefSettings.command_line_args_disabled value
152-
// can be used to start with an empty command-line object. Any values
153-
// specified in CefSettings that equate to command-line arguments will be set
154-
// before this method is called. Be cautious when using this method to modify
155-
// command-line arguments for non-browser processes as this may result in
156-
// undefined behavior including crashes.
149+
/// Provides an opportunity to view and/or modify command-line arguments
150+
/// before processing by CEF and Chromium. The |process_type| value will be
151+
/// empty for the browser process. Do not keep a reference to the
152+
/// CefCommandLine object passed to this method. The
153+
/// cef_settings_t.command_line_args_disabled value can be used to start with
154+
/// an empty command-line object. Any values specified in CefSettings that
155+
/// equate to command-line arguments will be set before this method is called.
156+
/// Be cautious when using this method to modify command-line arguments for
157+
/// non-browser processes as this may result in undefined behavior including
158+
/// crashes.
157159
///
158160
/*--cef(optional_param=process_type)--*/
159161
virtual void OnBeforeCommandLineProcessing(
160162
const CefString& process_type,
161163
CefRefPtr<CefCommandLine> command_line) {}
162164

163165
///
164-
// Provides an opportunity to register custom schemes. Do not keep a reference
165-
// to the |registrar| object. This method is called on the main thread for
166-
// each process and the registered schemes should be the same across all
167-
// processes.
166+
/// Provides an opportunity to register custom schemes. Do not keep a
167+
/// reference to the |registrar| object. This method is called on the main
168+
/// thread for each process and the registered schemes should be the same
169+
/// across all processes.
168170
///
169171
/*--cef()--*/
170172
virtual void OnRegisterCustomSchemes(
171173
CefRawPtr<CefSchemeRegistrar> registrar) {}
172174

173175
///
174-
// Return the handler for resource bundle events. If
175-
// CefSettings.pack_loading_disabled is true a handler must be returned. If no
176-
// handler is returned resources will be loaded from pack files. This method
177-
// is called by the browser and render processes on multiple threads.
176+
/// Return the handler for resource bundle events. If
177+
/// cef_settings_t.pack_loading_disabled is true a handler must be returned.
178+
/// If no handler is returned resources will be loaded from pack files. This
179+
/// method is called by the browser and render processes on multiple threads.
178180
///
179181
/*--cef()--*/
180182
virtual CefRefPtr<CefResourceBundleHandler> GetResourceBundleHandler() {
181183
return nullptr;
182184
}
183185

184186
///
185-
// Return the handler for functionality specific to the browser process. This
186-
// method is called on multiple threads in the browser process.
187+
/// Return the handler for functionality specific to the browser process. This
188+
/// method is called on multiple threads in the browser process.
187189
///
188190
/*--cef()--*/
189191
virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler() {
190192
return nullptr;
191193
}
192194

193195
///
194-
// Return the handler for functionality specific to the render process. This
195-
// method is called on the render process main thread.
196+
/// Return the handler for functionality specific to the render process. This
197+
/// method is called on the render process main thread.
196198
///
197199
/*--cef()--*/
198200
virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler() {

0 commit comments

Comments
 (0)