mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply raw_ptr rewrite to libcef (see #3239)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#define CEF_LIBCEF_BROWSER_MENU_MANAGER_H_
|
||||
#pragma once
|
||||
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "cef/libcef/browser/menu_model_impl.h"
|
||||
#include "cef/libcef/browser/menu_runner.h"
|
||||
@@ -62,7 +63,7 @@ class CefMenuManager : public CefMenuModelImpl::Delegate,
|
||||
bool IsCustomContextMenuCommand(int command_id);
|
||||
|
||||
// AlloyBrowserHostImpl pointer is guaranteed to outlive this object.
|
||||
AlloyBrowserHostImpl* browser_;
|
||||
raw_ptr<AlloyBrowserHostImpl> browser_;
|
||||
|
||||
std::unique_ptr<CefMenuRunner> runner_;
|
||||
|
||||
@@ -70,7 +71,7 @@ class CefMenuManager : public CefMenuModelImpl::Delegate,
|
||||
content::ContextMenuParams params_;
|
||||
|
||||
// Not owned by this class.
|
||||
CefRunContextMenuCallback* custom_menu_callback_ = nullptr;
|
||||
raw_ptr<CefRunContextMenuCallback> custom_menu_callback_ = nullptr;
|
||||
|
||||
// Must be the last member.
|
||||
base::WeakPtrFactory<CefMenuManager> weak_ptr_factory_;
|
||||
|
Reference in New Issue
Block a user