Emit 'open-file' event when OS X is trying to open file with the app.

This commit is contained in:
Cheng Zhao 2013-05-30 16:03:10 +08:00
parent 01af2fd0c5
commit 7dd48e24d3
10 changed files with 49 additions and 3 deletions

View file

@ -27,6 +27,9 @@ class Browser : public WindowListObserver {
// Quit the application immediately without cleanup work.
void Terminate();
// Tell the application to open a file.
bool OpenFile(const std::string& file_path);
void AddObserver(BrowserObserver* obs) {
observers_.AddObserver(obs);
}