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

Side by Side Diff: chrome/browser/browser_accessibility_manager_win.cc

Issue 2830005: Rename browser_accessibility to browser_accessibility_win, and same for... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser_accessibility_manager.h" 5 #include "chrome/browser/browser_accessibility_manager_win.h"
6 6
7 #include "base/scoped_comptr_win.h" 7 #include "base/scoped_comptr_win.h"
8 #include "chrome/browser/browser_accessibility.h" 8 #include "chrome/browser/browser_accessibility_win.h"
9 #include "chrome/browser/renderer_host/render_process_host.h" 9 #include "chrome/browser/renderer_host/render_process_host.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 12
13 using webkit_glue::WebAccessibility; 13 using webkit_glue::WebAccessibility;
14 14
15 // Factory method to create an instance of BrowserAccessibility 15 // Factory method to create an instance of BrowserAccessibility
16 BrowserAccessibility* BrowserAccessibilityFactory::Create() { 16 BrowserAccessibility* BrowserAccessibilityFactory::Create() {
17 CComObject<BrowserAccessibility>* instance; 17 CComObject<BrowserAccessibility>* instance;
18 HRESULT hr = CComObject<BrowserAccessibility>::CreateInstance(&instance); 18 HRESULT hr = CComObject<BrowserAccessibility>::CreateInstance(&instance);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 if ((src.state >> WebAccessibility::STATE_FOCUSED) & 1) 142 if ((src.state >> WebAccessibility::STATE_FOCUSED) & 1)
143 focus_ = instance; 143 focus_ = instance;
144 for (int i = 0; i < static_cast<int>(src.children.size()); ++i) { 144 for (int i = 0; i < static_cast<int>(src.children.size()); ++i) {
145 BrowserAccessibility* child = CreateAccessibilityTree( 145 BrowserAccessibility* child = CreateAccessibilityTree(
146 instance, src.children[i], i); 146 instance, src.children[i], i);
147 instance->AddChild(child); 147 instance->AddChild(child);
148 } 148 }
149 149
150 return instance; 150 return instance;
151 } 151 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_accessibility_manager_win.h ('k') | chrome/browser/browser_accessibility_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698