OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 16 matching lines...) Expand all Loading... |
27 #ifndef TextControlInnerElements_h | 27 #ifndef TextControlInnerElements_h |
28 #define TextControlInnerElements_h | 28 #define TextControlInnerElements_h |
29 | 29 |
30 #include "core/html/HTMLDivElement.h" | 30 #include "core/html/HTMLDivElement.h" |
31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class TextControlInnerContainer FINAL : public HTMLDivElement { | 35 class TextControlInnerContainer FINAL : public HTMLDivElement { |
36 public: | 36 public: |
37 static PassRefPtr<TextControlInnerContainer> create(Document&); | 37 static PassRefPtrWillBeRawPtr<TextControlInnerContainer> create(Document&); |
| 38 |
38 protected: | 39 protected: |
39 TextControlInnerContainer(Document&); | 40 explicit TextControlInnerContainer(Document&); |
40 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 41 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
41 }; | 42 }; |
42 | 43 |
43 class EditingViewPortElement FINAL : public HTMLDivElement { | 44 class EditingViewPortElement FINAL : public HTMLDivElement { |
44 public: | 45 public: |
45 static PassRefPtr<EditingViewPortElement> create(Document&); | 46 static PassRefPtrWillBeRawPtr<EditingViewPortElement> create(Document&); |
46 | 47 |
47 protected: | 48 protected: |
48 EditingViewPortElement(Document&); | 49 explicit EditingViewPortElement(Document&); |
49 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 50 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
50 | 51 |
51 private: | 52 private: |
52 virtual bool supportsFocus() const OVERRIDE { return false; } | 53 virtual bool supportsFocus() const OVERRIDE { return false; } |
53 }; | 54 }; |
54 | 55 |
55 class TextControlInnerTextElement FINAL : public HTMLDivElement { | 56 class TextControlInnerTextElement FINAL : public HTMLDivElement { |
56 public: | 57 public: |
57 static PassRefPtr<TextControlInnerTextElement> create(Document&); | 58 static PassRefPtrWillBeRawPtr<TextControlInnerTextElement> create(Document&)
; |
58 | 59 |
59 virtual void defaultEventHandler(Event*) OVERRIDE; | 60 virtual void defaultEventHandler(Event*) OVERRIDE; |
60 | 61 |
61 private: | 62 private: |
62 TextControlInnerTextElement(Document&); | 63 explicit TextControlInnerTextElement(Document&); |
63 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 64 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
64 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; | 65 virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
65 virtual bool supportsFocus() const OVERRIDE { return false; } | 66 virtual bool supportsFocus() const OVERRIDE { return false; } |
66 }; | 67 }; |
67 | 68 |
68 class SearchFieldDecorationElement FINAL : public HTMLDivElement { | 69 class SearchFieldDecorationElement FINAL : public HTMLDivElement { |
69 public: | 70 public: |
70 static PassRefPtr<SearchFieldDecorationElement> create(Document&); | 71 static PassRefPtrWillBeRawPtr<SearchFieldDecorationElement> create(Document&
); |
71 | 72 |
72 virtual void defaultEventHandler(Event*) OVERRIDE; | 73 virtual void defaultEventHandler(Event*) OVERRIDE; |
73 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 74 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
74 | 75 |
75 private: | 76 private: |
76 SearchFieldDecorationElement(Document&); | 77 explicit SearchFieldDecorationElement(Document&); |
77 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 78 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
78 virtual bool supportsFocus() const OVERRIDE { return false; } | 79 virtual bool supportsFocus() const OVERRIDE { return false; } |
79 }; | 80 }; |
80 | 81 |
81 class SearchFieldCancelButtonElement FINAL : public HTMLDivElement { | 82 class SearchFieldCancelButtonElement FINAL : public HTMLDivElement { |
82 public: | 83 public: |
83 static PassRefPtr<SearchFieldCancelButtonElement> create(Document&); | 84 static PassRefPtrWillBeRawPtr<SearchFieldCancelButtonElement> create(Documen
t&); |
84 | 85 |
85 virtual void defaultEventHandler(Event*) OVERRIDE; | 86 virtual void defaultEventHandler(Event*) OVERRIDE; |
86 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 87 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
87 | 88 |
88 private: | 89 private: |
89 SearchFieldCancelButtonElement(Document&); | 90 explicit SearchFieldCancelButtonElement(Document&); |
90 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; | 91 virtual void detach(const AttachContext& = AttachContext()) OVERRIDE; |
91 virtual bool supportsFocus() const OVERRIDE { return false; } | 92 virtual bool supportsFocus() const OVERRIDE { return false; } |
92 | 93 |
93 bool m_capturing; | 94 bool m_capturing; |
94 }; | 95 }; |
95 | 96 |
96 } // namespace | 97 } // namespace |
97 | 98 |
98 #endif | 99 #endif |
OLD | NEW |