OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/html/HTMLElement.h" | 33 #include "core/html/HTMLElement.h" |
34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class AXListBox; | 38 class AXListBox; |
39 class Element; | 39 class Element; |
40 class HTMLElement; | 40 class HTMLElement; |
41 class HTMLSelectElement; | 41 class HTMLSelectElement; |
42 | 42 |
43 class AXListBoxOption : public AXObject { | 43 class AXListBoxOption FINAL : public AXObject { |
44 | 44 |
45 private: | 45 private: |
46 AXListBoxOption(); | 46 AXListBoxOption(); |
47 public: | 47 public: |
48 static PassRefPtr<AXListBoxOption> create(); | 48 static PassRefPtr<AXListBoxOption> create(); |
49 virtual ~AXListBoxOption(); | 49 virtual ~AXListBoxOption(); |
50 | 50 |
51 void setHTMLElement(HTMLElement* element) { m_optionElement = element; } | 51 void setHTMLElement(HTMLElement* element) { m_optionElement = element; } |
52 | 52 |
53 virtual AccessibilityRole roleValue() const OVERRIDE { return ListBoxOptionR
ole; } | 53 virtual AccessibilityRole roleValue() const OVERRIDE { return ListBoxOptionR
ole; } |
(...skipping 19 matching lines...) Expand all Loading... |
73 HTMLSelectElement* listBoxOptionParentNode() const; | 73 HTMLSelectElement* listBoxOptionParentNode() const; |
74 int listBoxOptionIndex() const; | 74 int listBoxOptionIndex() const; |
75 AXObject* listBoxOptionAXObject(HTMLElement*) const; | 75 AXObject* listBoxOptionAXObject(HTMLElement*) const; |
76 }; | 76 }; |
77 | 77 |
78 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption()); | 78 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption()); |
79 | 79 |
80 } // namespace WebCore | 80 } // namespace WebCore |
81 | 81 |
82 #endif // AXListBoxOption_h | 82 #endif // AXListBoxOption_h |
OLD | NEW |