OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef HTMLImportTreeRoot_h |
| 6 #define HTMLImportTreeRoot_h |
| 7 |
| 8 #include "core/html/imports/HTMLImport.h" |
| 9 #include "platform/Timer.h" |
| 10 #include "wtf/PassOwnPtr.h" |
| 11 |
| 12 namespace WebCore { |
| 13 |
| 14 class HTMLImportTreeRoot : public HTMLImport { |
| 15 public: |
| 16 static PassOwnPtr<HTMLImportTreeRoot> create(Document*); |
| 17 |
| 18 // HTMLImport |
| 19 virtual Document* document() const OVERRIDE; |
| 20 virtual bool isDone() const OVERRIDE; |
| 21 virtual void stateWillChange() OVERRIDE; |
| 22 virtual void stateDidChange() OVERRIDE; |
| 23 |
| 24 void scheduleRecalcState(); |
| 25 |
| 26 private: |
| 27 explicit HTMLImportTreeRoot(Document*); |
| 28 |
| 29 void recalcTimerFired(Timer<HTMLImportTreeRoot>*); |
| 30 |
| 31 Document* m_document; |
| 32 Timer<HTMLImportTreeRoot> m_recalcTimer; |
| 33 }; |
| 34 |
| 35 DEFINE_TYPE_CASTS(HTMLImportTreeRoot, HTMLImport, import, import->isRoot(), impo
rt.isRoot()); |
| 36 |
| 37 } |
| 38 |
| 39 #endif |
OLD | NEW |