OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 10 matching lines...) Expand all Loading... |
21 */ | 21 */ |
22 | 22 |
23 #ifndef MediaQueryResult_h | 23 #ifndef MediaQueryResult_h |
24 #define MediaQueryResult_h | 24 #define MediaQueryResult_h |
25 | 25 |
26 #include "core/css/MediaQueryExp.h" | 26 #include "core/css/MediaQueryExp.h" |
27 #include "wtf/Noncopyable.h" | 27 #include "wtf/Noncopyable.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class MediaQueryResult : public GarbageCollectedFinalized<MediaQueryResult> { | 31 class MediaQueryResult : public GarbageCollected<MediaQueryResult> { |
32 WTF_MAKE_NONCOPYABLE(MediaQueryResult); | 32 WTF_MAKE_NONCOPYABLE(MediaQueryResult); |
33 public: | 33 public: |
34 MediaQueryResult(const MediaQueryExp& expr, bool result) | 34 MediaQueryResult(const MediaQueryExp& expr, bool result) |
35 : m_expression(&expr) | 35 : m_expression(&expr) |
36 , m_result(result) | 36 , m_result(result) |
37 { | 37 { |
38 } | 38 } |
39 | 39 |
40 DEFINE_INLINE_TRACE() { visitor->trace(m_expression); } | 40 DEFINE_INLINE_TRACE() { visitor->trace(m_expression); } |
41 | 41 |
42 const MediaQueryExp* expression() const | 42 const MediaQueryExp* expression() const |
43 { | 43 { |
44 return m_expression; | 44 return m_expression; |
45 } | 45 } |
46 | 46 |
47 bool result() const { return m_result; } | 47 bool result() const { return m_result; } |
48 | 48 |
49 private: | 49 private: |
50 Member<const MediaQueryExp> m_expression; | 50 Member<const MediaQueryExp> m_expression; |
51 bool m_result; | 51 bool m_result; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif | 56 #endif |
OLD | NEW |