OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #ifndef HTMLLabelElement_h | 24 #ifndef HTMLLabelElement_h |
25 #define HTMLLabelElement_h | 25 #define HTMLLabelElement_h |
26 | 26 |
27 #include "core/html/HTMLElement.h" | 27 #include "core/html/HTMLElement.h" |
28 #include "core/html/LabelableElement.h" | 28 #include "core/html/LabelableElement.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 class HTMLLabelElement FINAL : public HTMLElement { | 32 class HTMLLabelElement FINAL : public HTMLElement { |
| 33 DEFINE_WRAPPERTYPEINFO(); |
33 public: | 34 public: |
34 DECLARE_NODE_FACTORY(HTMLLabelElement); | 35 DECLARE_NODE_FACTORY(HTMLLabelElement); |
35 | 36 |
36 LabelableElement* control() const; | 37 LabelableElement* control() const; |
37 | 38 |
38 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 39 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
39 | 40 |
40 virtual HTMLFormElement* formOwner() const OVERRIDE; | 41 virtual HTMLFormElement* formOwner() const OVERRIDE; |
41 | 42 |
42 private: | 43 private: |
(...skipping 13 matching lines...) Expand all Loading... |
56 virtual void setHovered(bool = true) OVERRIDE; | 57 virtual void setHovered(bool = true) OVERRIDE; |
57 | 58 |
58 // Overridden to either click() or focus() the corresponding control. | 59 // Overridden to either click() or focus() the corresponding control. |
59 virtual void defaultEventHandler(Event*) OVERRIDE; | 60 virtual void defaultEventHandler(Event*) OVERRIDE; |
60 | 61 |
61 virtual void focus(bool restorePreviousSelection, FocusType) OVERRIDE; | 62 virtual void focus(bool restorePreviousSelection, FocusType) OVERRIDE; |
62 | 63 |
63 void updateLabel(TreeScope&, const AtomicString& oldForAttributeValue, const
AtomicString& newForAttributeValue); | 64 void updateLabel(TreeScope&, const AtomicString& oldForAttributeValue, const
AtomicString& newForAttributeValue); |
64 }; | 65 }; |
65 | 66 |
66 } //namespace | 67 } // namespace blink |
67 | 68 |
68 #endif | 69 #endif // HTMLLabelElement_h |
OLD | NEW |