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

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

Issue 213233003: Show a notification when a braille display is connected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Style and const correctness fixes. Created 6 years, 8 months 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_MOCK_BRAILLE_CONTR OLLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_MOCK_BRAILLE_CONTR OLLER_H_
7
8 #include "chrome/browser/extensions/api/braille_display_private/stub_braille_con troller.h"
9
10 namespace extensions {
11 namespace api {
12 namespace braille_display_private {
13
14 // Mock implementation of the BrailleController interface.
15 class MockBrailleController : public StubBrailleController {
16 public:
17 MockBrailleController();
18
19 virtual scoped_ptr<DisplayState> GetDisplayState() OVERRIDE;
20 virtual void AddObserver(BrailleObserver* observer) OVERRIDE;
21 virtual void RemoveObserver(BrailleObserver* observer) OVERRIDE;
22
23 // Sets the available flag without calling the observer.
24 void SetAvailable(bool available);
25 BrailleObserver* GetObserver() const;
26
27 private:
28 bool available_;
29 BrailleObserver* observer_;
30 };
31
32 } // namespace braille_display_private
33 } // namespace api
34 } // namespace extensions
35
36 #endif // CHROME_BROWSER_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_MOCK_BRAILLE_CO NTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698