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

Side by Side Diff: extensions/renderer/event_bindings.h

Issue 664933004: Standardize usage of virtual/override/final in 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
« no previous file with comments | « extensions/renderer/dispatcher.h ('k') | extensions/renderer/extension_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 EXTENSIONS_RENDERER_EVENT_BINDINGS_H_ 5 #ifndef EXTENSIONS_RENDERER_EVENT_BINDINGS_H_
6 #define EXTENSIONS_RENDERER_EVENT_BINDINGS_H_ 6 #define EXTENSIONS_RENDERER_EVENT_BINDINGS_H_
7 7
8 #include "extensions/renderer/object_backed_native_handler.h" 8 #include "extensions/renderer/object_backed_native_handler.h"
9 #include "v8/include/v8.h" 9 #include "v8/include/v8.h"
10 10
11 namespace base { 11 namespace base {
12 class DictionaryValue; 12 class DictionaryValue;
13 } 13 }
14 14
15 namespace extensions { 15 namespace extensions {
16 class Dispatcher; 16 class Dispatcher;
17 class EventFilter; 17 class EventFilter;
18 class EventFilteringInfo; 18 class EventFilteringInfo;
19 class EventMatcher; 19 class EventMatcher;
20 20
21 // This class deals with the javascript bindings related to Event objects. 21 // This class deals with the javascript bindings related to Event objects.
22 class EventBindings : public ObjectBackedNativeHandler { 22 class EventBindings : public ObjectBackedNativeHandler {
23 public: 23 public:
24 EventBindings(Dispatcher* dispatcher, ScriptContext* context); 24 EventBindings(Dispatcher* dispatcher, ScriptContext* context);
25 virtual ~EventBindings(); 25 ~EventBindings() override;
26 26
27 private: 27 private:
28 // Attach an event name to an object. 28 // Attach an event name to an object.
29 // |event_name| The name of the event to attach. 29 // |event_name| The name of the event to attach.
30 void AttachEvent(const v8::FunctionCallbackInfo<v8::Value>& args); 30 void AttachEvent(const v8::FunctionCallbackInfo<v8::Value>& args);
31 31
32 // Detach an event name from an object. 32 // Detach an event name from an object.
33 // |event_name| The name of the event to stop listening to. 33 // |event_name| The name of the event to stop listening to.
34 // |is_manual| True if this detach was done by the user via removeListener() 34 // |is_manual| True if this detach was done by the user via removeListener()
35 // as opposed to automatically during shutdown, in which case we should inform 35 // as opposed to automatically during shutdown, in which case we should inform
(...skipping 16 matching lines...) Expand all
52 void MatchAgainstEventFilter(const v8::FunctionCallbackInfo<v8::Value>& args); 52 void MatchAgainstEventFilter(const v8::FunctionCallbackInfo<v8::Value>& args);
53 53
54 Dispatcher* dispatcher_; 54 Dispatcher* dispatcher_;
55 scoped_ptr<EventMatcher> ParseEventMatcher( 55 scoped_ptr<EventMatcher> ParseEventMatcher(
56 base::DictionaryValue* filter_dict); 56 base::DictionaryValue* filter_dict);
57 }; 57 };
58 58
59 } // namespace extensions 59 } // namespace extensions
60 60
61 #endif // EXTENSIONS_RENDERER_EVENT_BINDINGS_H_ 61 #endif // EXTENSIONS_RENDERER_EVENT_BINDINGS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/dispatcher.h ('k') | extensions/renderer/extension_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698