| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility_manager_gtk.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager_gtk.h" |
| 6 | 6 |
| 7 #include "content/browser/accessibility/browser_accessibility_gtk.h" | 7 #include "content/browser/accessibility/browser_accessibility_gtk.h" |
| 8 #include "content/common/accessibility_messages.h" | 8 #include "content/common/accessibility_messages.h" |
| 9 | 9 |
| 10 using webkit_glue::WebAccessibility; | 10 using content::AccessibilityNodeData; |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 BrowserAccessibilityManager* BrowserAccessibilityManager::Create( | 13 BrowserAccessibilityManager* BrowserAccessibilityManager::Create( |
| 14 gfx::NativeView parent_view, | 14 gfx::NativeView parent_view, |
| 15 const WebAccessibility& src, | 15 const AccessibilityNodeData& src, |
| 16 BrowserAccessibilityDelegate* delegate, | 16 BrowserAccessibilityDelegate* delegate, |
| 17 BrowserAccessibilityFactory* factory) { | 17 BrowserAccessibilityFactory* factory) { |
| 18 return new BrowserAccessibilityManagerGtk( | 18 return new BrowserAccessibilityManagerGtk( |
| 19 parent_view, | 19 parent_view, |
| 20 src, | 20 src, |
| 21 delegate, | 21 delegate, |
| 22 factory); | 22 factory); |
| 23 } | 23 } |
| 24 | 24 |
| 25 BrowserAccessibilityManagerGtk::BrowserAccessibilityManagerGtk( | 25 BrowserAccessibilityManagerGtk::BrowserAccessibilityManagerGtk( |
| 26 GtkWidget* parent_view, | 26 GtkWidget* parent_view, |
| 27 const WebAccessibility& src, | 27 const AccessibilityNodeData& src, |
| 28 BrowserAccessibilityDelegate* delegate, | 28 BrowserAccessibilityDelegate* delegate, |
| 29 BrowserAccessibilityFactory* factory) | 29 BrowserAccessibilityFactory* factory) |
| 30 : BrowserAccessibilityManager(parent_view, src, delegate, factory) { | 30 : BrowserAccessibilityManager(parent_view, src, delegate, factory) { |
| 31 } | 31 } |
| 32 | 32 |
| 33 BrowserAccessibilityManagerGtk::~BrowserAccessibilityManagerGtk() { | 33 BrowserAccessibilityManagerGtk::~BrowserAccessibilityManagerGtk() { |
| 34 } | 34 } |
| 35 | 35 |
| 36 void BrowserAccessibilityManagerGtk::NotifyAccessibilityEvent( | 36 void BrowserAccessibilityManagerGtk::NotifyAccessibilityEvent( |
| 37 int type, | 37 int type, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 62 for (unsigned int i = 0; i < node->children().size(); ++i) { | 62 for (unsigned int i = 0; i < node->children().size(); ++i) { |
| 63 BrowserAccessibilityGtk* child = | 63 BrowserAccessibilityGtk* child = |
| 64 node->children()[i]->ToBrowserAccessibilityGtk(); | 64 node->children()[i]->ToBrowserAccessibilityGtk(); |
| 65 g_signal_emit_by_name(atkObject, | 65 g_signal_emit_by_name(atkObject, |
| 66 "children-changed::add", | 66 "children-changed::add", |
| 67 i, | 67 i, |
| 68 child->GetAtkObject()); | 68 child->GetAtkObject()); |
| 69 RecursivelySendChildrenChanged(child); | 69 RecursivelySendChildrenChanged(child); |
| 70 } | 70 } |
| 71 } | 71 } |
| OLD | NEW |