| 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/dom/ContextLifecycleObserver.h" | 31 #include "core/dom/ContextLifecycleObserver.h" |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/text/WTFString.h" | 33 #include "platform/wtf/text/WTFString.h" |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class LocalFrame; | 37 class LocalFrame; |
| 38 | 38 |
| 39 class StyleMedia final : public GarbageCollected<StyleMedia>, | 39 class StyleMedia final : public GarbageCollected<StyleMedia>, |
| 40 public ContextClient, | 40 public ContextClient, |
| 41 public ScriptWrappable { | 41 public ScriptWrappable { |
| 42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 43 USING_GARBAGE_COLLECTED_MIXIN(StyleMedia); | 43 USING_GARBAGE_COLLECTED_MIXIN(StyleMedia); |
| 44 | 44 |
| 45 public: | 45 public: |
| 46 static StyleMedia* Create(LocalFrame* frame) { return new StyleMedia(frame); } | 46 static StyleMedia* Create(LocalFrame* frame) { return new StyleMedia(frame); } |
| 47 | 47 |
| 48 AtomicString type() const; | 48 AtomicString type() const; |
| 49 bool matchMedium(const String&) const; | 49 bool matchMedium(const String&) const; |
| 50 | 50 |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 explicit StyleMedia(LocalFrame*); | 54 explicit StyleMedia(LocalFrame*); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // StyleMedia_h | 59 #endif // StyleMedia_h |
| OLD | NEW |