Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: Source/core/html/imports/HTMLImportTreeRoot.h

Issue 301803002: Extract tree root responsibility out of HTMLImportsController. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportChild.cpp ('k') | Source/core/html/imports/HTMLImportTreeRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698