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

Side by Side Diff: sky/engine/core/dom/Element.h

Issue 1017593005: Add a basic custom painting facility to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing files Created 5 years, 9 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
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) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ClientRect; 44 class ClientRect;
45 class ClientRectList; 45 class ClientRectList;
46 class DOMTokenList; 46 class DOMTokenList;
47 class Document; 47 class Document;
48 class ElementRareData; 48 class ElementRareData;
49 class ElementShadow; 49 class ElementShadow;
50 class ExceptionState; 50 class ExceptionState;
51 class Image; 51 class Image;
52 class IntSize; 52 class IntSize;
53 class MutableStylePropertySet; 53 class MutableStylePropertySet;
54 class PaintingCallback;
54 class PropertySetCSSStyleDeclaration; 55 class PropertySetCSSStyleDeclaration;
55 class PseudoElement; 56 class PseudoElement;
56 class ShadowRoot; 57 class ShadowRoot;
57 class StylePropertySet; 58 class StylePropertySet;
58 59
59 enum SpellcheckAttributeState { 60 enum SpellcheckAttributeState {
60 SpellcheckAttributeTrue, 61 SpellcheckAttributeTrue,
61 SpellcheckAttributeFalse, 62 SpellcheckAttributeFalse,
62 SpellcheckAttributeDefault 63 SpellcheckAttributeDefault
63 }; 64 };
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 120
120 Element* offsetParent(); 121 Element* offsetParent();
121 int clientLeft(); 122 int clientLeft();
122 int clientTop(); 123 int clientTop();
123 int clientWidth(); 124 int clientWidth();
124 int clientHeight(); 125 int clientHeight();
125 126
126 PassRefPtr<ClientRectList> getClientRects(); 127 PassRefPtr<ClientRectList> getClientRects();
127 PassRefPtr<ClientRect> getBoundingClientRect(); 128 PassRefPtr<ClientRect> getBoundingClientRect();
128 129
130 void requestPaint(PassOwnPtr<PaintingCallback>);
131
129 virtual void didMoveToNewDocument(Document&) override; 132 virtual void didMoveToNewDocument(Document&) override;
130 133
131 CSSStyleDeclaration* style(); 134 CSSStyleDeclaration* style();
132 135
133 const QualifiedName& tagQName() const { return m_tagName; } 136 const QualifiedName& tagQName() const { return m_tagName; }
134 String tagName() const { return nodeName(); } 137 String tagName() const { return nodeName(); }
135 138
136 bool hasTagName(const QualifiedName& tagName) const { return m_tagName == ta gName; } 139 bool hasTagName(const QualifiedName& tagName) const { return m_tagName == ta gName; }
137 140
138 // A fast function for checking the local name against another atomic string . 141 // A fast function for checking the local name against another atomic string .
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 static PassRefPtr<T> create(const QualifiedName&, Document&) 556 static PassRefPtr<T> create(const QualifiedName&, Document&)
554 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 557 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
555 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 558 PassRefPtr<T> T::create(const QualifiedName& tagName, Document& document) \
556 { \ 559 { \
557 return adoptRef(new T(tagName, document)); \ 560 return adoptRef(new T(tagName, document)); \
558 } 561 }
559 562
560 } // namespace 563 } // namespace
561 564
562 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_ 565 #endif // SKY_ENGINE_CORE_DOM_ELEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698