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:
@@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=ba470a970b4e0cd7a80058ff44d604e0a082a2e9$
|
||||
//
|
||||
|
||||
#ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_CTOCPP_H_
|
||||
#define CEF_LIBCEF_DLL_CTOCPP_VIEWS_MENU_BUTTON_CTOCPP_H_
|
||||
@@ -18,22 +20,22 @@
|
||||
#error This file can be included wrapper-side only
|
||||
#endif
|
||||
|
||||
#include "include/views/cef_menu_button.h"
|
||||
#include "include/capi/views/cef_menu_button_capi.h"
|
||||
#include "include/views/cef_menu_button.h"
|
||||
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
||||
|
||||
// Wrap a C structure with a C++ class.
|
||||
// This class may be instantiated and accessed wrapper-side only.
|
||||
class CefMenuButtonCToCpp
|
||||
: public CefCToCppRefCounted<CefMenuButtonCToCpp, CefMenuButton,
|
||||
cef_menu_button_t> {
|
||||
class CefMenuButtonCToCpp : public CefCToCppRefCounted<CefMenuButtonCToCpp,
|
||||
CefMenuButton,
|
||||
cef_menu_button_t> {
|
||||
public:
|
||||
CefMenuButtonCToCpp();
|
||||
|
||||
// CefMenuButton methods.
|
||||
void ShowMenu(CefRefPtr<CefMenuModel> menu_model,
|
||||
const CefPoint& screen_point,
|
||||
cef_menu_anchor_position_t anchor_position) OVERRIDE;
|
||||
const CefPoint& screen_point,
|
||||
cef_menu_anchor_position_t anchor_position) OVERRIDE;
|
||||
void TriggerMenu() OVERRIDE;
|
||||
|
||||
// CefLabelButton methods.
|
||||
@@ -41,7 +43,7 @@ class CefMenuButtonCToCpp
|
||||
void SetText(const CefString& text) OVERRIDE;
|
||||
CefString GetText() OVERRIDE;
|
||||
void SetImage(cef_button_state_t button_state,
|
||||
CefRefPtr<CefImage> image) OVERRIDE;
|
||||
CefRefPtr<CefImage> image) OVERRIDE;
|
||||
CefRefPtr<CefImage> GetImage(cef_button_state_t button_state) OVERRIDE;
|
||||
void SetTextColor(cef_button_state_t for_state, cef_color_t color) OVERRIDE;
|
||||
void SetEnabledTextColors(cef_color_t color) OVERRIDE;
|
||||
|
Reference in New Issue
Block a user