Remove the closed event of Menu
The callback of Menu.popup does more things, and there is actually no request for the closed event.
This commit is contained in:
parent
73d78d345a
commit
46330ac2a9
6 changed files with 1 additions and 50 deletions
|
@ -52,7 +52,6 @@ class Menu : public mate::TrackableObject<Menu>,
|
|||
ui::Accelerator* accelerator) const override;
|
||||
void ExecuteCommand(int command_id, int event_flags) override;
|
||||
void MenuWillShow(ui::SimpleMenuModel* source) override;
|
||||
void MenuClosed(ui::SimpleMenuModel* source) override;
|
||||
|
||||
virtual void PopupAt(Window* window, int x, int y, int positioning_item,
|
||||
const base::Closure& callback) = 0;
|
||||
|
@ -95,7 +94,6 @@ class Menu : public mate::TrackableObject<Menu>,
|
|||
base::Callback<v8::Local<v8::Value>(int, bool)> get_accelerator_;
|
||||
base::Callback<void(v8::Local<v8::Value>, int)> execute_command_;
|
||||
base::Callback<void()> menu_will_show_;
|
||||
base::Callback<void()> menu_closed_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(Menu);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue