blob: c31c5935de2ea90432524e991c1565b352c1d2eb [file] [log] [blame]
[email protected]c1c32c82012-03-15 09:35:421// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]f92351d2011-02-01 07:42:122// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]c1c32c82012-03-15 09:35:425#ifndef SYNC_JS_JS_EVENT_HANDLER_H_
6#define SYNC_JS_JS_EVENT_HANDLER_H_
[email protected]f92351d2011-02-01 07:42:127#pragma once
8
9// See README.js for design comments.
10
11#include <string>
12
[email protected]65f173552012-06-28 22:43:5813namespace syncer {
[email protected]f92351d2011-02-01 07:42:1214
[email protected]ec5263a2011-05-10 09:23:3915class JsEventDetails;
[email protected]f92351d2011-02-01 07:42:1216
17// An interface for objects that handle Javascript events (e.g.,
18// WebUIs).
19class JsEventHandler {
20 public:
21 virtual void HandleJsEvent(
[email protected]ec5263a2011-05-10 09:23:3922 const std::string& name, const JsEventDetails& details) = 0;
[email protected]f92351d2011-02-01 07:42:1223
[email protected]f92351d2011-02-01 07:42:1224 protected:
25 virtual ~JsEventHandler() {}
26};
27
[email protected]65f173552012-06-28 22:43:5828} // namespace syncer
[email protected]f92351d2011-02-01 07:42:1229
[email protected]c1c32c82012-03-15 09:35:4230#endif // SYNC_JS_JS_EVENT_HANDLER_H_