chore: update GetLabelFrontList to be GetLabelStyle in menu model

refs: https://chromium-review.googlesource.com/c/chromium/src/+/1186702
This commit is contained in:
Samuel Attard 2018-10-27 14:37:18 +11:00 committed by deepak1556
parent c51fef1568
commit f8f091c250
2 changed files with 3 additions and 3 deletions

View file

@ -70,8 +70,8 @@ base::string16 MenuDelegate::GetLabel(int id) const {
return adapter_->GetLabel(id);
}
const gfx::FontList* MenuDelegate::GetLabelFontList(int id) const {
return adapter_->GetLabelFontList(id);
void MenuDelegate::GetLabelStyle(int id, LabelStyle* style) const {
return adapter_->GetLabelStyle(id, style);
}
bool MenuDelegate::IsCommandEnabled(int id) const {

View file

@ -46,7 +46,7 @@ class MenuDelegate : public views::MenuDelegate {
const ui::Event& e) override;
bool GetAccelerator(int id, ui::Accelerator* accelerator) const override;
base::string16 GetLabel(int id) const override;
const gfx::FontList* GetLabelFontList(int id) const override;
void GetLabelStyle(int id, LabelStyle* style) const override;
bool IsCommandEnabled(int id) const override;
bool IsCommandVisible(int id) const override;
bool IsItemChecked(int id) const override;