mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -63,39 +63,37 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
// Returns true if this menu is a submenu.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsSubMenu() =0;
|
||||
virtual bool IsSubMenu() = 0;
|
||||
|
||||
///
|
||||
// Clears the menu. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool Clear() =0;
|
||||
virtual bool Clear() = 0;
|
||||
|
||||
///
|
||||
// Returns the number of items in this menu.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetCount() =0;
|
||||
virtual int GetCount() = 0;
|
||||
|
||||
///
|
||||
// Add a separator to the menu. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool AddSeparator() =0;
|
||||
virtual bool AddSeparator() = 0;
|
||||
|
||||
///
|
||||
// Add an item to the menu. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool AddItem(int command_id,
|
||||
const CefString& label) =0;
|
||||
virtual bool AddItem(int command_id, const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Add a check item to the menu. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool AddCheckItem(int command_id,
|
||||
const CefString& label) =0;
|
||||
virtual bool AddCheckItem(int command_id, const CefString& label) = 0;
|
||||
///
|
||||
// Add a radio item to the menu. Only a single item with the specified
|
||||
// |group_id| can be checked at a time. Returns true on success.
|
||||
@ -103,21 +101,21 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool AddRadioItem(int command_id,
|
||||
const CefString& label,
|
||||
int group_id) =0;
|
||||
int group_id) = 0;
|
||||
|
||||
///
|
||||
// Add a sub-menu to the menu. The new sub-menu is returned.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefMenuModel> AddSubMenu(int command_id,
|
||||
const CefString& label) =0;
|
||||
const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Insert a separator in the menu at the specified |index|. Returns true on
|
||||
// success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool InsertSeparatorAt(int index) =0;
|
||||
virtual bool InsertSeparatorAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Insert an item in the menu at the specified |index|. Returns true on
|
||||
@ -126,7 +124,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool InsertItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label) =0;
|
||||
const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Insert a check item in the menu at the specified |index|. Returns true on
|
||||
@ -135,7 +133,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool InsertCheckItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label) =0;
|
||||
const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Insert a radio item in the menu at the specified |index|. Only a single
|
||||
@ -146,7 +144,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
virtual bool InsertRadioItemAt(int index,
|
||||
int command_id,
|
||||
const CefString& label,
|
||||
int group_id) =0;
|
||||
int group_id) = 0;
|
||||
|
||||
///
|
||||
// Insert a sub-menu in the menu at the specified |index|. The new sub-menu
|
||||
@ -155,204 +153,204 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefMenuModel> InsertSubMenuAt(int index,
|
||||
int command_id,
|
||||
const CefString& label) =0;
|
||||
const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Removes the item with the specified |command_id|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool Remove(int command_id) =0;
|
||||
virtual bool Remove(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Removes the item at the specified |index|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool RemoveAt(int index) =0;
|
||||
virtual bool RemoveAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Returns the index associated with the specified |command_id| or -1 if not
|
||||
// found due to the command id not existing in the menu.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetIndexOf(int command_id) =0;
|
||||
virtual int GetIndexOf(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the command id at the specified |index| or -1 if not found due to
|
||||
// invalid range or the index being a separator.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetCommandIdAt(int index) =0;
|
||||
virtual int GetCommandIdAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Sets the command id at the specified |index|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetCommandIdAt(int index, int command_id) =0;
|
||||
virtual bool SetCommandIdAt(int index, int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the label for the specified |command_id| or empty if not found.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetLabel(int command_id) =0;
|
||||
virtual CefString GetLabel(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the label at the specified |index| or empty if not found due to
|
||||
// invalid range or the index being a separator.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefString GetLabelAt(int index) =0;
|
||||
virtual CefString GetLabelAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Sets the label for the specified |command_id|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetLabel(int command_id, const CefString& label) =0;
|
||||
virtual bool SetLabel(int command_id, const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Set the label at the specified |index|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetLabelAt(int index, const CefString& label) =0;
|
||||
virtual bool SetLabelAt(int index, const CefString& label) = 0;
|
||||
|
||||
///
|
||||
// Returns the item type for the specified |command_id|.
|
||||
///
|
||||
/*--cef(default_retval=MENUITEMTYPE_NONE)--*/
|
||||
virtual MenuItemType GetType(int command_id) =0;
|
||||
virtual MenuItemType GetType(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the item type at the specified |index|.
|
||||
///
|
||||
/*--cef(default_retval=MENUITEMTYPE_NONE)--*/
|
||||
virtual MenuItemType GetTypeAt(int index) =0;
|
||||
virtual MenuItemType GetTypeAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Returns the group id for the specified |command_id| or -1 if invalid.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetGroupId(int command_id) =0;
|
||||
virtual int GetGroupId(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the group id at the specified |index| or -1 if invalid.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual int GetGroupIdAt(int index) =0;
|
||||
virtual int GetGroupIdAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Sets the group id for the specified |command_id|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetGroupId(int command_id, int group_id) =0;
|
||||
virtual bool SetGroupId(int command_id, int group_id) = 0;
|
||||
|
||||
///
|
||||
// Sets the group id at the specified |index|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetGroupIdAt(int index, int group_id) =0;
|
||||
virtual bool SetGroupIdAt(int index, int group_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the submenu for the specified |command_id| or empty if invalid.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefMenuModel> GetSubMenu(int command_id) =0;
|
||||
virtual CefRefPtr<CefMenuModel> GetSubMenu(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns the submenu at the specified |index| or empty if invalid.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual CefRefPtr<CefMenuModel> GetSubMenuAt(int index) =0;
|
||||
virtual CefRefPtr<CefMenuModel> GetSubMenuAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |command_id| is visible.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsVisible(int command_id) =0;
|
||||
virtual bool IsVisible(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |index| is visible.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsVisibleAt(int index) =0;
|
||||
virtual bool IsVisibleAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Change the visibility of the specified |command_id|. Returns true on
|
||||
// success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetVisible(int command_id, bool visible) =0;
|
||||
virtual bool SetVisible(int command_id, bool visible) = 0;
|
||||
|
||||
///
|
||||
// Change the visibility at the specified |index|. Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetVisibleAt(int index, bool visible) =0;
|
||||
virtual bool SetVisibleAt(int index, bool visible) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |command_id| is enabled.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsEnabled(int command_id) =0;
|
||||
virtual bool IsEnabled(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |index| is enabled.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsEnabledAt(int index) =0;
|
||||
virtual bool IsEnabledAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Change the enabled status of the specified |command_id|. Returns true on
|
||||
// success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetEnabled(int command_id, bool enabled) =0;
|
||||
virtual bool SetEnabled(int command_id, bool enabled) = 0;
|
||||
|
||||
///
|
||||
// Change the enabled status at the specified |index|. Returns true on
|
||||
// success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetEnabledAt(int index, bool enabled) =0;
|
||||
virtual bool SetEnabledAt(int index, bool enabled) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |command_id| is checked. Only applies to
|
||||
// check and radio items.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsChecked(int command_id) =0;
|
||||
virtual bool IsChecked(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |index| is checked. Only applies to check
|
||||
// and radio items.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool IsCheckedAt(int index) =0;
|
||||
virtual bool IsCheckedAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Check the specified |command_id|. Only applies to check and radio items.
|
||||
// Returns true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetChecked(int command_id, bool checked) =0;
|
||||
virtual bool SetChecked(int command_id, bool checked) = 0;
|
||||
|
||||
///
|
||||
// Check the specified |index|. Only applies to check and radio items. Returns
|
||||
// true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool SetCheckedAt(int index, bool checked) =0;
|
||||
virtual bool SetCheckedAt(int index, bool checked) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |command_id| has a keyboard accelerator
|
||||
// assigned.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasAccelerator(int command_id) =0;
|
||||
virtual bool HasAccelerator(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Returns true if the specified |index| has a keyboard accelerator assigned.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool HasAcceleratorAt(int index) =0;
|
||||
virtual bool HasAcceleratorAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Set the keyboard accelerator for the specified |command_id|. |key_code| can
|
||||
@ -363,7 +361,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
int key_code,
|
||||
bool shift_pressed,
|
||||
bool ctrl_pressed,
|
||||
bool alt_pressed) =0;
|
||||
bool alt_pressed) = 0;
|
||||
|
||||
///
|
||||
// Set the keyboard accelerator at the specified |index|. |key_code| can be
|
||||
@ -374,21 +372,21 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
int key_code,
|
||||
bool shift_pressed,
|
||||
bool ctrl_pressed,
|
||||
bool alt_pressed) =0;
|
||||
bool alt_pressed) = 0;
|
||||
|
||||
///
|
||||
// Remove the keyboard accelerator for the specified |command_id|. Returns
|
||||
// true on success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool RemoveAccelerator(int command_id) =0;
|
||||
virtual bool RemoveAccelerator(int command_id) = 0;
|
||||
|
||||
///
|
||||
// Remove the keyboard accelerator at the specified |index|. Returns true on
|
||||
// success.
|
||||
///
|
||||
/*--cef()--*/
|
||||
virtual bool RemoveAcceleratorAt(int index) =0;
|
||||
virtual bool RemoveAcceleratorAt(int index) = 0;
|
||||
|
||||
///
|
||||
// Retrieves the keyboard accelerator for the specified |command_id|. Returns
|
||||
@ -399,7 +397,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
int& key_code,
|
||||
bool& shift_pressed,
|
||||
bool& ctrl_pressed,
|
||||
bool& alt_pressed) =0;
|
||||
bool& alt_pressed) = 0;
|
||||
|
||||
///
|
||||
// Retrieves the keyboard accelerator for the specified |index|. Returns true
|
||||
@ -410,7 +408,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
int& key_code,
|
||||
bool& shift_pressed,
|
||||
bool& ctrl_pressed,
|
||||
bool& alt_pressed) =0;
|
||||
bool& alt_pressed) = 0;
|
||||
|
||||
///
|
||||
// Set the explicit color for |command_id| and |color_type| to |color|.
|
||||
@ -421,7 +419,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool SetColor(int command_id,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t color) =0;
|
||||
cef_color_t color) = 0;
|
||||
|
||||
///
|
||||
// Set the explicit color for |command_id| and |index| to |color|. Specify a
|
||||
@ -433,7 +431,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool SetColorAt(int index,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t color) =0;
|
||||
cef_color_t color) = 0;
|
||||
|
||||
///
|
||||
// Returns in |color| the color that was explicitly set for |command_id| and
|
||||
@ -443,7 +441,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool GetColor(int command_id,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t& color) =0;
|
||||
cef_color_t& color) = 0;
|
||||
|
||||
///
|
||||
// Returns in |color| the color that was explicitly set for |command_id| and
|
||||
@ -454,7 +452,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
/*--cef()--*/
|
||||
virtual bool GetColorAt(int index,
|
||||
cef_menu_color_type_t color_type,
|
||||
cef_color_t& color) =0;
|
||||
cef_color_t& color) = 0;
|
||||
|
||||
///
|
||||
// Sets the font list for the specified |command_id|. If |font_list| is empty
|
||||
@ -470,8 +468,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
// - "Arial, 14px"
|
||||
///
|
||||
/*--cef(optional_param=font_list)--*/
|
||||
virtual bool SetFontList(int command_id,
|
||||
const CefString& font_list) =0;
|
||||
virtual bool SetFontList(int command_id, const CefString& font_list) = 0;
|
||||
|
||||
///
|
||||
// Sets the font list for the specified |index|. Specify an |index| value of
|
||||
@ -488,8 +485,7 @@ class CefMenuModel : public virtual CefBaseRefCounted {
|
||||
// - "Arial, 14px"
|
||||
///
|
||||
/*--cef(optional_param=font_list)--*/
|
||||
virtual bool SetFontListAt(int index,
|
||||
const CefString& font_list) =0;
|
||||
virtual bool SetFontListAt(int index, const CefString& font_list) = 0;
|
||||
};
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_MENU_MODEL_H_
|
||||
|
Reference in New Issue
Block a user