| Index: content/browser/accessibility/browser_accessibility_manager_gtk.cc
|
| diff --git a/content/browser/accessibility/browser_accessibility_manager_gtk.cc b/content/browser/accessibility/browser_accessibility_manager_gtk.cc
|
| deleted file mode 100644
|
| index 8748de57fefc47e0574ebb32659cec8ed2154fb2..0000000000000000000000000000000000000000
|
| --- a/content/browser/accessibility/browser_accessibility_manager_gtk.cc
|
| +++ /dev/null
|
| @@ -1,82 +0,0 @@
|
| -// Copyright (c) 2012 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.
|
| -
|
| -#include "content/browser/accessibility/browser_accessibility_manager_gtk.h"
|
| -
|
| -#include "content/browser/accessibility/browser_accessibility_gtk.h"
|
| -#include "content/common/accessibility_messages.h"
|
| -
|
| -namespace content {
|
| -
|
| -// static
|
| -BrowserAccessibilityManager* BrowserAccessibilityManager::Create(
|
| - const ui::AXNodeData& src,
|
| - BrowserAccessibilityDelegate* delegate,
|
| - BrowserAccessibilityFactory* factory) {
|
| - return new BrowserAccessibilityManagerGtk(
|
| - NULL,
|
| - src,
|
| - delegate,
|
| - factory);
|
| -}
|
| -
|
| -BrowserAccessibilityManagerGtk::BrowserAccessibilityManagerGtk(
|
| - GtkWidget* parent_widget,
|
| - const ui::AXNodeData& src,
|
| - BrowserAccessibilityDelegate* delegate,
|
| - BrowserAccessibilityFactory* factory)
|
| - : BrowserAccessibilityManager(delegate, factory),
|
| - parent_widget_(parent_widget) {
|
| - Initialize(src);
|
| -}
|
| -
|
| -BrowserAccessibilityManagerGtk::~BrowserAccessibilityManagerGtk() {
|
| -}
|
| -
|
| -// static
|
| -ui::AXNodeData BrowserAccessibilityManagerGtk::GetEmptyDocument() {
|
| - ui::AXNodeData empty_document;
|
| - empty_document.id = 0;
|
| - empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA;
|
| - empty_document.state =
|
| - 1 << ui::AX_STATE_READ_ONLY;
|
| - return empty_document;
|
| -}
|
| -
|
| -void BrowserAccessibilityManagerGtk::NotifyAccessibilityEvent(
|
| - ui::AXEvent event_type,
|
| - BrowserAccessibility* node) {
|
| - if (!node->IsNative())
|
| - return;
|
| - AtkObject* atk_object = node->ToBrowserAccessibilityGtk()->GetAtkObject();
|
| -
|
| - switch (event_type) {
|
| - case ui::AX_EVENT_CHILDREN_CHANGED:
|
| - RecursivelySendChildrenChanged(GetRoot()->ToBrowserAccessibilityGtk());
|
| - break;
|
| - case ui::AX_EVENT_FOCUS:
|
| - // Note: the focus-event was deprecated in ATK 2.9.4
|
| - // See https://bugzilla.gnome.org/show_bug.cgi?id=649575#c8
|
| - g_signal_emit_by_name(atk_object, "focus-event", true);
|
| - break;
|
| - default:
|
| - break;
|
| - }
|
| -}
|
| -
|
| -void BrowserAccessibilityManagerGtk::RecursivelySendChildrenChanged(
|
| - BrowserAccessibilityGtk* node) {
|
| - AtkObject* atkObject = node->ToBrowserAccessibilityGtk()->GetAtkObject();
|
| - for (unsigned int i = 0; i < node->InternalChildCount(); ++i) {
|
| - BrowserAccessibilityGtk* child =
|
| - node->InternalGetChild(i)->ToBrowserAccessibilityGtk();
|
| - g_signal_emit_by_name(atkObject,
|
| - "children-changed::add",
|
| - i,
|
| - child->GetAtkObject());
|
| - RecursivelySendChildrenChanged(child);
|
| - }
|
| -}
|
| -
|
| -} // namespace content
|
|
|