| OLD | NEW |
| 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 #include "chrome/browser/extensions/api/braille_display_private/braille_display_
private_api.h" | 5 #include "chrome/browser/extensions/api/braille_display_private/braille_display_
private_api.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "chrome/browser/extensions/api/braille_display_private/braille_controll
er.h" | 8 #include "chrome/browser/extensions/api/braille_display_private/braille_controll
er.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 using extensions::api::braille_display_private::BrailleController; | 23 using extensions::api::braille_display_private::BrailleController; |
| 24 | 24 |
| 25 namespace extensions { | 25 namespace extensions { |
| 26 | 26 |
| 27 class BrailleDisplayPrivateAPI::DefaultEventDelegate | 27 class BrailleDisplayPrivateAPI::DefaultEventDelegate |
| 28 : public BrailleDisplayPrivateAPI::EventDelegate { | 28 : public BrailleDisplayPrivateAPI::EventDelegate { |
| 29 public: | 29 public: |
| 30 DefaultEventDelegate(EventRouter::Observer* observer, Profile* profile); | 30 DefaultEventDelegate(EventRouter::Observer* observer, Profile* profile); |
| 31 virtual ~DefaultEventDelegate(); | 31 virtual ~DefaultEventDelegate(); |
| 32 | 32 |
| 33 virtual void BroadcastEvent(scoped_ptr<Event> event) OVERRIDE; | 33 virtual void BroadcastEvent(scoped_ptr<Event> event) override; |
| 34 virtual bool HasListener() OVERRIDE; | 34 virtual bool HasListener() override; |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 EventRouter::Observer* observer_; | 37 EventRouter::Observer* observer_; |
| 38 Profile* profile_; | 38 Profile* profile_; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 BrailleDisplayPrivateAPI::BrailleDisplayPrivateAPI( | 41 BrailleDisplayPrivateAPI::BrailleDisplayPrivateAPI( |
| 42 content::BrowserContext* context) | 42 content::BrowserContext* context) |
| 43 : profile_(Profile::FromBrowserContext(context)), | 43 : profile_(Profile::FromBrowserContext(context)), |
| 44 scoped_observer_(this), | 44 scoped_observer_(this), |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 void BrailleDisplayPrivateWriteDotsFunction::Work() { | 171 void BrailleDisplayPrivateWriteDotsFunction::Work() { |
| 172 BrailleController::GetInstance()->WriteDots(params_->cells); | 172 BrailleController::GetInstance()->WriteDots(params_->cells); |
| 173 } | 173 } |
| 174 | 174 |
| 175 bool BrailleDisplayPrivateWriteDotsFunction::Respond() { | 175 bool BrailleDisplayPrivateWriteDotsFunction::Respond() { |
| 176 return true; | 176 return true; |
| 177 } | 177 } |
| 178 } // namespace api | 178 } // namespace api |
| 179 } // namespace extensions | 179 } // namespace extensions |
| OLD | NEW |