mac: Add app.addRecentDocument API

This commit is contained in:
Cheng Zhao 2014-11-17 13:05:06 +08:00
parent 6aa69a06c8
commit c23ba7b504
5 changed files with 21 additions and 0 deletions

View file

@ -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 {