| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MediaValuesDynamic_h | 5 #ifndef MediaValuesDynamic_h |
| 6 #define MediaValuesDynamic_h | 6 #define MediaValuesDynamic_h |
| 7 | 7 |
| 8 #include "core/css/MediaValues.h" | 8 #include "sky/engine/core/css/MediaValues.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class Document; | 12 class Document; |
| 13 | 13 |
| 14 class MediaValuesDynamic final : public MediaValues { | 14 class MediaValuesDynamic final : public MediaValues { |
| 15 public: | 15 public: |
| 16 static PassRefPtr<MediaValues> create(Document&); | 16 static PassRefPtr<MediaValues> create(Document&); |
| 17 static PassRefPtr<MediaValues> create(LocalFrame*); | 17 static PassRefPtr<MediaValues> create(LocalFrame*); |
| 18 virtual PassRefPtr<MediaValues> copy() const override; | 18 virtual PassRefPtr<MediaValues> copy() const override; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 // This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluato
r, and | 43 // This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluato
r, and |
| 44 // MediaQueryEvaluator is reset on |Document::detach|. | 44 // MediaQueryEvaluator is reset on |Document::detach|. |
| 45 // FIXME: Oilpan: This raw ptr should be changed to a Member when LocalFrame
is migrated to the heap. | 45 // FIXME: Oilpan: This raw ptr should be changed to a Member when LocalFrame
is migrated to the heap. |
| 46 LocalFrame* m_frame; | 46 LocalFrame* m_frame; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace | 49 } // namespace |
| 50 | 50 |
| 51 #endif // MediaValuesDynamic_h | 51 #endif // MediaValuesDynamic_h |
| OLD | NEW |