Source

NPAPI-chrome-file-api / DialogManager.h

Full commit
//
//  DialogManager.h
//  FireBreath
//
//  Created by Ryan Ackley on 4/10/12.
//  Copyright (c) 2012 Benryan Software Inc. All rights reserved.
//
#ifndef DialogManager_h__
#define DialogManager_h__

#include <boost/noncopyable.hpp>
#include <boost/function.hpp>
#include "BrowserHost.h"

typedef boost::function<void (const std::string&)> PathCallback;

namespace FB { class PluginWindow; }

class DialogManager
{
public:
    static DialogManager* get();
    virtual void OpenFolderDialog(const FB::BrowserHostPtr& host, FB::PluginWindow* win, const PathCallback& cb) = 0;
    
protected:
    DialogManager() {}
    virtual ~DialogManager() {}
};

#endif // DialogManager_h__