mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Use Aura to display context menus (issue #1258)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1710 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -65,7 +65,7 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
}
|
||||
|
||||
virtual base::string16 GetLabelAt(int index) const OVERRIDE {
|
||||
return impl_->GetLabelAt(index).ToString16();
|
||||
return impl_->GetFormattedLabelAt(index);
|
||||
}
|
||||
|
||||
virtual bool IsItemDynamicAt(int index) const OVERRIDE {
|
||||
@ -641,6 +641,12 @@ void CefMenuModelImpl::MenuClosed() {
|
||||
base::Bind(&CefMenuModelImpl::OnMenuClosed, this));
|
||||
}
|
||||
|
||||
base::string16 CefMenuModelImpl::GetFormattedLabelAt(int index) {
|
||||
base::string16 label = GetLabelAt(index).ToString16();
|
||||
delegate_->FormatLabel(label);
|
||||
return label;
|
||||
}
|
||||
|
||||
bool CefMenuModelImpl::VerifyRefCount() {
|
||||
if (!VerifyContext())
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user