OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 14 matching lines...) Expand all Loading... |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #ifndef BarProp_h | 29 #ifndef BarProp_h |
30 #define BarProp_h | 30 #define BarProp_h |
31 | 31 |
32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
33 #include "core/frame/DOMWindowProperty.h" | 33 #include "core/frame/DOMWindowProperty.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 #include "wtf/PassRefPtr.h" | |
36 #include "wtf/RefCounted.h" | |
37 | 35 |
38 namespace blink { | 36 namespace blink { |
39 | 37 |
40 class LocalFrame; | 38 class LocalFrame; |
41 | 39 |
42 class BarProp final : public GarbageCollected<BarProp>, public ScriptWrappable,
public DOMWindowProperty { | 40 class BarProp final : public GarbageCollected<BarProp>, public ScriptWrappable,
public DOMWindowProperty { |
43 DEFINE_WRAPPERTYPEINFO(); | 41 DEFINE_WRAPPERTYPEINFO(); |
44 USING_GARBAGE_COLLECTED_MIXIN(BarProp); | 42 USING_GARBAGE_COLLECTED_MIXIN(BarProp); |
45 public: | 43 public: |
46 enum Type { Locationbar, Menubar, Personalbar, Scrollbars, Statusbar, Toolba
r }; | 44 enum Type { Locationbar, Menubar, Personalbar, Scrollbars, Statusbar, Toolba
r }; |
47 | 45 |
48 static BarProp* create(LocalFrame* frame, Type type) | 46 static BarProp* create(LocalFrame* frame, Type type) |
49 { | 47 { |
50 return new BarProp(frame, type); | 48 return new BarProp(frame, type); |
51 } | 49 } |
52 | 50 |
53 bool visible() const; | 51 bool visible() const; |
54 | 52 |
55 DECLARE_VIRTUAL_TRACE(); | 53 DECLARE_VIRTUAL_TRACE(); |
56 | 54 |
57 private: | 55 private: |
58 BarProp(LocalFrame*, Type); | 56 BarProp(LocalFrame*, Type); |
59 Type m_type; | 57 Type m_type; |
60 }; | 58 }; |
61 | 59 |
62 } // namespace blink | 60 } // namespace blink |
63 | 61 |
64 #endif // BarProp_h | 62 #endif // BarProp_h |
OLD | NEW |