Add "Open Recent" submenu to default

This commit is contained in:
Zhuo Lu 2017-11-18 17:36:30 -08:00 committed by Cheng Zhao
parent f8adaed763
commit f0bff74995
6 changed files with 85 additions and 1 deletions

View file

@ -31,6 +31,10 @@ class Menu : public mate::TrackableObject<Menu>,
// Fake sending an action from the application menu.
static void SendActionToFirstResponder(const std::string& action);
// Add an item corresponding to the data located by a URL to the Open Recent
// menu, or replace an existing item with the same URL.
static void NoteNewRecentDocumentURL(const std::string& url);
#endif
AtomMenuModel* model() const { return model_.get(); }