| OLD | NEW |
| 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "base/strings/string_split.h" |
| 14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 15 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 16 #include "third_party/WebKit/public/web/WebAXEnums.h" | 17 #include "third_party/WebKit/public/web/WebAXEnums.h" |
| 17 #include "ui/accessibility/ax_node.h" | 18 #include "ui/accessibility/ax_node.h" |
| 18 #include "ui/accessibility/ax_node_data.h" | 19 #include "ui/accessibility/ax_node_data.h" |
| 19 | 20 |
| 20 #if defined(OS_MACOSX) && __OBJC__ | 21 #if defined(OS_MACOSX) && __OBJC__ |
| 21 @class BrowserAccessibilityCocoa; | 22 @class BrowserAccessibilityCocoa; |
| 22 #endif | 23 #endif |
| 23 | 24 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 154 |
| 154 BrowserAccessibility* GetParent() const; | 155 BrowserAccessibility* GetParent() const; |
| 155 int32 GetIndexInParent() const; | 156 int32 GetIndexInParent() const; |
| 156 | 157 |
| 157 int32 GetId() const; | 158 int32 GetId() const; |
| 158 const ui::AXNodeData& GetData() const; | 159 const ui::AXNodeData& GetData() const; |
| 159 gfx::Rect GetLocation() const; | 160 gfx::Rect GetLocation() const; |
| 160 int32 GetRole() const; | 161 int32 GetRole() const; |
| 161 int32 GetState() const; | 162 int32 GetState() const; |
| 162 | 163 |
| 163 typedef std::vector<std::pair<std::string, std::string> > HtmlAttributes; | 164 typedef base::StringPairs HtmlAttributes; |
| 164 const HtmlAttributes& GetHtmlAttributes() const; | 165 const HtmlAttributes& GetHtmlAttributes() const; |
| 165 | 166 |
| 166 #if defined(OS_MACOSX) && __OBJC__ | 167 #if defined(OS_MACOSX) && __OBJC__ |
| 167 BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa(); | 168 BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa(); |
| 168 #elif defined(OS_WIN) | 169 #elif defined(OS_WIN) |
| 169 BrowserAccessibilityWin* ToBrowserAccessibilityWin(); | 170 BrowserAccessibilityWin* ToBrowserAccessibilityWin(); |
| 170 #endif | 171 #endif |
| 171 | 172 |
| 172 // Accessing accessibility attributes: | 173 // Accessing accessibility attributes: |
| 173 // | 174 // |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 263 |
| 263 std::string name_; | 264 std::string name_; |
| 264 std::string value_; | 265 std::string value_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 267 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace content | 270 } // namespace content |
| 270 | 271 |
| 271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 272 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |