[email protected] | c1c32c8 | 2012-03-15 09:35:42 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | c1c32c8 | 2012-03-15 09:35:42 | [diff] [blame] | 5 | #ifndef SYNC_JS_JS_EVENT_HANDLER_H_ |
6 | #define SYNC_JS_JS_EVENT_HANDLER_H_ | ||||
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 7 | #pragma once |
8 | |||||
9 | // See README.js for design comments. | ||||
10 | |||||
11 | #include <string> | ||||
12 | |||||
[email protected] | 65f17355 | 2012-06-28 22:43:58 | [diff] [blame^] | 13 | namespace syncer { |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 14 | |
[email protected] | ec5263a | 2011-05-10 09:23:39 | [diff] [blame] | 15 | class JsEventDetails; |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 16 | |
17 | // An interface for objects that handle Javascript events (e.g., | ||||
18 | // WebUIs). | ||||
19 | class JsEventHandler { | ||||
20 | public: | ||||
21 | virtual void HandleJsEvent( | ||||
[email protected] | ec5263a | 2011-05-10 09:23:39 | [diff] [blame] | 22 | const std::string& name, const JsEventDetails& details) = 0; |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 23 | |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 24 | protected: |
25 | virtual ~JsEventHandler() {} | ||||
26 | }; | ||||
27 | |||||
[email protected] | 65f17355 | 2012-06-28 22:43:58 | [diff] [blame^] | 28 | } // namespace syncer |
[email protected] | f92351d | 2011-02-01 07:42:12 | [diff] [blame] | 29 | |
[email protected] | c1c32c8 | 2012-03-15 09:35:42 | [diff] [blame] | 30 | #endif // SYNC_JS_JS_EVENT_HANDLER_H_ |