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=acbfe00533fba6a55e9a0d0d0c6a317f54dbf887$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BOX_LAYOUT_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_BOX_LAYOUT_CAPI_H_
@@ -67,18 +69,18 @@ typedef struct _cef_box_layout_t {
// space is subtracted in these ratios. A flex of 0 means this view is not
// resized. Flex values must not be negative.
///
void (CEF_CALLBACK *set_flex_for_view)(struct _cef_box_layout_t* self,
struct _cef_view_t* view, int flex);
void(CEF_CALLBACK* set_flex_for_view)(struct _cef_box_layout_t* self,
struct _cef_view_t* view,
int flex);
///
// Clears the flex for the given |view|, causing it to use the default flex
// specified via cef_box_layout_tSettings.default_flex.
///
void (CEF_CALLBACK *clear_flex_for_view)(struct _cef_box_layout_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* clear_flex_for_view)(struct _cef_box_layout_t* self,
struct _cef_view_t* view);
} cef_box_layout_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=0ba6628b63ed6641097a1714d4facf5343cf2252$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BROWSER_VIEW_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_BROWSER_VIEW_CAPI_H_
@@ -46,7 +48,6 @@
extern "C" {
#endif
///
// A View hosting a cef_browser_t instance. Methods must be called on the
// browser process UI thread unless otherwise indicated.
@@ -61,7 +62,7 @@ typedef struct _cef_browser_view_t {
// Returns the cef_browser_t hosted by this BrowserView. Will return NULL if
// the browser has not yet been created or has already been destroyed.
///
struct _cef_browser_t* (CEF_CALLBACK *get_browser)(
struct _cef_browser_t*(CEF_CALLBACK* get_browser)(
struct _cef_browser_view_t* self);
///
@@ -73,17 +74,17 @@ typedef struct _cef_browser_view_t {
// only be triggered if the event is not handled by web content or by
// cef_keyboard_handler_t. The default value is false (0).
///
void (CEF_CALLBACK *set_prefer_accelerators)(struct _cef_browser_view_t* self,
int prefer_accelerators);
void(CEF_CALLBACK* set_prefer_accelerators)(struct _cef_browser_view_t* self,
int prefer_accelerators);
} cef_browser_view_t;
///
// Create a new BrowserView. The underlying cef_browser_t will not be created
// until this view is added to the views hierarchy.
///
CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
struct _cef_client_t* client, const cef_string_t* url,
struct _cef_client_t* client,
const cef_string_t* url,
const struct _cef_browser_settings_t* settings,
struct _cef_request_context_t* request_context,
struct _cef_browser_view_delegate_t* delegate);
@@ -94,7 +95,6 @@ CEF_EXPORT cef_browser_view_t* cef_browser_view_create(
CEF_EXPORT cef_browser_view_t* cef_browser_view_get_for_browser(
struct _cef_browser_t* browser);
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=08193b1ef781224bf7664c5bf407af8674ad2362$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BROWSER_VIEW_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_BROWSER_VIEW_DELEGATE_CAPI_H_
@@ -65,7 +67,7 @@ typedef struct _cef_browser_view_delegate_t {
// is called for |browser| and before on_popup_browser_view_created() is
// called for |browser|'s parent delegate if |browser| is a popup.
///
void (CEF_CALLBACK *on_browser_created)(
void(CEF_CALLBACK* on_browser_created)(
struct _cef_browser_view_delegate_t* self,
struct _cef_browser_view_t* browser_view,
struct _cef_browser_t* browser);
@@ -76,7 +78,7 @@ typedef struct _cef_browser_view_delegate_t {
// |browser| after this callback returns. This function will be called before
// cef_life_span_handler_t::on_before_close() is called for |browser|.
///
void (CEF_CALLBACK *on_browser_destroyed)(
void(CEF_CALLBACK* on_browser_destroyed)(
struct _cef_browser_view_delegate_t* self,
struct _cef_browser_view_t* browser_view,
struct _cef_browser_t* browser);
@@ -88,12 +90,13 @@ typedef struct _cef_browser_view_delegate_t {
// if the popup will be a DevTools browser. Return the delegate that will be
// used for the new popup BrowserView.
///
struct _cef_browser_view_delegate_t* (
CEF_CALLBACK *get_delegate_for_popup_browser_view)(
struct _cef_browser_view_delegate_t*(
CEF_CALLBACK* get_delegate_for_popup_browser_view)(
struct _cef_browser_view_delegate_t* self,
struct _cef_browser_view_t* browser_view,
const struct _cef_browser_settings_t* settings,
struct _cef_client_t* client, int is_devtools);
struct _cef_client_t* client,
int is_devtools);
///
// Called after |popup_browser_view| is created. This function will be called
@@ -104,13 +107,13 @@ typedef struct _cef_browser_view_delegate_t {
// yourself and return true (1). Otherwise return false (0) and a default
// cef_window_t will be created for the popup.
///
int (CEF_CALLBACK *on_popup_browser_view_created)(
int(CEF_CALLBACK* on_popup_browser_view_created)(
struct _cef_browser_view_delegate_t* self,
struct _cef_browser_view_t* browser_view,
struct _cef_browser_view_t* popup_browser_view, int is_devtools);
struct _cef_browser_view_t* popup_browser_view,
int is_devtools);
} cef_browser_view_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=f785be05a42d3490ac2e625470befa7d4f77befb$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_CAPI_H_
@@ -60,41 +62,40 @@ typedef struct _cef_button_t {
///
// Returns this Button as a LabelButton or NULL if this is not a LabelButton.
///
struct _cef_label_button_t* (CEF_CALLBACK *as_label_button)(
struct _cef_label_button_t*(CEF_CALLBACK* as_label_button)(
struct _cef_button_t* self);
///
// Sets the current display state of the Button.
///
void (CEF_CALLBACK *set_state)(struct _cef_button_t* self,
cef_button_state_t state);
void(CEF_CALLBACK* set_state)(struct _cef_button_t* self,
cef_button_state_t state);
///
// Returns the current display state of the Button.
///
cef_button_state_t (CEF_CALLBACK *get_state)(struct _cef_button_t* self);
cef_button_state_t(CEF_CALLBACK* get_state)(struct _cef_button_t* self);
///
// Sets the Button will use an ink drop effect for displaying state changes.
///
void (CEF_CALLBACK *set_ink_drop_enabled)(struct _cef_button_t* self,
int enabled);
void(CEF_CALLBACK* set_ink_drop_enabled)(struct _cef_button_t* self,
int enabled);
///
// Sets the tooltip text that will be displayed when the user hovers the mouse
// cursor over the Button.
///
void (CEF_CALLBACK *set_tooltip_text)(struct _cef_button_t* self,
const cef_string_t* tooltip_text);
void(CEF_CALLBACK* set_tooltip_text)(struct _cef_button_t* self,
const cef_string_t* tooltip_text);
///
// Sets the accessible name that will be exposed to assistive technology (AT).
///
void (CEF_CALLBACK *set_accessible_name)(struct _cef_button_t* self,
const cef_string_t* name);
void(CEF_CALLBACK* set_accessible_name)(struct _cef_button_t* self,
const cef_string_t* name);
} cef_button_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=eb5e428e07fbad33c7da94735969b0ff4dd6fb9f$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_BUTTON_DELEGATE_CAPI_H_
@@ -60,17 +62,17 @@ typedef struct _cef_button_delegate_t {
///
// Called when |button| is pressed.
///
void (CEF_CALLBACK *on_button_pressed)(struct _cef_button_delegate_t* self,
struct _cef_button_t* button);
void(CEF_CALLBACK* on_button_pressed)(struct _cef_button_delegate_t* self,
struct _cef_button_t* button);
///
// Called when the state of |button| changes.
///
void (CEF_CALLBACK *on_button_state_changed)(
struct _cef_button_delegate_t* self, struct _cef_button_t* button);
void(CEF_CALLBACK* on_button_state_changed)(
struct _cef_button_delegate_t* self,
struct _cef_button_t* button);
} cef_button_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=20e9f8cdab0325b3d860128a946f3120563fa08e$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_DISPLAY_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_DISPLAY_CAPI_H_
@@ -44,7 +46,6 @@
extern "C" {
#endif
///
// This structure typically, but not always, corresponds to a physical display
// connected to the system. A fake Display may exist on a headless system, or a
@@ -62,7 +63,7 @@ typedef struct _cef_display_t {
///
// Returns the unique identifier for this Display.
///
int64 (CEF_CALLBACK *get_id)(struct _cef_display_t* self);
int64(CEF_CALLBACK* get_id)(struct _cef_display_t* self);
///
// Returns this Display's device pixel scale factor. This specifies how much
@@ -70,40 +71,39 @@ typedef struct _cef_display_t {
// standard displays (which is around 100~120dpi). The potential return values
// differ by platform.
///
float (CEF_CALLBACK *get_device_scale_factor)(struct _cef_display_t* self);
float(CEF_CALLBACK* get_device_scale_factor)(struct _cef_display_t* self);
///
// Convert |point| from density independent pixels (DIP) to pixel coordinates
// using this Display's device scale factor.
///
void (CEF_CALLBACK *convert_point_to_pixels)(struct _cef_display_t* self,
cef_point_t* point);
void(CEF_CALLBACK* convert_point_to_pixels)(struct _cef_display_t* self,
cef_point_t* point);
///
// Convert |point| from pixel coordinates to density independent pixels (DIP)
// using this Display's device scale factor.
///
void (CEF_CALLBACK *convert_point_from_pixels)(struct _cef_display_t* self,
cef_point_t* point);
void(CEF_CALLBACK* convert_point_from_pixels)(struct _cef_display_t* self,
cef_point_t* point);
///
// Returns this Display's bounds. This is the full size of the display.
///
cef_rect_t (CEF_CALLBACK *get_bounds)(struct _cef_display_t* self);
cef_rect_t(CEF_CALLBACK* get_bounds)(struct _cef_display_t* self);
///
// Returns this Display's work area. This excludes areas of the display that
// are occupied for window manager toolbars, etc.
///
cef_rect_t (CEF_CALLBACK *get_work_area)(struct _cef_display_t* self);
cef_rect_t(CEF_CALLBACK* get_work_area)(struct _cef_display_t* self);
///
// Returns this Display's rotation in degrees.
///
int (CEF_CALLBACK *get_rotation)(struct _cef_display_t* self);
int(CEF_CALLBACK* get_rotation)(struct _cef_display_t* self);
} cef_display_t;
///
// Returns the primary Display.
///
@@ -114,7 +114,8 @@ CEF_EXPORT cef_display_t* cef_display_get_primary();
// |point| is in pixel coordinates instead of density independent pixels (DIP).
///
CEF_EXPORT cef_display_t* cef_display_get_nearest_point(
const cef_point_t* point, int input_pixel_coords);
const cef_point_t* point,
int input_pixel_coords);
///
// Returns the Display that most closely intersects |bounds|. Set
@@ -122,7 +123,8 @@ CEF_EXPORT cef_display_t* cef_display_get_nearest_point(
// of density independent pixels (DIP).
///
CEF_EXPORT cef_display_t* cef_display_get_matching_bounds(
const cef_rect_t* bounds, int input_pixel_coords);
const cef_rect_t* bounds,
int input_pixel_coords);
///
// Returns the total number of Displays. Mirrored displays are excluded; this
@@ -135,8 +137,7 @@ CEF_EXPORT size_t cef_display_get_count();
// intended to return distinct, usable displays.
///
CEF_EXPORT void cef_display_get_alls(size_t* displaysCount,
cef_display_t** displays);
cef_display_t** displays);
#ifdef __cplusplus
}

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=32d7f76955b00935902e954344c76efe864eabf4$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_FILL_LAYOUT_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_FILL_LAYOUT_CAPI_H_
@@ -44,7 +46,6 @@
extern "C" {
#endif
///
// A simple Layout that causes the associated Panel's one child to be sized to
// match the bounds of its parent. Methods must be called on the browser process
@@ -57,7 +58,6 @@ typedef struct _cef_fill_layout_t {
cef_layout_t base;
} cef_fill_layout_t;
#ifdef __cplusplus
}
#endif

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

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=0fd9d445840558956dbe281f1d5d20ec003684d1$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_LAYOUT_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_LAYOUT_CAPI_H_
@@ -61,22 +63,21 @@ typedef struct _cef_layout_t {
///
// Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.
///
struct _cef_box_layout_t* (CEF_CALLBACK *as_box_layout)(
struct _cef_box_layout_t*(CEF_CALLBACK* as_box_layout)(
struct _cef_layout_t* self);
///
// Returns this Layout as a FillLayout or NULL if this is not a FillLayout.
///
struct _cef_fill_layout_t* (CEF_CALLBACK *as_fill_layout)(
struct _cef_fill_layout_t*(CEF_CALLBACK* as_fill_layout)(
struct _cef_layout_t* self);
///
// Returns true (1) if this Layout is valid.
///
int (CEF_CALLBACK *is_valid)(struct _cef_layout_t* self);
int(CEF_CALLBACK* is_valid)(struct _cef_layout_t* self);
} cef_layout_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=cf3b867dfc26e13b96f2e20fe8b974a38d28119e$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_CAPI_H_
@@ -46,7 +48,6 @@
extern "C" {
#endif
///
// MenuButton is a button with optional text, icon and/or menu marker that shows
// a menu when clicked with the left mouse button. All size and position values
@@ -65,18 +66,18 @@ typedef struct _cef_menu_button_t {
// will be anchored relative to |screen_point|. This function should be called
// from cef_menu_button_delegate_t::on_menu_button_pressed().
///
void (CEF_CALLBACK *show_menu)(struct _cef_menu_button_t* self,
struct _cef_menu_model_t* menu_model, const cef_point_t* screen_point,
cef_menu_anchor_position_t anchor_position);
void(CEF_CALLBACK* show_menu)(struct _cef_menu_button_t* self,
struct _cef_menu_model_t* menu_model,
const cef_point_t* screen_point,
cef_menu_anchor_position_t anchor_position);
///
// Show the menu for this button. Results in a call to
// cef_menu_button_delegate_t::on_menu_button_pressed().
///
void (CEF_CALLBACK *trigger_menu)(struct _cef_menu_button_t* self);
void(CEF_CALLBACK* trigger_menu)(struct _cef_menu_button_t* self);
} cef_menu_button_t;
///
// Create a new MenuButton. A |delegate| must be provided to call show_menu()
// when the button is clicked. |text| will be shown on the MenuButton and used
@@ -88,9 +89,10 @@ typedef struct _cef_menu_button_t {
// will be added to the button.
///
CEF_EXPORT cef_menu_button_t* cef_menu_button_create(
struct _cef_menu_button_delegate_t* delegate, const cef_string_t* text,
int with_frame, int with_menu_marker);
struct _cef_menu_button_delegate_t* delegate,
const cef_string_t* text,
int with_frame,
int with_menu_marker);
#ifdef __cplusplus
}

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=a2b3912f8188f19f3d5109aec1b1d03227e31429$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_MENU_BUTTON_DELEGATE_CAPI_H_
@@ -61,13 +63,12 @@ typedef struct _cef_menu_button_delegate_t {
// Called when |button| is pressed. Call cef_menu_button_t::show_menu() to
// show the resulting menu at |screen_point|.
///
void (CEF_CALLBACK *on_menu_button_pressed)(
void(CEF_CALLBACK* on_menu_button_pressed)(
struct _cef_menu_button_delegate_t* self,
struct _cef_menu_button_t* menu_button,
const cef_point_t* screen_point);
} cef_menu_button_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=dd5ea19f73dcec3e4f229920f44c9de6599e4f36$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_CAPI_H_
@@ -64,84 +66,84 @@ typedef struct _cef_panel_t {
///
// Returns this Panel as a Window or NULL if this is not a Window.
///
struct _cef_window_t* (CEF_CALLBACK *as_window)(struct _cef_panel_t* self);
struct _cef_window_t*(CEF_CALLBACK* as_window)(struct _cef_panel_t* self);
///
// Set this Panel's Layout to FillLayout and return the FillLayout object.
///
struct _cef_fill_layout_t* (CEF_CALLBACK *set_to_fill_layout)(
struct _cef_fill_layout_t*(CEF_CALLBACK* set_to_fill_layout)(
struct _cef_panel_t* self);
///
// Set this Panel's Layout to BoxLayout and return the BoxLayout object.
///
struct _cef_box_layout_t* (CEF_CALLBACK *set_to_box_layout)(
struct _cef_box_layout_t*(CEF_CALLBACK* set_to_box_layout)(
struct _cef_panel_t* self,
const struct _cef_box_layout_settings_t* settings);
///
// Get the Layout.
///
struct _cef_layout_t* (CEF_CALLBACK *get_layout)(struct _cef_panel_t* self);
struct _cef_layout_t*(CEF_CALLBACK* get_layout)(struct _cef_panel_t* self);
///
// Lay out the child Views (set their bounds based on sizing heuristics
// specific to the current Layout).
///
void (CEF_CALLBACK *layout)(struct _cef_panel_t* self);
void(CEF_CALLBACK* layout)(struct _cef_panel_t* self);
///
// Add a child View.
///
void (CEF_CALLBACK *add_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* add_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view);
///
// Add a child View at the specified |index|. If |index| matches the result of
// GetChildCount() then the View will be added at the end.
///
void (CEF_CALLBACK *add_child_view_at)(struct _cef_panel_t* self,
struct _cef_view_t* view, int index);
void(CEF_CALLBACK* add_child_view_at)(struct _cef_panel_t* self,
struct _cef_view_t* view,
int index);
///
// Move the child View to the specified |index|. A negative value for |index|
// will move the View to the end.
///
void (CEF_CALLBACK *reorder_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view, int index);
void(CEF_CALLBACK* reorder_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view,
int index);
///
// Remove a child View. The View can then be added to another Panel.
///
void (CEF_CALLBACK *remove_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* remove_child_view)(struct _cef_panel_t* self,
struct _cef_view_t* view);
///
// Remove all child Views. The removed Views will be deleted if the client
// holds no references to them.
///
void (CEF_CALLBACK *remove_all_child_views)(struct _cef_panel_t* self);
void(CEF_CALLBACK* remove_all_child_views)(struct _cef_panel_t* self);
///
// Returns the number of child Views.
///
size_t (CEF_CALLBACK *get_child_view_count)(struct _cef_panel_t* self);
size_t(CEF_CALLBACK* get_child_view_count)(struct _cef_panel_t* self);
///
// Returns the child View at the specified |index|.
///
struct _cef_view_t* (CEF_CALLBACK *get_child_view_at)(
struct _cef_panel_t* self, int index);
struct _cef_view_t*(
CEF_CALLBACK* get_child_view_at)(struct _cef_panel_t* self, int index);
} cef_panel_t;
///
// Create a new Panel.
///
CEF_EXPORT cef_panel_t* cef_panel_create(
struct _cef_panel_delegate_t* delegate);
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=c3aac051e19d368c3c7e415fcb160abb83060011$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_PANEL_DELEGATE_CAPI_H_
@@ -44,7 +46,6 @@
extern "C" {
#endif
///
// Implement this structure to handle Panel events. The functions of this
// structure will be called on the browser process UI thread unless otherwise
@@ -57,7 +58,6 @@ typedef struct _cef_panel_delegate_t {
cef_view_delegate_t base;
} cef_panel_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=ec6ad7d358194b055c2c2b5bda3d6b9c6429185a$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_SCROLL_VIEW_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_SCROLL_VIEW_CAPI_H_
@@ -44,7 +46,6 @@
extern "C" {
#endif
///
// A ScrollView will show horizontal and/or vertical scrollbars when necessary
// based on the size of the attached content view. Methods must be called on the
@@ -60,52 +61,50 @@ typedef struct _cef_scroll_view_t {
// Set the content View. The content View must have a specified size (e.g. via
// cef_view_t::SetBounds or cef_view_tDelegate::GetPreferredSize).
///
void (CEF_CALLBACK *set_content_view)(struct _cef_scroll_view_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* set_content_view)(struct _cef_scroll_view_t* self,
struct _cef_view_t* view);
///
// Returns the content View.
///
struct _cef_view_t* (CEF_CALLBACK *get_content_view)(
struct _cef_view_t*(CEF_CALLBACK* get_content_view)(
struct _cef_scroll_view_t* self);
///
// Returns the visible region of the content View.
///
cef_rect_t (CEF_CALLBACK *get_visible_content_rect)(
cef_rect_t(CEF_CALLBACK* get_visible_content_rect)(
struct _cef_scroll_view_t* self);
///
// Returns true (1) if the horizontal scrollbar is currently showing.
///
int (CEF_CALLBACK *has_horizontal_scrollbar)(struct _cef_scroll_view_t* self);
int(CEF_CALLBACK* has_horizontal_scrollbar)(struct _cef_scroll_view_t* self);
///
// Returns the height of the horizontal scrollbar.
///
int (CEF_CALLBACK *get_horizontal_scrollbar_height)(
int(CEF_CALLBACK* get_horizontal_scrollbar_height)(
struct _cef_scroll_view_t* self);
///
// Returns true (1) if the vertical scrollbar is currently showing.
///
int (CEF_CALLBACK *has_vertical_scrollbar)(struct _cef_scroll_view_t* self);
int(CEF_CALLBACK* has_vertical_scrollbar)(struct _cef_scroll_view_t* self);
///
// Returns the width of the vertical scrollbar.
///
int (CEF_CALLBACK *get_vertical_scrollbar_width)(
int(CEF_CALLBACK* get_vertical_scrollbar_width)(
struct _cef_scroll_view_t* self);
} cef_scroll_view_t;
///
// Create a new ScrollView.
///
CEF_EXPORT cef_scroll_view_t* cef_scroll_view_create(
struct _cef_view_delegate_t* delegate);
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=0dbd10f061bf4d63be22d050b93f5231fd7fb677$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_TEXTFIELD_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_TEXTFIELD_CAPI_H_
@@ -45,7 +47,6 @@
extern "C" {
#endif
///
// A Textfield supports editing of text. This control is custom rendered with no
// platform-specific code. Methods must be called on the browser process UI
@@ -60,60 +61,60 @@ typedef struct _cef_textfield_t {
///
// Sets whether the text will be displayed as asterisks.
///
void (CEF_CALLBACK *set_password_input)(struct _cef_textfield_t* self,
int password_input);
void(CEF_CALLBACK* set_password_input)(struct _cef_textfield_t* self,
int password_input);
///
// Returns true (1) if the text will be displayed as asterisks.
///
int (CEF_CALLBACK *is_password_input)(struct _cef_textfield_t* self);
int(CEF_CALLBACK* is_password_input)(struct _cef_textfield_t* self);
///
// Sets whether the text will read-only.
///
void (CEF_CALLBACK *set_read_only)(struct _cef_textfield_t* self,
int read_only);
void(CEF_CALLBACK* set_read_only)(struct _cef_textfield_t* self,
int read_only);
///
// Returns true (1) if the text is read-only.
///
int (CEF_CALLBACK *is_read_only)(struct _cef_textfield_t* self);
int(CEF_CALLBACK* is_read_only)(struct _cef_textfield_t* self);
///
// Returns the currently displayed text.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_text)(struct _cef_textfield_t* self);
cef_string_userfree_t(CEF_CALLBACK* get_text)(struct _cef_textfield_t* self);
///
// Sets the contents to |text|. The cursor will be moved to end of the text if
// the current position is outside of the text range.
///
void (CEF_CALLBACK *set_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
void(CEF_CALLBACK* set_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
///
// Appends |text| to the previously-existing text.
///
void (CEF_CALLBACK *append_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
void(CEF_CALLBACK* append_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
///
// Inserts |text| at the current cursor position replacing any selected text.
///
void (CEF_CALLBACK *insert_or_replace_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
void(CEF_CALLBACK* insert_or_replace_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
///
// Returns true (1) if there is any selected text.
///
int (CEF_CALLBACK *has_selection)(struct _cef_textfield_t* self);
int(CEF_CALLBACK* has_selection)(struct _cef_textfield_t* self);
///
// Returns the currently selected text.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_selected_text)(
cef_string_userfree_t(CEF_CALLBACK* get_selected_text)(
struct _cef_textfield_t* self);
///
@@ -121,62 +122,63 @@ typedef struct _cef_textfield_t {
// logical beginning of the text; this generally shows the leading portion of
// text that overflows its display area.
///
void (CEF_CALLBACK *select_all)(struct _cef_textfield_t* self, int reversed);
void(CEF_CALLBACK* select_all)(struct _cef_textfield_t* self, int reversed);
///
// Clears the text selection and sets the caret to the end.
///
void (CEF_CALLBACK *clear_selection)(struct _cef_textfield_t* self);
void(CEF_CALLBACK* clear_selection)(struct _cef_textfield_t* self);
///
// Returns the selected logical text range.
///
cef_range_t (CEF_CALLBACK *get_selected_range)(struct _cef_textfield_t* self);
cef_range_t(CEF_CALLBACK* get_selected_range)(struct _cef_textfield_t* self);
///
// Selects the specified logical text range.
///
void (CEF_CALLBACK *select_range)(struct _cef_textfield_t* self,
const cef_range_t* range);
void(CEF_CALLBACK* select_range)(struct _cef_textfield_t* self,
const cef_range_t* range);
///
// Returns the current cursor position.
///
size_t (CEF_CALLBACK *get_cursor_position)(struct _cef_textfield_t* self);
size_t(CEF_CALLBACK* get_cursor_position)(struct _cef_textfield_t* self);
///
// Sets the text color.
///
void (CEF_CALLBACK *set_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
void(CEF_CALLBACK* set_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
///
// Returns the text color.
///
cef_color_t (CEF_CALLBACK *get_text_color)(struct _cef_textfield_t* self);
cef_color_t(CEF_CALLBACK* get_text_color)(struct _cef_textfield_t* self);
///
// Sets the selection text color.
///
void (CEF_CALLBACK *set_selection_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
void(CEF_CALLBACK* set_selection_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
///
// Returns the selection text color.
///
cef_color_t (CEF_CALLBACK *get_selection_text_color)(
cef_color_t(CEF_CALLBACK* get_selection_text_color)(
struct _cef_textfield_t* self);
///
// Sets the selection background color.
///
void (CEF_CALLBACK *set_selection_background_color)(
struct _cef_textfield_t* self, cef_color_t color);
void(CEF_CALLBACK* set_selection_background_color)(
struct _cef_textfield_t* self,
cef_color_t color);
///
// Returns the selection background color.
///
cef_color_t (CEF_CALLBACK *get_selection_background_color)(
cef_color_t(CEF_CALLBACK* get_selection_background_color)(
struct _cef_textfield_t* self);
///
@@ -189,16 +191,17 @@ typedef struct _cef_textfield_t {
// Here are examples of valid font description strings: - "Arial, Helvetica,
// Bold Italic 14px" - "Arial, 14px"
///
void (CEF_CALLBACK *set_font_list)(struct _cef_textfield_t* self,
const cef_string_t* font_list);
void(CEF_CALLBACK* set_font_list)(struct _cef_textfield_t* self,
const cef_string_t* font_list);
///
// Applies |color| to the specified |range| without changing the default
// color. If |range| is NULL the color will be set on the complete text
// contents.
///
void (CEF_CALLBACK *apply_text_color)(struct _cef_textfield_t* self,
cef_color_t color, const cef_range_t* range);
void(CEF_CALLBACK* apply_text_color)(struct _cef_textfield_t* self,
cef_color_t color,
const cef_range_t* range);
///
// Applies |style| to the specified |range| without changing the default
@@ -206,15 +209,17 @@ typedef struct _cef_textfield_t {
// will be removed. If |range| is NULL the style will be set on the complete
// text contents.
///
void (CEF_CALLBACK *apply_text_style)(struct _cef_textfield_t* self,
cef_text_style_t style, int add, const cef_range_t* range);
void(CEF_CALLBACK* apply_text_style)(struct _cef_textfield_t* self,
cef_text_style_t style,
int add,
const cef_range_t* range);
///
// Returns true (1) if the action associated with the specified command id is
// enabled. See additional comments on execute_command().
///
int (CEF_CALLBACK *is_command_enabled)(struct _cef_textfield_t* self,
int command_id);
int(CEF_CALLBACK* is_command_enabled)(struct _cef_textfield_t* self,
int command_id);
///
// Performs the action associated with the specified command id. Valid values
@@ -222,50 +227,48 @@ typedef struct _cef_textfield_t {
// IDS_APP_PASTE, IDS_APP_DELETE, IDS_APP_SELECT_ALL, IDS_DELETE_* and
// IDS_MOVE_*. See include/cef_pack_strings.h for definitions.
///
void (CEF_CALLBACK *execute_command)(struct _cef_textfield_t* self,
int command_id);
void(CEF_CALLBACK* execute_command)(struct _cef_textfield_t* self,
int command_id);
///
// Clears Edit history.
///
void (CEF_CALLBACK *clear_edit_history)(struct _cef_textfield_t* self);
void(CEF_CALLBACK* clear_edit_history)(struct _cef_textfield_t* self);
///
// Sets the placeholder text that will be displayed when the Textfield is
// NULL.
///
void (CEF_CALLBACK *set_placeholder_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
void(CEF_CALLBACK* set_placeholder_text)(struct _cef_textfield_t* self,
const cef_string_t* text);
///
// Returns the placeholder text that will be displayed when the Textfield is
// NULL.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_placeholder_text)(
cef_string_userfree_t(CEF_CALLBACK* get_placeholder_text)(
struct _cef_textfield_t* self);
///
// Sets the placeholder text color.
///
void (CEF_CALLBACK *set_placeholder_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
void(CEF_CALLBACK* set_placeholder_text_color)(struct _cef_textfield_t* self,
cef_color_t color);
///
// Set the accessible name that will be exposed to assistive technology (AT).
///
void (CEF_CALLBACK *set_accessible_name)(struct _cef_textfield_t* self,
const cef_string_t* name);
void(CEF_CALLBACK* set_accessible_name)(struct _cef_textfield_t* self,
const cef_string_t* name);
} cef_textfield_t;
///
// Create a new Textfield.
///
CEF_EXPORT cef_textfield_t* cef_textfield_create(
struct _cef_textfield_delegate_t* delegate);
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=542381be4ca1f8b31da984b8ba9a13696da3917c$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_TEXTFIELD_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_TEXTFIELD_DELEGATE_CAPI_H_
@@ -62,19 +64,18 @@ typedef struct _cef_textfield_delegate_t {
// information about the keyboard event. Return true (1) if the keyboard event
// was handled or false (0) otherwise for default handling.
///
int (CEF_CALLBACK *on_key_event)(struct _cef_textfield_delegate_t* self,
struct _cef_textfield_t* textfield,
const struct _cef_key_event_t* event);
int(CEF_CALLBACK* on_key_event)(struct _cef_textfield_delegate_t* self,
struct _cef_textfield_t* textfield,
const struct _cef_key_event_t* event);
///
// Called after performing a user action that may change |textfield|.
///
void (CEF_CALLBACK *on_after_user_action)(
void(CEF_CALLBACK* on_after_user_action)(
struct _cef_textfield_delegate_t* self,
struct _cef_textfield_t* textfield);
} cef_textfield_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=de8c557cc87233b9d9caeccfaf426f14ee4b499a$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_VIEW_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_VIEW_CAPI_H_
@@ -66,29 +68,29 @@ typedef struct _cef_view_t {
///
// Returns this View as a BrowserView or NULL if this is not a BrowserView.
///
struct _cef_browser_view_t* (CEF_CALLBACK *as_browser_view)(
struct _cef_browser_view_t*(CEF_CALLBACK* as_browser_view)(
struct _cef_view_t* self);
///
// Returns this View as a Button or NULL if this is not a Button.
///
struct _cef_button_t* (CEF_CALLBACK *as_button)(struct _cef_view_t* self);
struct _cef_button_t*(CEF_CALLBACK* as_button)(struct _cef_view_t* self);
///
// Returns this View as a Panel or NULL if this is not a Panel.
///
struct _cef_panel_t* (CEF_CALLBACK *as_panel)(struct _cef_view_t* self);
struct _cef_panel_t*(CEF_CALLBACK* as_panel)(struct _cef_view_t* self);
///
// Returns this View as a ScrollView or NULL if this is not a ScrollView.
///
struct _cef_scroll_view_t* (CEF_CALLBACK *as_scroll_view)(
struct _cef_scroll_view_t*(CEF_CALLBACK* as_scroll_view)(
struct _cef_view_t* self);
///
// Returns this View as a Textfield or NULL if this is not a Textfield.
///
struct _cef_textfield_t* (CEF_CALLBACK *as_textfield)(
struct _cef_textfield_t*(CEF_CALLBACK* as_textfield)(
struct _cef_view_t* self);
///
@@ -96,7 +98,7 @@ typedef struct _cef_view_t {
// purposes.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_type_string)(
cef_string_userfree_t(CEF_CALLBACK* get_type_string)(
struct _cef_view_t* self);
///
@@ -106,146 +108,146 @@ typedef struct _cef_view_t {
// purposes.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *to_string)(struct _cef_view_t* self,
int include_children);
cef_string_userfree_t(CEF_CALLBACK* to_string)(struct _cef_view_t* self,
int include_children);
///
// Returns true (1) if this View is valid.
///
int (CEF_CALLBACK *is_valid)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_valid)(struct _cef_view_t* self);
///
// Returns true (1) if this View is currently attached to another View. A View
// can only be attached to one View at a time.
///
int (CEF_CALLBACK *is_attached)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_attached)(struct _cef_view_t* self);
///
// Returns true (1) if this View is the same as |that| View.
///
int (CEF_CALLBACK *is_same)(struct _cef_view_t* self,
struct _cef_view_t* that);
int(CEF_CALLBACK* is_same)(struct _cef_view_t* self,
struct _cef_view_t* that);
///
// Returns the delegate associated with this View, if any.
///
struct _cef_view_delegate_t* (CEF_CALLBACK *get_delegate)(
struct _cef_view_delegate_t*(CEF_CALLBACK* get_delegate)(
struct _cef_view_t* self);
///
// Returns the top-level Window hosting this View, if any.
///
struct _cef_window_t* (CEF_CALLBACK *get_window)(struct _cef_view_t* self);
struct _cef_window_t*(CEF_CALLBACK* get_window)(struct _cef_view_t* self);
///
// Returns the ID for this View.
///
int (CEF_CALLBACK *get_id)(struct _cef_view_t* self);
int(CEF_CALLBACK* get_id)(struct _cef_view_t* self);
///
// Sets the ID for this View. ID should be unique within the subtree that you
// intend to search for it. 0 is the default ID for views.
///
void (CEF_CALLBACK *set_id)(struct _cef_view_t* self, int id);
void(CEF_CALLBACK* set_id)(struct _cef_view_t* self, int id);
///
// Returns the group id of this View, or -1 if not set.
///
int (CEF_CALLBACK *get_group_id)(struct _cef_view_t* self);
int(CEF_CALLBACK* get_group_id)(struct _cef_view_t* self);
///
// A group id is used to tag Views which are part of the same logical group.
// Focus can be moved between views with the same group using the arrow keys.
// The group id is immutable once it's set.
///
void (CEF_CALLBACK *set_group_id)(struct _cef_view_t* self, int group_id);
void(CEF_CALLBACK* set_group_id)(struct _cef_view_t* self, int group_id);
///
// Returns the View that contains this View, if any.
///
struct _cef_view_t* (CEF_CALLBACK *get_parent_view)(struct _cef_view_t* self);
struct _cef_view_t*(CEF_CALLBACK* get_parent_view)(struct _cef_view_t* self);
///
// Recursively descends the view tree starting at this View, and returns the
// first child that it encounters with the given ID. Returns NULL if no
// matching child view is found.
///
struct _cef_view_t* (CEF_CALLBACK *get_view_for_id)(struct _cef_view_t* self,
int id);
struct _cef_view_t*(CEF_CALLBACK* get_view_for_id)(struct _cef_view_t* self,
int id);
///
// Sets the bounds (size and position) of this View. Position is in parent
// coordinates.
///
void (CEF_CALLBACK *set_bounds)(struct _cef_view_t* self,
const cef_rect_t* bounds);
void(CEF_CALLBACK* set_bounds)(struct _cef_view_t* self,
const cef_rect_t* bounds);
///
// Returns the bounds (size and position) of this View. Position is in parent
// coordinates.
///
cef_rect_t (CEF_CALLBACK *get_bounds)(struct _cef_view_t* self);
cef_rect_t(CEF_CALLBACK* get_bounds)(struct _cef_view_t* self);
///
// Returns the bounds (size and position) of this View. Position is in screen
// coordinates.
///
cef_rect_t (CEF_CALLBACK *get_bounds_in_screen)(struct _cef_view_t* self);
cef_rect_t(CEF_CALLBACK* get_bounds_in_screen)(struct _cef_view_t* self);
///
// Sets the size of this View without changing the position.
///
void (CEF_CALLBACK *set_size)(struct _cef_view_t* self,
const cef_size_t* size);
void(CEF_CALLBACK* set_size)(struct _cef_view_t* self,
const cef_size_t* size);
///
// Returns the size of this View.
///
cef_size_t (CEF_CALLBACK *get_size)(struct _cef_view_t* self);
cef_size_t(CEF_CALLBACK* get_size)(struct _cef_view_t* self);
///
// Sets the position of this View without changing the size. |position| is in
// parent coordinates.
///
void (CEF_CALLBACK *set_position)(struct _cef_view_t* self,
const cef_point_t* position);
void(CEF_CALLBACK* set_position)(struct _cef_view_t* self,
const cef_point_t* position);
///
// Returns the position of this View. Position is in parent coordinates.
///
cef_point_t (CEF_CALLBACK *get_position)(struct _cef_view_t* self);
cef_point_t(CEF_CALLBACK* get_position)(struct _cef_view_t* self);
///
// Returns the size this View would like to be if enough space is available.
///
cef_size_t (CEF_CALLBACK *get_preferred_size)(struct _cef_view_t* self);
cef_size_t(CEF_CALLBACK* get_preferred_size)(struct _cef_view_t* self);
///
// Size this View to its preferred size.
///
void (CEF_CALLBACK *size_to_preferred_size)(struct _cef_view_t* self);
void(CEF_CALLBACK* size_to_preferred_size)(struct _cef_view_t* self);
///
// Returns the minimum size for this View.
///
cef_size_t (CEF_CALLBACK *get_minimum_size)(struct _cef_view_t* self);
cef_size_t(CEF_CALLBACK* get_minimum_size)(struct _cef_view_t* self);
///
// Returns the maximum size for this View.
///
cef_size_t (CEF_CALLBACK *get_maximum_size)(struct _cef_view_t* self);
cef_size_t(CEF_CALLBACK* get_maximum_size)(struct _cef_view_t* self);
///
// Returns the height necessary to display this View with the provided width.
///
int (CEF_CALLBACK *get_height_for_width)(struct _cef_view_t* self, int width);
int(CEF_CALLBACK* get_height_for_width)(struct _cef_view_t* self, int width);
///
// Indicate that this View and all parent Views require a re-layout. This
// ensures the next call to layout() will propagate to this View even if the
// bounds of parent Views do not change.
///
void (CEF_CALLBACK *invalidate_layout)(struct _cef_view_t* self);
void(CEF_CALLBACK* invalidate_layout)(struct _cef_view_t* self);
///
// Sets whether this View is visible. Windows are hidden by default and other
@@ -256,7 +258,7 @@ typedef struct _cef_view_t {
// scheduled as needed. If this View is a Window then calling this function is
// equivalent to calling the Window show() and hide() functions.
///
void (CEF_CALLBACK *set_visible)(struct _cef_view_t* self, int visible);
void(CEF_CALLBACK* set_visible)(struct _cef_view_t* self, int visible);
///
// Returns whether this View is visible. A view may be visible but still not
@@ -266,7 +268,7 @@ typedef struct _cef_view_t {
// is_drawn() to determine whether this View and all parent views are visible
// and will be drawn.
///
int (CEF_CALLBACK *is_visible)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_visible)(struct _cef_view_t* self);
///
// Returns whether this View is visible and drawn in a Window. A view is drawn
@@ -275,54 +277,54 @@ typedef struct _cef_view_t {
// determine if the containing Window is visible to the user on-screen call
// is_visible() on the Window.
///
int (CEF_CALLBACK *is_drawn)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_drawn)(struct _cef_view_t* self);
///
// Set whether this View is enabled. A disabled View does not receive keyboard
// or mouse inputs. If |enabled| differs from the current value the View will
// be repainted. Also, clears focus if the focused View is disabled.
///
void (CEF_CALLBACK *set_enabled)(struct _cef_view_t* self, int enabled);
void(CEF_CALLBACK* set_enabled)(struct _cef_view_t* self, int enabled);
///
// Returns whether this View is enabled.
///
int (CEF_CALLBACK *is_enabled)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_enabled)(struct _cef_view_t* self);
///
// Sets whether this View is capable of taking focus. It will clear focus if
// the focused View is set to be non-focusable. This is false (0) by default
// so that a View used as a container does not get the focus.
///
void (CEF_CALLBACK *set_focusable)(struct _cef_view_t* self, int focusable);
void(CEF_CALLBACK* set_focusable)(struct _cef_view_t* self, int focusable);
///
// Returns true (1) if this View is focusable, enabled and drawn.
///
int (CEF_CALLBACK *is_focusable)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_focusable)(struct _cef_view_t* self);
///
// Return whether this View is focusable when the user requires full keyboard
// access, even though it may not be normally focusable.
///
int (CEF_CALLBACK *is_accessibility_focusable)(struct _cef_view_t* self);
int(CEF_CALLBACK* is_accessibility_focusable)(struct _cef_view_t* self);
///
// Request keyboard focus. If this View is focusable it will become the
// focused View.
///
void (CEF_CALLBACK *request_focus)(struct _cef_view_t* self);
void(CEF_CALLBACK* request_focus)(struct _cef_view_t* self);
///
// Sets the background color for this View.
///
void (CEF_CALLBACK *set_background_color)(struct _cef_view_t* self,
cef_color_t color);
void(CEF_CALLBACK* set_background_color)(struct _cef_view_t* self,
cef_color_t color);
///
// Returns the background color for this View.
///
cef_color_t (CEF_CALLBACK *get_background_color)(struct _cef_view_t* self);
cef_color_t(CEF_CALLBACK* get_background_color)(struct _cef_view_t* self);
///
// Convert |point| from this View's coordinate system to that of the screen.
@@ -331,8 +333,8 @@ typedef struct _cef_view_t {
// cef_display_t::convert_point_to_pixels() after calling this function if
// further conversion to display-specific pixel coordinates is desired.
///
int (CEF_CALLBACK *convert_point_to_screen)(struct _cef_view_t* self,
cef_point_t* point);
int(CEF_CALLBACK* convert_point_to_screen)(struct _cef_view_t* self,
cef_point_t* point);
///
// Convert |point| to this View's coordinate system from that of the screen.
@@ -341,24 +343,24 @@ typedef struct _cef_view_t {
// cef_display_t::convert_point_from_pixels() before calling this function if
// conversion from display-specific pixel coordinates is necessary.
///
int (CEF_CALLBACK *convert_point_from_screen)(struct _cef_view_t* self,
cef_point_t* point);
int(CEF_CALLBACK* convert_point_from_screen)(struct _cef_view_t* self,
cef_point_t* point);
///
// Convert |point| from this View's coordinate system to that of the Window.
// This View must belong to a Window when calling this function. Returns true
// (1) if the conversion is successful or false (0) otherwise.
///
int (CEF_CALLBACK *convert_point_to_window)(struct _cef_view_t* self,
cef_point_t* point);
int(CEF_CALLBACK* convert_point_to_window)(struct _cef_view_t* self,
cef_point_t* point);
///
// Convert |point| to this View's coordinate system from that of the Window.
// This View must belong to a Window when calling this function. Returns true
// (1) if the conversion is successful or false (0) otherwise.
///
int (CEF_CALLBACK *convert_point_from_window)(struct _cef_view_t* self,
cef_point_t* point);
int(CEF_CALLBACK* convert_point_from_window)(struct _cef_view_t* self,
cef_point_t* point);
///
// Convert |point| from this View's coordinate system to that of |view|.
@@ -366,19 +368,20 @@ typedef struct _cef_view_t {
// hierarchy. Returns true (1) if the conversion is successful or false (0)
// otherwise.
///
int (CEF_CALLBACK *convert_point_to_view)(struct _cef_view_t* self,
struct _cef_view_t* view, cef_point_t* point);
int(CEF_CALLBACK* convert_point_to_view)(struct _cef_view_t* self,
struct _cef_view_t* view,
cef_point_t* point);
///
// Convert |point| to this View's coordinate system from that |view|. |view|
// needs to be in the same Window but not necessarily the same view hierarchy.
// Returns true (1) if the conversion is successful or false (0) otherwise.
///
int (CEF_CALLBACK *convert_point_from_view)(struct _cef_view_t* self,
struct _cef_view_t* view, cef_point_t* point);
int(CEF_CALLBACK* convert_point_from_view)(struct _cef_view_t* self,
struct _cef_view_t* view,
cef_point_t* point);
} cef_view_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=982ad223be14ddf50a61b3cf803330397349b661$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_VIEW_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_VIEW_DELEGATE_CAPI_H_
@@ -61,20 +63,21 @@ typedef struct _cef_view_delegate_t {
// Return the preferred size for |view|. The Layout will use this information
// to determine the display size.
///
cef_size_t (CEF_CALLBACK *get_preferred_size)(
struct _cef_view_delegate_t* self, struct _cef_view_t* view);
cef_size_t(CEF_CALLBACK* get_preferred_size)(
struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
///
// Return the minimum size for |view|.
///
cef_size_t (CEF_CALLBACK *get_minimum_size)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
cef_size_t(CEF_CALLBACK* get_minimum_size)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
///
// Return the maximum size for |view|.
///
cef_size_t (CEF_CALLBACK *get_maximum_size)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
cef_size_t(CEF_CALLBACK* get_maximum_size)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
///
// Return the height necessary to display |view| with the provided |width|. If
@@ -82,8 +85,9 @@ typedef struct _cef_view_delegate_t {
// default. Override if |view|'s preferred height depends upon the width (for
// example, with Labels).
///
int (CEF_CALLBACK *get_height_for_width)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view, int width);
int(CEF_CALLBACK* get_height_for_width)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view,
int width);
///
// Called when the parent of |view| has changed. If |view| is being added to
@@ -92,8 +96,10 @@ typedef struct _cef_view_delegate_t {
// remove notification will be sent before the add notification. Do not modify
// the view hierarchy in this callback.
///
void (CEF_CALLBACK *on_parent_view_changed)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view, int added, struct _cef_view_t* parent);
void(CEF_CALLBACK* on_parent_view_changed)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view,
int added,
struct _cef_view_t* parent);
///
// Called when a child of |view| has changed. If |child| is being added to
@@ -103,23 +109,24 @@ typedef struct _cef_view_delegate_t {
// notification is sent to the new parent. Do not modify the view hierarchy in
// this callback.
///
void (CEF_CALLBACK *on_child_view_changed)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view, int added, struct _cef_view_t* child);
void(CEF_CALLBACK* on_child_view_changed)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view,
int added,
struct _cef_view_t* child);
///
// Called when |view| gains focus.
///
void (CEF_CALLBACK *on_focus)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* on_focus)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
///
// Called when |view| loses focus.
///
void (CEF_CALLBACK *on_blur)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
void(CEF_CALLBACK* on_blur)(struct _cef_view_delegate_t* self,
struct _cef_view_t* view);
} cef_view_delegate_t;
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=ef258af57aea577693ce52d61b630ca29bdd5ea0$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_WINDOW_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_WINDOW_CAPI_H_
@@ -48,7 +50,6 @@
extern "C" {
#endif
///
// A Window is a top-level Window/widget in the Views hierarchy. By default it
// will have a non-client area with title bar, icon and buttons that supports
@@ -65,121 +66,120 @@ typedef struct _cef_window_t {
///
// Show the Window.
///
void (CEF_CALLBACK *show)(struct _cef_window_t* self);
void(CEF_CALLBACK* show)(struct _cef_window_t* self);
///
// Hide the Window.
///
void (CEF_CALLBACK *hide)(struct _cef_window_t* self);
void(CEF_CALLBACK* hide)(struct _cef_window_t* self);
///
// Sizes the Window to |size| and centers it in the current display.
///
void (CEF_CALLBACK *center_window)(struct _cef_window_t* self,
const cef_size_t* size);
void(CEF_CALLBACK* center_window)(struct _cef_window_t* self,
const cef_size_t* size);
///
// Close the Window.
///
void (CEF_CALLBACK *close)(struct _cef_window_t* self);
void(CEF_CALLBACK* close)(struct _cef_window_t* self);
///
// Returns true (1) if the Window has been closed.
///
int (CEF_CALLBACK *is_closed)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_closed)(struct _cef_window_t* self);
///
// Activate the Window, assuming it already exists and is visible.
///
void (CEF_CALLBACK *activate)(struct _cef_window_t* self);
void(CEF_CALLBACK* activate)(struct _cef_window_t* self);
///
// Deactivate the Window, making the next Window in the Z order the active
// Window.
///
void (CEF_CALLBACK *deactivate)(struct _cef_window_t* self);
void(CEF_CALLBACK* deactivate)(struct _cef_window_t* self);
///
// Returns whether the Window is the currently active Window.
///
int (CEF_CALLBACK *is_active)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_active)(struct _cef_window_t* self);
///
// Bring this Window to the top of other Windows in the Windowing system.
///
void (CEF_CALLBACK *bring_to_top)(struct _cef_window_t* self);
void(CEF_CALLBACK* bring_to_top)(struct _cef_window_t* self);
///
// Set the Window to be on top of other Windows in the Windowing system.
///
void (CEF_CALLBACK *set_always_on_top)(struct _cef_window_t* self,
int on_top);
void(CEF_CALLBACK* set_always_on_top)(struct _cef_window_t* self, int on_top);
///
// Returns whether the Window has been set to be on top of other Windows in
// the Windowing system.
///
int (CEF_CALLBACK *is_always_on_top)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_always_on_top)(struct _cef_window_t* self);
///
// Maximize the Window.
///
void (CEF_CALLBACK *maximize)(struct _cef_window_t* self);
void(CEF_CALLBACK* maximize)(struct _cef_window_t* self);
///
// Minimize the Window.
///
void (CEF_CALLBACK *minimize)(struct _cef_window_t* self);
void(CEF_CALLBACK* minimize)(struct _cef_window_t* self);
///
// Restore the Window.
///
void (CEF_CALLBACK *restore)(struct _cef_window_t* self);
void(CEF_CALLBACK* restore)(struct _cef_window_t* self);
///
// Set fullscreen Window state.
///
void (CEF_CALLBACK *set_fullscreen)(struct _cef_window_t* self,
int fullscreen);
void(CEF_CALLBACK* set_fullscreen)(struct _cef_window_t* self,
int fullscreen);
///
// Returns true (1) if the Window is maximized.
///
int (CEF_CALLBACK *is_maximized)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_maximized)(struct _cef_window_t* self);
///
// Returns true (1) if the Window is minimized.
///
int (CEF_CALLBACK *is_minimized)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_minimized)(struct _cef_window_t* self);
///
// Returns true (1) if the Window is fullscreen.
///
int (CEF_CALLBACK *is_fullscreen)(struct _cef_window_t* self);
int(CEF_CALLBACK* is_fullscreen)(struct _cef_window_t* self);
///
// Set the Window title.
///
void (CEF_CALLBACK *set_title)(struct _cef_window_t* self,
const cef_string_t* title);
void(CEF_CALLBACK* set_title)(struct _cef_window_t* self,
const cef_string_t* title);
///
// Get the Window title.
///
// The resulting string must be freed by calling cef_string_userfree_free().
cef_string_userfree_t (CEF_CALLBACK *get_title)(struct _cef_window_t* self);
cef_string_userfree_t(CEF_CALLBACK* get_title)(struct _cef_window_t* self);
///
// Set the Window icon. This should be a 16x16 icon suitable for use in the
// Windows's title bar.
///
void (CEF_CALLBACK *set_window_icon)(struct _cef_window_t* self,
struct _cef_image_t* image);
void(CEF_CALLBACK* set_window_icon)(struct _cef_window_t* self,
struct _cef_image_t* image);
///
// Get the Window icon.
///
struct _cef_image_t* (CEF_CALLBACK *get_window_icon)(
struct _cef_image_t*(CEF_CALLBACK* get_window_icon)(
struct _cef_window_t* self);
///
@@ -188,13 +188,13 @@ typedef struct _cef_window_t {
// Tab list and Windows taskbar. The Window icon will be used by default if no
// Window App icon is specified.
///
void (CEF_CALLBACK *set_window_app_icon)(struct _cef_window_t* self,
struct _cef_image_t* image);
void(CEF_CALLBACK* set_window_app_icon)(struct _cef_window_t* self,
struct _cef_image_t* image);
///
// Get the Window App icon.
///
struct _cef_image_t* (CEF_CALLBACK *get_window_app_icon)(
struct _cef_image_t*(CEF_CALLBACK* get_window_app_icon)(
struct _cef_window_t* self);
///
@@ -202,27 +202,27 @@ typedef struct _cef_window_t {
// position in screen coordinates. |anchor_position| specifies how the menu
// will be anchored relative to |screen_point|.
///
void (CEF_CALLBACK *show_menu)(struct _cef_window_t* self,
struct _cef_menu_model_t* menu_model, const cef_point_t* screen_point,
cef_menu_anchor_position_t anchor_position);
void(CEF_CALLBACK* show_menu)(struct _cef_window_t* self,
struct _cef_menu_model_t* menu_model,
const cef_point_t* screen_point,
cef_menu_anchor_position_t anchor_position);
///
// Cancel the menu that is currently showing, if any.
///
void (CEF_CALLBACK *cancel_menu)(struct _cef_window_t* self);
void(CEF_CALLBACK* cancel_menu)(struct _cef_window_t* self);
///
// Returns the Display that most closely intersects the bounds of this Window.
// May return NULL if this Window is not currently displayed.
///
struct _cef_display_t* (CEF_CALLBACK *get_display)(
struct _cef_window_t* self);
struct _cef_display_t*(CEF_CALLBACK* get_display)(struct _cef_window_t* self);
///
// Returns the bounds (size and position) of this Window's client area.
// Position is in screen coordinates.
///
cef_rect_t (CEF_CALLBACK *get_client_area_bounds_in_screen)(
cef_rect_t(CEF_CALLBACK* get_client_area_bounds_in_screen)(
struct _cef_window_t* self);
///
@@ -231,13 +231,15 @@ typedef struct _cef_window_t {
// the draggable regions. The draggable region bounds should be in window
// coordinates.
///
void (CEF_CALLBACK *set_draggable_regions)(struct _cef_window_t* self,
size_t regionsCount, cef_draggable_region_t const* regions);
void(CEF_CALLBACK* set_draggable_regions)(
struct _cef_window_t* self,
size_t regionsCount,
cef_draggable_region_t const* regions);
///
// Retrieve the platform window handle for this Window.
///
cef_window_handle_t (CEF_CALLBACK *get_window_handle)(
cef_window_handle_t(CEF_CALLBACK* get_window_handle)(
struct _cef_window_t* self);
///
@@ -247,16 +249,18 @@ typedef struct _cef_window_t {
// EVENTFLAG_CONTROL_DOWN and/or EVENTFLAG_ALT_DOWN. This function is exposed
// primarily for testing purposes.
///
void (CEF_CALLBACK *send_key_press)(struct _cef_window_t* self, int key_code,
uint32 event_flags);
void(CEF_CALLBACK* send_key_press)(struct _cef_window_t* self,
int key_code,
uint32 event_flags);
///
// Simulate a mouse move. The mouse cursor will be moved to the specified
// (screen_x, screen_y) position. This function is exposed primarily for
// testing purposes.
///
void (CEF_CALLBACK *send_mouse_move)(struct _cef_window_t* self, int screen_x,
int screen_y);
void(CEF_CALLBACK* send_mouse_move)(struct _cef_window_t* self,
int screen_x,
int screen_y);
///
// Simulate mouse down and/or mouse up events. |button| is the mouse button
@@ -267,8 +271,10 @@ typedef struct _cef_window_t {
// cursor position so make sure to call send_mouse_move() first to position
// the mouse. This function is exposed primarily for testing purposes.
///
void (CEF_CALLBACK *send_mouse_events)(struct _cef_window_t* self,
cef_mouse_button_type_t button, int mouse_down, int mouse_up);
void(CEF_CALLBACK* send_mouse_events)(struct _cef_window_t* self,
cef_mouse_button_type_t button,
int mouse_down,
int mouse_up);
///
// Set the keyboard accelerator for the specified |command_id|. |key_code| can
@@ -276,30 +282,31 @@ typedef struct _cef_window_t {
// will be called if the keyboard combination is triggered while this window
// has focus.
///
void (CEF_CALLBACK *set_accelerator)(struct _cef_window_t* self,
int command_id, int key_code, int shift_pressed, int ctrl_pressed,
int alt_pressed);
void(CEF_CALLBACK* set_accelerator)(struct _cef_window_t* self,
int command_id,
int key_code,
int shift_pressed,
int ctrl_pressed,
int alt_pressed);
///
// Remove the keyboard accelerator for the specified |command_id|.
///
void (CEF_CALLBACK *remove_accelerator)(struct _cef_window_t* self,
int command_id);
void(CEF_CALLBACK* remove_accelerator)(struct _cef_window_t* self,
int command_id);
///
// Remove all keyboard accelerators.
///
void (CEF_CALLBACK *remove_all_accelerators)(struct _cef_window_t* self);
void(CEF_CALLBACK* remove_all_accelerators)(struct _cef_window_t* self);
} cef_window_t;
///
// Create a new Window.
///
CEF_EXPORT cef_window_t* cef_window_create_top_level(
struct _cef_window_delegate_t* delegate);
#ifdef __cplusplus
}
#endif

View File

@@ -33,6 +33,8 @@
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// $hash=e4957abc4c3b80b9f324d74d2c8c6aa2632c52d9$
//
#ifndef CEF_INCLUDE_CAPI_VIEWS_CEF_WINDOW_DELEGATE_CAPI_H_
#define CEF_INCLUDE_CAPI_VIEWS_CEF_WINDOW_DELEGATE_CAPI_H_
@@ -60,68 +62,69 @@ typedef struct _cef_window_delegate_t {
///
// Called when |window| is created.
///
void (CEF_CALLBACK *on_window_created)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
void(CEF_CALLBACK* on_window_created)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Called when |window| is destroyed. Release all references to |window| and
// do not attempt to execute any functions on |window| after this callback
// returns.
///
void (CEF_CALLBACK *on_window_destroyed)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
void(CEF_CALLBACK* on_window_destroyed)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Return true (1) if |window| should be created without a frame or title bar.
// The window will be resizable if can_resize() returns true (1). Use
// cef_window_t::set_draggable_regions() to specify draggable regions.
///
int (CEF_CALLBACK *is_frameless)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
int(CEF_CALLBACK* is_frameless)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Return true (1) if |window| can be resized.
///
int (CEF_CALLBACK *can_resize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
int(CEF_CALLBACK* can_resize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Return true (1) if |window| can be maximized.
///
int (CEF_CALLBACK *can_maximize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
int(CEF_CALLBACK* can_maximize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Return true (1) if |window| can be minimized.
///
int (CEF_CALLBACK *can_minimize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
int(CEF_CALLBACK* can_minimize)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Return true (1) if |window| can be closed. This will be called for user-
// initiated window close actions and when cef_window_t::close() is called.
///
int (CEF_CALLBACK *can_close)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
int(CEF_CALLBACK* can_close)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window);
///
// Called when a keyboard accelerator registered with
// cef_window_t::SetAccelerator is triggered. Return true (1) if the
// accelerator was handled or false (0) otherwise.
///
int (CEF_CALLBACK *on_accelerator)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window, int command_id);
int(CEF_CALLBACK* on_accelerator)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window,
int command_id);
///
// Called after all other controls in the window have had a chance to handle
// the event. |event| contains information about the keyboard event. Return
// true (1) if the keyboard event was handled or false (0) otherwise.
///
int (CEF_CALLBACK *on_key_event)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window, const struct _cef_key_event_t* event);
int(CEF_CALLBACK* on_key_event)(struct _cef_window_delegate_t* self,
struct _cef_window_t* window,
const struct _cef_key_event_t* event);
} cef_window_delegate_t;
#ifdef __cplusplus
}
#endif