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

Side by Side Diff: chrome/browser/ui/aura/accessibility/automation_manager_aura.cc

Issue 2803823002: Fix Chrome OS virtual keyboard accessibility (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" 5 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 views::AXAuraObjWrapper* parent) { 92 views::AXAuraObjWrapper* parent) {
93 if (!enabled_) 93 if (!enabled_)
94 return; 94 return;
95 95
96 if (!parent) 96 if (!parent)
97 parent = current_tree_->GetRoot(); 97 parent = current_tree_->GetRoot();
98 98
99 SendEvent(nullptr, parent, ui::AX_EVENT_CHILDREN_CHANGED); 99 SendEvent(nullptr, parent, ui::AX_EVENT_CHILDREN_CHANGED);
100 } 100 }
101 101
102 void AutomationManagerAura::OnEvent(views::AXAuraObjWrapper* aura_obj,
103 ui::AXEvent event_type) {
104 SendEvent(nullptr, aura_obj, event_type);
105 }
106
102 AutomationManagerAura::AutomationManagerAura() 107 AutomationManagerAura::AutomationManagerAura()
103 : AXHostDelegate(extensions::api::automation::kDesktopTreeID), 108 : AXHostDelegate(extensions::api::automation::kDesktopTreeID),
104 enabled_(false), 109 enabled_(false),
105 processing_events_(false) {} 110 processing_events_(false) {}
106 111
107 AutomationManagerAura::~AutomationManagerAura() { 112 AutomationManagerAura::~AutomationManagerAura() {
108 } 113 }
109 114
110 void AutomationManagerAura::Reset(bool reset_serializer) { 115 void AutomationManagerAura::Reset(bool reset_serializer) {
111 if (!current_tree_) 116 if (!current_tree_)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 159
155 processing_events_ = false; 160 processing_events_ = false;
156 auto pending_events_copy = pending_events_; 161 auto pending_events_copy = pending_events_;
157 pending_events_.clear(); 162 pending_events_.clear();
158 for (size_t i = 0; i < pending_events_copy.size(); ++i) { 163 for (size_t i = 0; i < pending_events_copy.size(); ++i) {
159 SendEvent(context, 164 SendEvent(context,
160 pending_events_copy[i].first, 165 pending_events_copy[i].first,
161 pending_events_copy[i].second); 166 pending_events_copy[i].second);
162 } 167 }
163 } 168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698