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

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_helper_mac.mm

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, 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 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 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Add(false, Format(node, "url='", @selector(url), "'")); 105 Add(false, Format(node, "url='", @selector(url), "'"));
106 Add(false, Format(node, "visibleCharacterRange='", 106 Add(false, Format(node, "visibleCharacterRange='",
107 @selector(visibleCharacterRange), "'")); 107 @selector(visibleCharacterRange), "'"));
108 Add(false, Format(node, "visited='", @selector(visited), "'")); 108 Add(false, Format(node, "visited='", @selector(visited), "'"));
109 Add(false, FormatPosition(node)); 109 Add(false, FormatPosition(node));
110 Add(false, FormatSize(node)); 110 Add(false, FormatSize(node));
111 111
112 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); 112 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n");
113 } 113 }
114 114
115 // static
115 const base::FilePath::StringType 116 const base::FilePath::StringType
116 DumpAccessibilityTreeHelper::GetActualFileSuffix() 117 DumpAccessibilityTreeHelper::GetActualFileSuffix() {
117 const {
118 return FILE_PATH_LITERAL("-actual-mac.txt"); 118 return FILE_PATH_LITERAL("-actual-mac.txt");
119 } 119 }
120 120
121 // static
121 const base::FilePath::StringType 122 const base::FilePath::StringType
122 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() 123 DumpAccessibilityTreeHelper::GetExpectedFileSuffix() {
123 const {
124 return FILE_PATH_LITERAL("-expected-mac.txt"); 124 return FILE_PATH_LITERAL("-expected-mac.txt");
125 } 125 }
126 126
127 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() const { 127 // static
128 const std::string DumpAccessibilityTreeHelper::GetAllowEmptyString() {
128 return "@MAC-ALLOW-EMPTY:"; 129 return "@MAC-ALLOW-EMPTY:";
129 } 130 }
130 131
131 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { 132 // static
133 const std::string DumpAccessibilityTreeHelper::GetAllowString() {
132 return "@MAC-ALLOW:"; 134 return "@MAC-ALLOW:";
133 } 135 }
134 136
135 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { 137 // static
138 const std::string DumpAccessibilityTreeHelper::GetDenyString() {
136 return "@MAC-DENY:"; 139 return "@MAC-DENY:";
137 } 140 }
138 141
139 } // namespace content 142 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698