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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameletElement.h

Issue 1531273003: Add prototype accessors to <framelet>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFrameletElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 23 matching lines...) Expand all
34 DEFINE_WRAPPERTYPEINFO(); 34 DEFINE_WRAPPERTYPEINFO();
35 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameletElement); 35 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLFrameletElement);
36 36
37 public: 37 public:
38 DECLARE_NODE_FACTORY(HTMLFrameletElement); 38 DECLARE_NODE_FACTORY(HTMLFrameletElement);
39 ~HTMLFrameletElement() override; 39 ~HTMLFrameletElement() override;
40 40
41 BLINK_EXPORT void setWebLayer(WebLayer*); 41 BLINK_EXPORT void setWebLayer(WebLayer*);
42 WebLayer* webLayer() { return m_webLayer; } 42 WebLayer* webLayer() { return m_webLayer; }
43 43
44 WTF::String bytesUsed() const { return WTF::String::number(m_bytesUsed); }
45 WTF::String trackBytesUsed() const { return m_trackBytesUsed ? WTF::String(" true") : WTF::String("false"); }
46 void setTrackBytesUsed(const WTF::String& val);
47
44 // Node overrides 48 // Node overrides
45 bool isFrameletElement() const override { return true; } 49 bool isFrameletElement() const override { return true; }
46 50
47 private: 51 private:
48 explicit HTMLFrameletElement(Document&); 52 explicit HTMLFrameletElement(Document&);
49 53
50 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override; 54 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS tring&) override;
51 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override; 55 void collectStyleForPresentationAttribute(const QualifiedName&, const Atomic String&, MutableStylePropertySet*) override;
52 56
53 bool layoutObjectIsNeeded(const ComputedStyle&) override; 57 bool layoutObjectIsNeeded(const ComputedStyle&) override;
54 LayoutObject* createLayoutObject(const ComputedStyle&) override; 58 LayoutObject* createLayoutObject(const ComputedStyle&) override;
55 59
56 bool isInteractiveContent() const override { return true; } 60 bool isInteractiveContent() const override { return true; }
57 61
58 Node::InsertionNotificationRequest insertedInto(ContainerNode* insertionPoin t) override; 62 Node::InsertionNotificationRequest insertedInto(ContainerNode* insertionPoin t) override;
59 void didNotifySubtreeInsertionsToDocument() final; 63 void didNotifySubtreeInsertionsToDocument() final;
60 64
61 WebLayer* m_webLayer; 65 WebLayer* m_webLayer;
66 int m_bytesUsed;
67 bool m_trackBytesUsed;
62 }; 68 };
63 69
64 } // namespace blink 70 } // namespace blink
65 71
66 #endif // HTMLFrameletElement_h 72 #endif // HTMLFrameletElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLFrameletElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698