mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove DISALLOW_ macro from libcef/ (see issue #3234)
Also perform related C++ cleanup: - Use =default instead of {} for default implementations of constructors/destructors. - Replace typedef with using.
This commit is contained in:
@@ -28,7 +28,10 @@ class CefWindowImpl
|
||||
public CefWindowView::Delegate,
|
||||
public ui::AcceleratorTarget {
|
||||
public:
|
||||
typedef CefPanelImpl<CefWindowView, CefWindow, CefWindowDelegate> ParentClass;
|
||||
using ParentClass = CefPanelImpl<CefWindowView, CefWindow, CefWindowDelegate>;
|
||||
|
||||
CefWindowImpl(const CefWindowImpl&) = delete;
|
||||
CefWindowImpl& operator=(const CefWindowImpl&) = delete;
|
||||
|
||||
// Create a new CefWindow instance. |delegate| may be nullptr.
|
||||
static CefRefPtr<CefWindowImpl> Create(CefRefPtr<CefWindowDelegate> delegate);
|
||||
@@ -150,7 +153,7 @@ class CefWindowImpl
|
||||
std::unique_ptr<views::MenuRunner> menu_runner_;
|
||||
|
||||
// Map of command_id to accelerator.
|
||||
typedef std::map<int, ui::Accelerator> AcceleratorMap;
|
||||
using AcceleratorMap = std::map<int, ui::Accelerator>;
|
||||
AcceleratorMap accelerator_map_;
|
||||
|
||||
#if defined(USE_AURA)
|
||||
@@ -159,7 +162,6 @@ class CefWindowImpl
|
||||
#endif
|
||||
|
||||
IMPLEMENT_REFCOUNTING_DELETE_ON_UIT(CefWindowImpl);
|
||||
DISALLOW_COPY_AND_ASSIGN(CefWindowImpl);
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_VIEWS_WINDOW_IMPL_H_
|
||||
|
Reference in New Issue
Block a user