Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 #include "wtf/RefPtr.h" | 36 #include "wtf/RefPtr.h" |
| 37 #include "wtf/text/AtomicString.h" | 37 #include "wtf/text/AtomicString.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class Document; | 41 class Document; |
| 42 class NamedFlowCollection; | 42 class NamedFlowCollection; |
| 43 class Node; | 43 class Node; |
| 44 class NodeList; | 44 class NodeList; |
| 45 class RenderNamedFlowThread; | 45 class RenderNamedFlowThread; |
| 46 class RenderRegion; | |
|
abarth-chromium
2013/11/14 07:55:15
These seem like bad dependencies. The DOM shouldn
abucur
2013/11/15 07:15:14
I had in mind creating a DOM equivalent for region
| |
| 46 class ExecutionContext; | 47 class ExecutionContext; |
| 47 | 48 |
| 48 class NamedFlow : public RefCounted<NamedFlow>, public ScriptWrappable, public E ventTargetWithInlineData { | 49 class NamedFlow : public RefCounted<NamedFlow>, public ScriptWrappable, public E ventTargetWithInlineData { |
| 49 REFCOUNTED_EVENT_TARGET(NamedFlow); | 50 REFCOUNTED_EVENT_TARGET(NamedFlow); |
| 50 public: | 51 public: |
| 51 static PassRefPtr<NamedFlow> create(PassRefPtr<NamedFlowCollection> manager, const AtomicString& flowThreadName); | 52 static PassRefPtr<NamedFlow> create(PassRefPtr<NamedFlowCollection> manager, const AtomicString& flowThreadName); |
| 52 | 53 |
| 53 ~NamedFlow(); | 54 ~NamedFlow(); |
| 54 | 55 |
| 55 const AtomicString& name() const; | 56 const AtomicString& name() const; |
| 56 bool overset() const; | 57 bool overset() const; |
| 57 int firstEmptyRegionIndex() const; | 58 int firstEmptyRegionIndex() const; |
| 58 PassRefPtr<NodeList> getRegionsByContent(Node*); | 59 Vector<const RenderRegion*> getRegionsByContent(Node*); |
| 59 PassRefPtr<NodeList> getRegions(); | 60 Vector<const RenderRegion*> getRegions(); |
| 60 PassRefPtr<NodeList> getContent(); | 61 PassRefPtr<NodeList> getContent(); |
| 61 | 62 |
| 62 virtual const AtomicString& interfaceName() const OVERRIDE; | 63 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 63 virtual ExecutionContext* executionContext() const OVERRIDE; | 64 virtual ExecutionContext* executionContext() const OVERRIDE; |
| 64 | 65 |
| 65 // This function is called from the JS binding code to determine if the Name dFlow object is reachable or not. | 66 // This function is called from the JS binding code to determine if the Name dFlow object is reachable or not. |
| 66 // If the object has listeners, the object should only be discarded if the p arent Document is not reachable. | 67 // If the object has listeners, the object should only be discarded if the p arent Document is not reachable. |
| 67 Node* ownerNode() const; | 68 Node* ownerNode() const; |
| 68 | 69 |
| 69 void setRenderer(RenderNamedFlowThread* parentFlowThread); | 70 void setRenderer(RenderNamedFlowThread* parentFlowThread); |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 84 // The name of the flow thread as specified in CSS. | 85 // The name of the flow thread as specified in CSS. |
| 85 AtomicString m_flowThreadName; | 86 AtomicString m_flowThreadName; |
| 86 | 87 |
| 87 RefPtr<NamedFlowCollection> m_flowManager; | 88 RefPtr<NamedFlowCollection> m_flowManager; |
| 88 RenderNamedFlowThread* m_parentFlowThread; | 89 RenderNamedFlowThread* m_parentFlowThread; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } | 92 } |
| 92 | 93 |
| 93 #endif | 94 #endif |
| OLD | NEW |