summaryrefslogtreecommitdiff
path: root/chromium/ui/views/accessibility/ax_event_observer.h
blob: 5fc3c8128880e4f003658afcedd7e0daa3824d05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_
#define UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_

#include "base/observer_list_types.h"
#include "ui/accessibility/ax_enums.mojom.h"
#include "ui/views/views_export.h"

namespace views {

class View;

// AXEventObserver is notified for accessibility events on all views.
class VIEWS_EXPORT AXEventObserver : public base::CheckedObserver {
 public:
  virtual void OnViewEvent(views::View* view, ax::mojom::Event event_type) = 0;

 protected:
  AXEventObserver();
  ~AXEventObserver() override;
};

}  // namespace views

#endif  // UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_