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

Unified Diff: content/browser/accessibility/accessibility_tree_formatter_impl_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: Address review comments Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/accessibility_tree_formatter_impl_win.cc
diff --git a/content/browser/accessibility/dump_accessibility_tree_helper_win.cc b/content/browser/accessibility/accessibility_tree_formatter_impl_win.cc
similarity index 91%
rename from content/browser/accessibility/dump_accessibility_tree_helper_win.cc
rename to content/browser/accessibility/accessibility_tree_formatter_impl_win.cc
index 6dcbcc920b87ac5dbc9dfb4805e2943397f70151..0f134df38a432537a34a5c8ff502914c7b0ba90e 100644
--- a/content/browser/accessibility/dump_accessibility_tree_helper_win.cc
+++ b/content/browser/accessibility/accessibility_tree_formatter_impl_win.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/accessibility/dump_accessibility_tree_helper.h"
+#include "content/browser/accessibility/accessibility_tree_formatter_impl.h"
#include <oleacc.h>
@@ -22,11 +22,11 @@
namespace content {
-void DumpAccessibilityTreeHelper::Initialize() {
+void AccessibilityTreeFormatterImpl::Initialize() {
ui::win::CreateATLModuleIfNeeded();
}
-string16 DumpAccessibilityTreeHelper::ToString(
+string16 AccessibilityTreeFormatterImpl::ToString(
BrowserAccessibility* node, char* prefix) {
BrowserAccessibilityWin* acc_obj = node->ToBrowserAccessibilityWin();
@@ -160,25 +160,30 @@ string16 DumpAccessibilityTreeHelper::ToString(
return UTF8ToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n");
}
+// static
const base::FilePath::StringType
-DumpAccessibilityTreeHelper::GetActualFileSuffix() const {
+AccessibilityTreeFormatterImpl::GetActualFileSuffix() {
return FILE_PATH_LITERAL("-actual-win.txt");
}
+// static
const base::FilePath::StringType
-DumpAccessibilityTreeHelper::GetExpectedFileSuffix() const {
+AccessibilityTreeFormatterImpl::GetExpectedFileSuffix() {
return FILE_PATH_LITERAL("-expected-win.txt");
}
-const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() const {
+// static
+const std::string AccessibilityTreeFormatterImpl::GetAllowEmptyString() {
return "@WIN-ALLOW-EMPTY:";
}
-const std::string DumpAccessibilityTreeHelper::GetAllowString() const {
+// static
+const std::string AccessibilityTreeFormatterImpl::GetAllowString() {
return "@WIN-ALLOW:";
}
-const std::string DumpAccessibilityTreeHelper::GetDenyString() const {
+// static
+const std::string AccessibilityTreeFormatterImpl::GetDenyString() {
return "@WIN-DENY:";
}

Powered by Google App Engine
This is Rietveld 408576698