#ifndef CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_BRAILLE_CONTROLLER_H_
#define CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_BRAILLE_CONTROLLER_H_
#include <string>
#include "base/basictypes.h"
#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/common/extensions/api/braille_display_private.h"
namespace extensions {
namespace api {
namespace braille_display_private {
class BrailleObserver;
class BrailleController {
public:
static BrailleController* GetInstance();
virtual scoped_ptr<DisplayState> GetDisplayState() = 0;
virtual void WriteDots(const std::string& cells) = 0;
virtual void AddObserver(BrailleObserver* observer) = 0;
virtual void RemoveObserver(BrailleObserver* observer) = 0;
protected:
BrailleController();
virtual ~BrailleController();
private:
DISALLOW_COPY_AND_ASSIGN(BrailleController);
};
class BrailleObserver {
public:
virtual void OnDisplayStateChanged(const DisplayState& display_state) {}
virtual void OnKeyEvent(const KeyEvent& event) {}
};
}
}
}
#endif