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

Side by Side Diff: Source/core/dom/NamedFlow.h

Issue 38943008: Explore the possibility of implementing the CSS Region interface. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
OLDNEW
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 20 matching lines...) Expand all
31 #define NamedFlow_h 31 #define NamedFlow_h
32 32
33 #include "bindings/v8/ScriptWrappable.h" 33 #include "bindings/v8/ScriptWrappable.h"
34 #include "core/events/EventTarget.h" 34 #include "core/events/EventTarget.h"
35 #include "wtf/RefCounted.h" 35 #include "wtf/RefCounted.h"
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 CSSRegion;
41 class Document; 42 class Document;
42 class NamedFlowCollection; 43 class NamedFlowCollection;
43 class Node; 44 class Node;
44 class NodeList; 45 class NodeList;
45 class RenderNamedFlowThread; 46 class RenderNamedFlowThread;
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<RefPtr<CSSRegion>> getRegionsByContent(Node*);
59 PassRefPtr<NodeList> getRegions(); 60 Vector<RefPtr<CSSRegion>> getRegions();
abarth-chromium 2013/10/25 16:56:20 We still support C++03
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698