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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_gtk.cc

Issue 224803005: Refactor BrowserAccessibility to prepare for AXNode (re-land) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gtk Created 6 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 | Annotate | Revision Log
OLDNEW
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 namespace content { 10 namespace content {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 g_signal_emit_by_name(atk_object, "focus-event", true); 61 g_signal_emit_by_name(atk_object, "focus-event", true);
62 break; 62 break;
63 default: 63 default:
64 break; 64 break;
65 } 65 }
66 } 66 }
67 67
68 void BrowserAccessibilityManagerGtk::RecursivelySendChildrenChanged( 68 void BrowserAccessibilityManagerGtk::RecursivelySendChildrenChanged(
69 BrowserAccessibilityGtk* node) { 69 BrowserAccessibilityGtk* node) {
70 AtkObject* atkObject = node->ToBrowserAccessibilityGtk()->GetAtkObject(); 70 AtkObject* atkObject = node->ToBrowserAccessibilityGtk()->GetAtkObject();
71 for (unsigned int i = 0; i < node->children().size(); ++i) { 71 for (unsigned int i = 0; i < node->InternalChildCount(); ++i) {
72 BrowserAccessibilityGtk* child = 72 BrowserAccessibilityGtk* child =
73 node->children()[i]->ToBrowserAccessibilityGtk(); 73 node->InternalGetChild(i)->ToBrowserAccessibilityGtk();
74 g_signal_emit_by_name(atkObject, 74 g_signal_emit_by_name(atkObject,
75 "children-changed::add", 75 "children-changed::add",
76 i, 76 i,
77 child->GetAtkObject()); 77 child->GetAtkObject());
78 RecursivelySendChildrenChanged(child); 78 RecursivelySendChildrenChanged(child);
79 } 79 }
80 } 80 }
81 81
82 } // namespace content 82 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698