Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: chrome/browser/extensions/api/braille_display_private/stub_braille_controller.h

Issue 2401393003: Add multiline braille support. (Closed)
Patch Set: more tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CONTR OLLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CONTR OLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CONTR OLLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CONTR OLLER_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h" 9 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 namespace api { 12 namespace api {
13 namespace braille_display_private { 13 namespace braille_display_private {
14 14
15 // Stub implementation for the BrailleController interface. 15 // Stub implementation for the BrailleController interface.
16 class StubBrailleController : public BrailleController { 16 class StubBrailleController : public BrailleController {
17 public: 17 public:
18 StubBrailleController(); 18 StubBrailleController();
19 std::unique_ptr<DisplayState> GetDisplayState() override; 19 std::unique_ptr<DisplayState> GetDisplayState() override;
20 void WriteDots(const std::vector<char>& cells) override; 20 void WriteDots(const std::vector<char>& cells,
21 unsigned int cols,
22 unsigned int rows) override;
21 void AddObserver(BrailleObserver* observer) override; 23 void AddObserver(BrailleObserver* observer) override;
22 void RemoveObserver(BrailleObserver* observer) override; 24 void RemoveObserver(BrailleObserver* observer) override;
23 25
24 static StubBrailleController* GetInstance(); 26 static StubBrailleController* GetInstance();
25 27
26 private: 28 private:
27 friend struct base::DefaultSingletonTraits<StubBrailleController>; 29 friend struct base::DefaultSingletonTraits<StubBrailleController>;
28 }; 30 };
29 31
30 } // namespace braille_display_private 32 } // namespace braille_display_private
31 } // namespace api 33 } // namespace api
32 } // namespace extensions 34 } // namespace extensions
33 35
34 #endif // CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CO NTROLLER_H_ 36 #endif // CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_STUB_BRAILLE_CO NTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698