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

Side by Side Diff: Source/core/accessibility/AXListBoxOption.h

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual AccessibilityRole roleValue() const OVERRIDE { return ListBoxOptionR ole; } 53 virtual AccessibilityRole roleValue() const OVERRIDE { return ListBoxOptionR ole; }
54 virtual bool isSelected() const OVERRIDE; 54 virtual bool isSelected() const OVERRIDE;
55 virtual bool isEnabled() const OVERRIDE; 55 virtual bool isEnabled() const OVERRIDE;
56 virtual bool isSelectedOptionActive() const OVERRIDE; 56 virtual bool isSelectedOptionActive() const OVERRIDE;
57 virtual String stringValue() const OVERRIDE; 57 virtual String stringValue() const OVERRIDE;
58 virtual Element* actionElement() const OVERRIDE; 58 virtual Element* actionElement() const OVERRIDE;
59 virtual Node* node() const OVERRIDE { return m_optionElement; } 59 virtual Node* node() const OVERRIDE { return m_optionElement; }
60 virtual void setSelected(bool) OVERRIDE; 60 virtual void setSelected(bool) OVERRIDE;
61 virtual bool canSetSelectedAttribute() const OVERRIDE; 61 virtual bool canSetSelectedAttribute() const OVERRIDE;
62 62
63 virtual LayoutRect elementRect() const OVERRIDE;
64 virtual AXObject* parentObject() const OVERRIDE; 63 virtual AXObject* parentObject() const OVERRIDE;
65 64
66 private: 65 private:
67 HTMLElement* m_optionElement; 66 HTMLElement* m_optionElement;
68 67
69 virtual bool isListBoxOption() const OVERRIDE { return true; } 68 virtual bool isListBoxOption() const OVERRIDE { return true; }
70 virtual bool canHaveChildren() const OVERRIDE { return false; } 69 virtual bool canHaveChildren() const OVERRIDE { return false; }
71 virtual bool computeAccessibilityIsIgnored() const OVERRIDE; 70 virtual bool computeAccessibilityIsIgnored() const OVERRIDE;
72 71
73 HTMLSelectElement* listBoxOptionParentNode() const; 72 HTMLSelectElement* listBoxOptionParentNode() const;
74 int listBoxOptionIndex() const; 73 int listBoxOptionIndex() const;
75 AXObject* listBoxOptionAXObject(HTMLElement*) const; 74 AXObject* listBoxOptionAXObject(HTMLElement*) const;
76 }; 75 };
77 76
78 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption()); 77 DEFINE_AX_OBJECT_TYPE_CASTS(AXListBoxOption, isListBoxOption());
79 78
80 } // namespace WebCore 79 } // namespace WebCore
81 80
82 #endif // AXListBoxOption_h 81 #endif // AXListBoxOption_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698