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

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

Issue 12335101: Move some accessibility methods, enums and interfaces into the content/public API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix virtual method with no implementation, non-explicit single argument constructor Created 7 years, 9 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
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/dump_accessibility_tree_helper.h" 5 #include "content/browser/accessibility/dump_accessibility_tree_helper.h"
6 6
7 #include <oleacc.h> 7 #include <oleacc.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if (acc_obj->get_selection(0, &start, &end) == S_OK) { 153 if (acc_obj->get_selection(0, &start, &end) == S_OK) {
154 Add(false, StringPrintf(L"selection_start=%d", start)); 154 Add(false, StringPrintf(L"selection_start=%d", start));
155 Add(false, StringPrintf(L"selection_end=%d", end)); 155 Add(false, StringPrintf(L"selection_end=%d", end));
156 } 156 }
157 } 157 }
158 } 158 }
159 159
160 return UTF8ToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); 160 return UTF8ToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n");
161 } 161 }
162 162
163 // static
163 const base::FilePath::StringType 164 const base::FilePath::StringType
164 DumpAccessibilityTreeHelper::GetActualFileSuffix() const { 165 DumpAccessibilityTreeHelper::GetActualFileSuffix() {
165 return FILE_PATH_LITERAL("-actual-win.txt"); 166 return FILE_PATH_LITERAL("-actual-win.txt");
166 } 167 }
167 168
169 // static
168 const base::FilePath::StringType 170 const base::FilePath::StringType
169 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() const { 171 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() {
170 return FILE_PATH_LITERAL("-expected-win.txt"); 172 return FILE_PATH_LITERAL("-expected-win.txt");
171 } 173 }
172 174
173 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() const { 175 // static
176 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() {
174 return "@WIN-ALLOW-EMPTY:"; 177 return "@WIN-ALLOW-EMPTY:";
175 } 178 }
176 179
177 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { 180 // static
181 const std::string DumpAccessibilityTreeHelper::GetAllowString() {
178 return "@WIN-ALLOW:"; 182 return "@WIN-ALLOW:";
179 } 183 }
180 184
181 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { 185 // static
186 const std::string DumpAccessibilityTreeHelper::GetDenyString() {
182 return "@WIN-DENY:"; 187 return "@WIN-DENY:";
183 } 188 }
184 189
185 } // namespace content 190 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698