Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_ARC_ACCESSIBILITY_HELPE R_BRIDGE_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_ARC_ACCESSIBILITY_HELPE R_BRIDGE_H_ | |
| 7 | |
| 8 #include "components/arc/arc_service.h" | |
| 9 #include "components/arc/common/accessibility_helper.mojom.h" | |
| 10 #include "components/arc/instance_holder.h" | |
| 11 #include "mojo/public/cpp/bindings/binding.h" | |
| 12 | |
| 13 namespace arc { | |
| 14 | |
| 15 class ArcBridgeService; | |
| 16 | |
| 17 class ArcAccessibilityHelperBridge | |
| 18 : public ArcService, | |
| 19 public mojom::AccessibilityHelperHost, | |
| 20 public InstanceHolder<mojom::AccessibilityHelperInstance>::Observer { | |
| 21 public: | |
| 22 explicit ArcAccessibilityHelperBridge(ArcBridgeService* bridge_service); | |
| 23 ~ArcAccessibilityHelperBridge() override; | |
| 24 | |
| 25 // InstanceHolder<mojom::AccessibilityHelperInstance>::Observer overrides. | |
| 26 void OnInstanceReady() override; | |
| 27 | |
| 28 // mojom::AccessibilityHelperHost | |
|
Luis Héctor Chávez
2017/01/19 17:17:56
nit: be consistent with the override comment style
yawano
2017/01/20 06:52:31
Done.
| |
| 29 void OnAccessibilityEvent( | |
| 30 mojom::AccessibilityEventType eventType, | |
| 31 mojom::AccessibilityNodeInfoDataPtr eventSource) override; | |
| 32 | |
| 33 private: | |
| 34 mojo::Binding<mojom::AccessibilityHelperHost> binding_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(ArcAccessibilityHelperBridge); | |
| 37 }; | |
| 38 | |
| 39 } // namespace arc | |
| 40 | |
| 41 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_HELPER_ARC_ACCESSIBILITY_HE LPER_BRIDGE_H_ | |
| OLD | NEW |