| 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 CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
| 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/accessibility/ax_enums.h" | 10 #include "ui/accessibility/ax_enums.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // and onControlAction event listeners. | 97 // and onControlAction event listeners. |
| 98 class AccessibilityButtonInfo : public AccessibilityControlInfo { | 98 class AccessibilityButtonInfo : public AccessibilityControlInfo { |
| 99 public: | 99 public: |
| 100 AccessibilityButtonInfo(Profile* profile, | 100 AccessibilityButtonInfo(Profile* profile, |
| 101 const std::string& button_name, | 101 const std::string& button_name, |
| 102 const std::string& context); | 102 const std::string& context); |
| 103 | 103 |
| 104 virtual const char* type() const OVERRIDE; | 104 virtual const char* type() const OVERRIDE; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 // Accessibility information about static text passed to onControlFocused |
| 108 // and onControlAction event listeners. |
| 109 class AccessibilityStaticTextInfo : public AccessibilityControlInfo { |
| 110 public: |
| 111 AccessibilityStaticTextInfo(Profile* profile, |
| 112 const std::string& text, |
| 113 const std::string& context); |
| 114 |
| 115 virtual const char* type() const OVERRIDE; |
| 116 }; |
| 117 |
| 107 // Accessibility information about a hyperlink passed to onControlFocused | 118 // Accessibility information about a hyperlink passed to onControlFocused |
| 108 // and onControlAction event listeners. | 119 // and onControlAction event listeners. |
| 109 class AccessibilityLinkInfo : public AccessibilityControlInfo { | 120 class AccessibilityLinkInfo : public AccessibilityControlInfo { |
| 110 public: | 121 public: |
| 111 AccessibilityLinkInfo(Profile* profile, | 122 AccessibilityLinkInfo(Profile* profile, |
| 112 const std::string& link_name, | 123 const std::string& link_name, |
| 113 const std::string& context); | 124 const std::string& context); |
| 114 | 125 |
| 115 virtual const char* type() const OVERRIDE; | 126 virtual const char* type() const OVERRIDE; |
| 116 }; | 127 }; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 404 |
| 394 // Accessibility information about an alert passed to onControlAction event. | 405 // Accessibility information about an alert passed to onControlAction event. |
| 395 class AccessibilityAlertInfo : public AccessibilityControlInfo { | 406 class AccessibilityAlertInfo : public AccessibilityControlInfo { |
| 396 public: | 407 public: |
| 397 AccessibilityAlertInfo(Profile* profile, const std::string& name); | 408 AccessibilityAlertInfo(Profile* profile, const std::string& name); |
| 398 | 409 |
| 399 virtual const char* type() const OVERRIDE; | 410 virtual const char* type() const OVERRIDE; |
| 400 }; | 411 }; |
| 401 | 412 |
| 402 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 413 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
| OLD | NEW |