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

Unified Diff: chrome/browser/ui/ash/accessibility/automation_manager_ash.cc

Issue 779103002: Revert of Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/accessibility/automation_manager_ash.cc
diff --git a/chrome/browser/ui/ash/accessibility/automation_manager_ash.cc b/chrome/browser/ui/ash/accessibility/automation_manager_ash.cc
index 9db0634ec2e90c6fd4a64b3223f1fb98412c034c..205efca63c183ac86b37f21f7db1e58606b94c37 100644
--- a/chrome/browser/ui/ash/accessibility/automation_manager_ash.cc
+++ b/chrome/browser/ui/ash/accessibility/automation_manager_ash.cc
@@ -12,7 +12,6 @@
#include "chrome/browser/profiles/profile_manager.h"
#include "content/public/browser/ax_event_notification_details.h"
#include "content/public/browser/browser_context.h"
-#include "ui/aura/window.h"
#include "ui/views/accessibility/ax_aura_obj_cache.h"
#include "ui/views/accessibility/ax_aura_obj_wrapper.h"
#include "ui/views/view.h"
@@ -43,12 +42,13 @@
void AutomationManagerAsh::HandleEvent(BrowserContext* context,
views::View* view,
ui::AXEvent event_type) {
- if (!enabled_)
+ if (!enabled_) {
return;
+ }
- if (!context && g_browser_process->profile_manager())
+ if (!context && g_browser_process->profile_manager()) {
context = g_browser_process->profile_manager()->GetLastUsedProfile();
-
+ }
if (!context) {
LOG(WARNING) << "Accessibility notification but no browser context";
return;
@@ -57,17 +57,6 @@
views::AXAuraObjWrapper* aura_obj =
views::AXAuraObjCache::GetInstance()->GetOrCreate(view);
SendEvent(context, aura_obj, event_type);
-}
-
-void AutomationManagerAsh::HandleAlert(content::BrowserContext* context,
- const std::string& text) {
- if (!enabled_)
- return;
-
- views::AXAuraObjWrapper* obj =
- static_cast<AXRootObjWrapper*>(current_tree_->GetRoot())
- ->GetAlertForText(text);
- SendEvent(context, obj, ui::AX_EVENT_ALERT);
}
void AutomationManagerAsh::DoDefault(int32 id) {

Powered by Google App Engine
This is Rietveld 408576698