OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
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 12 matching lines...) Expand all Loading... |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef StyleMedia_h | 27 #ifndef StyleMedia_h |
28 #define StyleMedia_h | 28 #define StyleMedia_h |
29 | 29 |
30 #include "bindings/core/v8/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
31 #include "core/frame/DOMWindowProperty.h" | 31 #include "core/frame/DOMWindowProperty.h" |
32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
33 #include "wtf/RefCounted.h" | |
34 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
35 | 34 |
36 namespace blink { | 35 namespace blink { |
37 | 36 |
38 class LocalFrame; | 37 class LocalFrame; |
39 | 38 |
40 class StyleMedia final : public GarbageCollected<StyleMedia>, public DOMWindowPr
operty, public ScriptWrappable { | 39 class StyleMedia final : public GarbageCollected<StyleMedia>, public DOMWindowPr
operty, public ScriptWrappable { |
41 DEFINE_WRAPPERTYPEINFO(); | 40 DEFINE_WRAPPERTYPEINFO(); |
42 USING_GARBAGE_COLLECTED_MIXIN(StyleMedia); | 41 USING_GARBAGE_COLLECTED_MIXIN(StyleMedia); |
43 public: | 42 public: |
44 static StyleMedia* create(LocalFrame* frame) { return new StyleMedia(frame);
} | 43 static StyleMedia* create(LocalFrame* frame) { return new StyleMedia(frame);
} |
45 | 44 |
46 AtomicString type() const; | 45 AtomicString type() const; |
47 bool matchMedium(const String&) const; | 46 bool matchMedium(const String&) const; |
48 | 47 |
49 DECLARE_VIRTUAL_TRACE(); | 48 DECLARE_VIRTUAL_TRACE(); |
50 | 49 |
51 private: | 50 private: |
52 explicit StyleMedia(LocalFrame*); | 51 explicit StyleMedia(LocalFrame*); |
53 }; | 52 }; |
54 | 53 |
55 } // namespace blink | 54 } // namespace blink |
56 | 55 |
57 #endif // StyleMedia_h | 56 #endif // StyleMedia_h |
OLD | NEW |