Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=ff20922a0e73fdb84b0cb1864f35911a1a725f8a$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_LABEL_BUTTON_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_LABEL_BUTTON_CAPI_H_
@@ -62,21 +64,21 @@ typedef struct _cef_label_button_t {
// Returns this LabelButton as a MenuButton or NULL if this is not a
// MenuButton.
///
struct _cef_menu_button_t* (CEF_CALLBACK *as_menu_button)(
struct _cef_menu_button_t*(CEF_CALLBACK* as_menu_button)(
struct _cef_label_button_t* self);
///
// Sets the text shown on the LabelButton. By default |text| will also be used
// as the accessible name.
///
void (CEF_CALLBACK *set_text)(struct _cef_label_button_t* self,
const cef_string_t* text);
void(CEF_CALLBACK* set_text)(struct _cef_label_button_t* self,
const cef_string_t* text);
///
// Returns the text shown on the LabelButton.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_text)(
cef_string_userfree_t(CEF_CALLBACK* get_text)(
struct _cef_label_button_t* self);
///
@@ -84,27 +86,30 @@ typedef struct _cef_label_button_t {
// image exists for the current state then the image for
// CEF_BUTTON_STATE_NORMAL, if any, will be shown.
///
void (CEF_CALLBACK *set_image)(struct _cef_label_button_t* self,
cef_button_state_t button_state, struct _cef_image_t* image);
void(CEF_CALLBACK* set_image)(struct _cef_label_button_t* self,
cef_button_state_t button_state,
struct _cef_image_t* image);
///
// Returns the image shown for |button_state|. If no image exists for that
// state then the image for CEF_BUTTON_STATE_NORMAL will be returned.
///
struct _cef_image_t* (CEF_CALLBACK *get_image)(
struct _cef_label_button_t* self, cef_button_state_t button_state);
struct _cef_image_t*(CEF_CALLBACK* get_image)(
struct _cef_label_button_t* self,
cef_button_state_t button_state);
///
// Sets the text color shown for the specified button |for_state| to |color|.
///
void (CEF_CALLBACK *set_text_color)(struct _cef_label_button_t* self,
cef_button_state_t for_state, cef_color_t color);
void(CEF_CALLBACK* set_text_color)(struct _cef_label_button_t* self,
cef_button_state_t for_state,
cef_color_t color);
///
// Sets the text colors shown for the non-disabled states to |color|.
///
void (CEF_CALLBACK *set_enabled_text_colors)(struct _cef_label_button_t* self,
cef_color_t color);
void(CEF_CALLBACK* set_enabled_text_colors)(struct _cef_label_button_t* self,
cef_color_t color);
///
// Sets the font list. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>",
@@ -116,30 +121,30 @@ typedef struct _cef_label_button_t {
// Here are examples of valid font description strings: - "Arial, Helvetica,
// Bold Italic 14px" - "Arial, 14px"
///
void (CEF_CALLBACK *set_font_list)(struct _cef_label_button_t* self,
const cef_string_t* font_list);
void(CEF_CALLBACK* set_font_list)(struct _cef_label_button_t* self,
const cef_string_t* font_list);
///
// Sets the horizontal alignment; reversed in RTL. Default is
// CEF_HORIZONTAL_ALIGNMENT_CENTER.
///
void (CEF_CALLBACK *set_horizontal_alignment)(
struct _cef_label_button_t* self, cef_horizontal_alignment_t alignment);
void(CEF_CALLBACK* set_horizontal_alignment)(
struct _cef_label_button_t* self,
cef_horizontal_alignment_t alignment);
///
// Reset the minimum size of this LabelButton to |size|.
///
void (CEF_CALLBACK *set_minimum_size)(struct _cef_label_button_t* self,
const cef_size_t* size);
void(CEF_CALLBACK* set_minimum_size)(struct _cef_label_button_t* self,
const cef_size_t* size);
///
// Reset the maximum size of this LabelButton to |size|.
///
void (CEF_CALLBACK *set_maximum_size)(struct _cef_label_button_t* self,
const cef_size_t* size);
void(CEF_CALLBACK* set_maximum_size)(struct _cef_label_button_t* self,
const cef_size_t* size);
} cef_label_button_t;
///
// Create a new LabelButton. A |delegate| must be provided to handle the button
// click. |text| will be shown on the LabelButton and used as the default
@@ -150,10 +155,10 @@ typedef struct _cef_label_button_t {
// default minimum size.
///
CEF_EXPORT cef_label_button_t* cef_label_button_create(
struct _cef_button_delegate_t* delegate, const cef_string_t* text,
struct _cef_button_delegate_t* delegate,
const cef_string_t* text,
int with_frame);
#ifdef __cplusplus
}
#endif