OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are | 7 * modification, are permitted provided that the following conditions are |
8 * met: | 8 * met: |
9 * | 9 * |
10 * * Redistributions of source code must retain the above copyright | 10 * * Redistributions of source code must retain the above copyright |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #ifndef InputTypeView_h | 33 #ifndef InputTypeView_h |
34 #define InputTypeView_h | 34 #define InputTypeView_h |
35 | 35 |
36 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
38 #include "public/platform/WebFocusType.h" | 38 #include "public/platform/WebFocusType.h" |
39 #include "wtf/Allocator.h" | 39 #include "wtf/Allocator.h" |
40 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
41 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
42 #include "wtf/RefCounted.h" | |
43 #include "wtf/RefPtr.h" | |
44 | 42 |
45 namespace blink { | 43 namespace blink { |
46 | 44 |
47 class AXObject; | 45 class AXObject; |
48 class BeforeTextInsertedEvent; | 46 class BeforeTextInsertedEvent; |
49 class Element; | 47 class Element; |
50 class Event; | 48 class Event; |
51 class HTMLFormElement; | 49 class HTMLFormElement; |
52 class HTMLInputElement; | 50 class HTMLInputElement; |
53 class KeyboardEvent; | 51 class KeyboardEvent; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual AXObject* popupRootAXObject(); | 116 virtual AXObject* popupRootAXObject(); |
119 virtual void ensureFallbackContent() { } | 117 virtual void ensureFallbackContent() { } |
120 virtual void ensurePrimaryContent() { } | 118 virtual void ensurePrimaryContent() { } |
121 virtual bool hasFallbackContent() const { return false; } | 119 virtual bool hasFallbackContent() const { return false; } |
122 | 120 |
123 protected: | 121 protected: |
124 InputTypeView(HTMLInputElement& element) : m_element(&element) { } | 122 InputTypeView(HTMLInputElement& element) : m_element(&element) { } |
125 HTMLInputElement& element() const { return *m_element; } | 123 HTMLInputElement& element() const { return *m_element; } |
126 | 124 |
127 private: | 125 private: |
128 // Not a RefPtr because the HTMLInputElement object owns this InputTypeView | |
129 // object. | |
130 Member<HTMLInputElement> m_element; | 126 Member<HTMLInputElement> m_element; |
131 }; | 127 }; |
132 | 128 |
133 } // namespace blink | 129 } // namespace blink |
134 #endif | 130 #endif |
OLD | NEW |