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

Side by Side Diff: chrome/browser/extensions/api/braille_display_private/braille_display_private_api.cc

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "base/profiler/scoped_profile.h" 8 #include "base/profiler/scoped_profile.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 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 11 matching lines...) Expand all
22 using extensions::api::braille_display_private::DisplayState; 22 using extensions::api::braille_display_private::DisplayState;
23 using extensions::api::braille_display_private::KeyEvent; 23 using extensions::api::braille_display_private::KeyEvent;
24 using extensions::api::braille_display_private::BrailleController; 24 using extensions::api::braille_display_private::BrailleController;
25 25
26 namespace extensions { 26 namespace extensions {
27 27
28 class BrailleDisplayPrivateAPI::DefaultEventDelegate 28 class BrailleDisplayPrivateAPI::DefaultEventDelegate
29 : public BrailleDisplayPrivateAPI::EventDelegate { 29 : public BrailleDisplayPrivateAPI::EventDelegate {
30 public: 30 public:
31 DefaultEventDelegate(EventRouter::Observer* observer, Profile* profile); 31 DefaultEventDelegate(EventRouter::Observer* observer, Profile* profile);
32 virtual ~DefaultEventDelegate(); 32 ~DefaultEventDelegate() override;
33 33
34 virtual void BroadcastEvent(scoped_ptr<Event> event) override; 34 void BroadcastEvent(scoped_ptr<Event> event) override;
35 virtual bool HasListener() override; 35 bool HasListener() override;
36 36
37 private: 37 private:
38 EventRouter::Observer* observer_; 38 EventRouter::Observer* observer_;
39 Profile* profile_; 39 Profile* profile_;
40 }; 40 };
41 41
42 BrailleDisplayPrivateAPI::BrailleDisplayPrivateAPI( 42 BrailleDisplayPrivateAPI::BrailleDisplayPrivateAPI(
43 content::BrowserContext* context) 43 content::BrowserContext* context)
44 : profile_(Profile::FromBrowserContext(context)), 44 : profile_(Profile::FromBrowserContext(context)),
45 scoped_observer_(this), 45 scoped_observer_(this),
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 void BrailleDisplayPrivateWriteDotsFunction::Work() { 177 void BrailleDisplayPrivateWriteDotsFunction::Work() {
178 BrailleController::GetInstance()->WriteDots(params_->cells); 178 BrailleController::GetInstance()->WriteDots(params_->cells);
179 } 179 }
180 180
181 bool BrailleDisplayPrivateWriteDotsFunction::Respond() { 181 bool BrailleDisplayPrivateWriteDotsFunction::Respond() {
182 return true; 182 return true;
183 } 183 }
184 } // namespace api 184 } // namespace api
185 } // namespace extensions 185 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698