Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.h

Issue 2826423003: Expand Chrome OS ARC support to create one tree source per package (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BRIDG E_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BRIDG E_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BRIDG E_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BRIDG E_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "components/arc/arc_service.h" 10 #include "components/arc/arc_service.h"
11 #include "components/arc/common/accessibility_helper.mojom.h" 11 #include "components/arc/common/accessibility_helper.mojom.h"
12 #include "components/arc/instance_holder.h" 12 #include "components/arc/instance_holder.h"
13 #include "components/exo/wm_helper.h" 13 #include "components/exo/wm_helper.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "ui/accessibility/ax_host_delegate.h" 15 #include "ui/accessibility/ax_host_delegate.h"
16 16
17 namespace {
hidehiko 2017/04/21 06:27:02 Please do not declare anonymous namespace in heade
Luis Héctor Chávez 2017/04/21 15:20:07 If you don't want to use nested class, you can cal
18 class FocusStealer;
19 }
20
17 namespace views { 21 namespace views {
18 22
19 class View; 23 class View;
20 24
21 } // namespace views 25 } // namespace views
22 26
23 namespace arc { 27 namespace arc {
24 28
25 class ArcBridgeService; 29 class ArcBridgeService;
26 class AXTreeSourceArc; 30 class AXTreeSourceArc;
(...skipping 13 matching lines...) Expand all
40 44
41 // InstanceHolder<mojom::AccessibilityHelperInstance>::Observer overrides. 45 // InstanceHolder<mojom::AccessibilityHelperInstance>::Observer overrides.
42 void OnInstanceReady() override; 46 void OnInstanceReady() override;
43 47
44 // mojom::AccessibilityHelperHost overrides. 48 // mojom::AccessibilityHelperHost overrides.
45 void OnAccessibilityEventDeprecated( 49 void OnAccessibilityEventDeprecated(
46 mojom::AccessibilityEventType event_type, 50 mojom::AccessibilityEventType event_type,
47 mojom::AccessibilityNodeInfoDataPtr event_source) override; 51 mojom::AccessibilityNodeInfoDataPtr event_source) override;
48 void OnAccessibilityEvent( 52 void OnAccessibilityEvent(
49 mojom::AccessibilityEventDataPtr event_data) override; 53 mojom::AccessibilityEventDataPtr event_data) override;
54 void OnAccessibilityTreeDestroyed() override;
50 55
51 private: 56 private:
52 // exo::WMHelper::ActivationObserver overrides. 57 // exo::WMHelper::ActivationObserver overrides.
53 void OnWindowActivated(aura::Window* gained_active, 58 void OnWindowActivated(aura::Window* gained_active,
54 aura::Window* lost_active) override; 59 aura::Window* lost_active) override;
55 60
56 // AXHostDelegate overrides. 61 // AXHostDelegate overrides.
57 void PerformAction(const ui::AXActionData& data) override; 62 void PerformAction(const ui::AXActionData& data) override;
58 63
59 mojo::Binding<mojom::AccessibilityHelperHost> binding_; 64 mojo::Binding<mojom::AccessibilityHelperHost> binding_;
60 65
61 std::unique_ptr<AXTreeSourceArc> tree_source_; 66 std::unique_ptr<AXTreeSourceArc> tree_source_;
62 std::unique_ptr<views::View> focus_stealer_; 67 std::unique_ptr<FocusStealer> focus_stealer_;
63 68
64 DISALLOW_COPY_AND_ASSIGN(ArcAccessibilityHelperBridge); 69 DISALLOW_COPY_AND_ASSIGN(ArcAccessibilityHelperBridge);
65 }; 70 };
66 71
67 } // namespace arc 72 } // namespace arc
68 73
69 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BR IDGE_H_ 74 #endif // CHROME_BROWSER_CHROMEOS_ARC_ACCESSIBILITY_ARC_ACCESSIBILITY_HELPER_BR IDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698