mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 129.0.6668.0
- Mac: Minimum system version is now 11.0. - Win: Windows SDK version is now 10.0.22621.2428.
This commit is contained in:
committed by
Marshall Greenblatt
parent
2cd405baac
commit
af1f40a2d3
@ -11,6 +11,7 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "cef/libcef/browser/thread_util.h"
|
||||
#include "cef/libcef/common/task_runner_impl.h"
|
||||
#include "third_party/blink/public/mojom/context_menu/context_menu.mojom.h"
|
||||
@ -38,6 +39,10 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
CefSimpleMenuModel& operator=(const CefSimpleMenuModel&) = delete;
|
||||
|
||||
// MenuModel methods.
|
||||
base::WeakPtr<MenuModel> AsWeakPtr() override {
|
||||
return weak_ptr_factory_.GetWeakPtr();
|
||||
}
|
||||
|
||||
size_t GetItemCount() const override { return impl_->GetCount(); }
|
||||
|
||||
ItemType GetTypeAt(size_t index) const override {
|
||||
@ -171,6 +176,7 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
|
||||
private:
|
||||
raw_ptr<CefMenuModelImpl> impl_;
|
||||
base::WeakPtrFactory<CefSimpleMenuModel> weak_ptr_factory_{this};
|
||||
};
|
||||
|
||||
cef_menu_color_type_t GetMenuColorType(bool is_text,
|
||||
|
Reference in New Issue
Block a user