OLD | NEW |
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 ChromeV8Context; | |
17 class Dispatcher; | 16 class Dispatcher; |
18 class EventFilter; | 17 class EventFilter; |
19 class EventFilteringInfo; | 18 class EventFilteringInfo; |
20 class EventMatcher; | 19 class EventMatcher; |
21 | 20 |
22 // This class deals with the javascript bindings related to Event objects. | 21 // This class deals with the javascript bindings related to Event objects. |
23 class EventBindings : public ObjectBackedNativeHandler { | 22 class EventBindings : public ObjectBackedNativeHandler { |
24 public: | 23 public: |
25 EventBindings(Dispatcher* dispatcher, ScriptContext* context); | 24 EventBindings(Dispatcher* dispatcher, ScriptContext* context); |
26 virtual ~EventBindings(); | 25 virtual ~EventBindings(); |
(...skipping 26 matching lines...) Expand all Loading... |
53 void MatchAgainstEventFilter(const v8::FunctionCallbackInfo<v8::Value>& args); | 52 void MatchAgainstEventFilter(const v8::FunctionCallbackInfo<v8::Value>& args); |
54 | 53 |
55 Dispatcher* dispatcher_; | 54 Dispatcher* dispatcher_; |
56 scoped_ptr<EventMatcher> ParseEventMatcher( | 55 scoped_ptr<EventMatcher> ParseEventMatcher( |
57 base::DictionaryValue* filter_dict); | 56 base::DictionaryValue* filter_dict); |
58 }; | 57 }; |
59 | 58 |
60 } // namespace extensions | 59 } // namespace extensions |
61 | 60 |
62 #endif // EXTENSIONS_RENDERER_EVENT_BINDINGS_H_ | 61 #endif // EXTENSIONS_RENDERER_EVENT_BINDINGS_H_ |
OLD | NEW |