mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-03 04:27:43 +01:00
Fix wrapping of comments in generated files.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1623 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
0e8a017416
commit
c2090fe967
@ -41,7 +41,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsdialog(
|
|||||||
if (!suppress_message)
|
if (!suppress_message)
|
||||||
return 0;
|
return 0;
|
||||||
// Unverified params: origin_url, accept_lang, message_text,
|
// Unverified params: origin_url, accept_lang, message_text,
|
||||||
default_prompt_text
|
// default_prompt_text
|
||||||
|
|
||||||
// Translate param: suppress_message; type: bool_byref
|
// Translate param: suppress_message; type: bool_byref
|
||||||
bool suppress_messageBool = (
|
bool suppress_messageBool = (
|
||||||
|
@ -36,7 +36,7 @@ bool CefJSDialogHandlerCToCpp::OnJSDialog(CefRefPtr<CefBrowser> browser,
|
|||||||
if (!callback.get())
|
if (!callback.get())
|
||||||
return false;
|
return false;
|
||||||
// Unverified params: origin_url, accept_lang, message_text,
|
// Unverified params: origin_url, accept_lang, message_text,
|
||||||
default_prompt_text
|
// default_prompt_text
|
||||||
|
|
||||||
// Translate param: suppress_message; type: bool_byref
|
// Translate param: suppress_message; type: bool_byref
|
||||||
int suppress_messageInt = suppress_message;
|
int suppress_messageInt = suppress_message;
|
||||||
|
@ -123,7 +123,15 @@ def make_cpptoc_function_impl_new(name, func, defined_names):
|
|||||||
'\n return'+retval_default+';'
|
'\n return'+retval_default+';'
|
||||||
|
|
||||||
if len(optional) > 0:
|
if len(optional) > 0:
|
||||||
result += '\n // Unverified params: '+string.join(optional,', ')
|
# Wrap the comment at 80 characters.
|
||||||
|
str = '\n // Unverified params: ' + optional[0]
|
||||||
|
for name in optional[1:]:
|
||||||
|
str += ','
|
||||||
|
if len(str) + len(name) + 1 > 80:
|
||||||
|
result += str
|
||||||
|
str = '\n //'
|
||||||
|
str += ' ' + name
|
||||||
|
result += str
|
||||||
|
|
||||||
if len(result) != result_len:
|
if len(result) != result_len:
|
||||||
result += '\n'
|
result += '\n'
|
||||||
|
@ -129,7 +129,15 @@ def make_ctocpp_function_impl_new(clsname, name, func):
|
|||||||
'\n return'+retval_default+';'
|
'\n return'+retval_default+';'
|
||||||
|
|
||||||
if len(optional) > 0:
|
if len(optional) > 0:
|
||||||
result += '\n // Unverified params: '+string.join(optional,', ')
|
# Wrap the comment at 80 characters.
|
||||||
|
str = '\n // Unverified params: ' + optional[0]
|
||||||
|
for name in optional[1:]:
|
||||||
|
str += ','
|
||||||
|
if len(str) + len(name) + 1 > 80:
|
||||||
|
result += str
|
||||||
|
str = '\n //'
|
||||||
|
str += ' ' + name
|
||||||
|
result += str
|
||||||
|
|
||||||
if len(result) != result_len:
|
if len(result) != result_len:
|
||||||
result += '\n'
|
result += '\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user