chore: rename atom -> electron (#21986)
This commit is contained in:
parent
f14fc4b041
commit
d9321f4df7
287 changed files with 1771 additions and 1708 deletions
|
@ -5,21 +5,21 @@
|
|||
#ifndef SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
|
||||
#define SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
|
||||
|
||||
#include "shell/browser/ui/atom_menu_model.h"
|
||||
#include "shell/browser/ui/electron_menu_model.h"
|
||||
#include "ui/views/controls/menu/menu_model_adapter.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
class MenuModelAdapter : public views::MenuModelAdapter {
|
||||
public:
|
||||
explicit MenuModelAdapter(AtomMenuModel* menu_model);
|
||||
explicit MenuModelAdapter(ElectronMenuModel* menu_model);
|
||||
~MenuModelAdapter() override;
|
||||
|
||||
protected:
|
||||
bool GetAccelerator(int id, ui::Accelerator* accelerator) const override;
|
||||
|
||||
private:
|
||||
AtomMenuModel* menu_model_;
|
||||
ElectronMenuModel* menu_model_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(MenuModelAdapter);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue