This source file includes following definitions.
- GetInstance
- GetInstance
- GetDisplayState
- WriteDots
- AddObserver
- RemoveObserver
#include "chrome/browser/extensions/api/braille_display_private/braille_controller.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "chrome/common/extensions/api/braille_display_private.h"
namespace extensions {
namespace api {
namespace braille_display_private {
class BrailleControllerImpl : public BrailleController {
public:
static BrailleControllerImpl* GetInstance();
virtual scoped_ptr<DisplayState> GetDisplayState() OVERRIDE;
virtual void WriteDots(const std::string& cells) OVERRIDE;
virtual void AddObserver(BrailleObserver* observer) OVERRIDE;
virtual void RemoveObserver(BrailleObserver* observer) OVERRIDE;
private:
BrailleControllerImpl();
virtual ~BrailleControllerImpl();
friend struct DefaultSingletonTraits<BrailleControllerImpl>;
DISALLOW_COPY_AND_ASSIGN(BrailleControllerImpl);
};
BrailleController::BrailleController() {
}
BrailleController::~BrailleController() {
}
BrailleController* BrailleController::GetInstance() {
return BrailleControllerImpl::GetInstance();
}
BrailleControllerImpl::BrailleControllerImpl() {
}
BrailleControllerImpl::~BrailleControllerImpl() {
}
BrailleControllerImpl* BrailleControllerImpl::GetInstance() {
return Singleton<BrailleControllerImpl,
LeakySingletonTraits<BrailleControllerImpl> >::get();
}
scoped_ptr<DisplayState> BrailleControllerImpl::GetDisplayState() {
return scoped_ptr<DisplayState>(new DisplayState()).Pass();
}
void BrailleControllerImpl::WriteDots(const std::string& cells) {
}
void BrailleControllerImpl::AddObserver(BrailleObserver* observer) {
}
void BrailleControllerImpl::RemoveObserver(BrailleObserver* observer) {
}
}
}
}