mac: Add app.addRecentDocument API
This commit is contained in:
parent
6aa69a06c8
commit
c23ba7b504
5 changed files with 21 additions and 0 deletions
|
@ -13,6 +13,10 @@
|
|||
#include "atom/browser/browser_observer.h"
|
||||
#include "atom/browser/window_list_observer.h"
|
||||
|
||||
namespace base {
|
||||
class FilePath;
|
||||
}
|
||||
|
||||
namespace ui {
|
||||
class MenuModel;
|
||||
}
|
||||
|
@ -48,6 +52,9 @@ class Browser : public WindowListObserver {
|
|||
// Overrides the application name.
|
||||
void SetName(const std::string& name);
|
||||
|
||||
// Add the |path| to recent documents list.
|
||||
void AddRecentDocument(const base::FilePath& path);
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
// Bounce the dock icon.
|
||||
enum BounceType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue