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

Side by Side Diff: sky/engine/public/web/WebElement.h

Issue 696903002: Remove a lot of API surface from Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « sky/engine/core/html/parser/HTMLConstructionSite.cpp ('k') | sky/engine/web/WebElement.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Returns the qualified name, which may contain a prefix and a colon. 51 // Returns the qualified name, which may contain a prefix and a colon.
52 BLINK_EXPORT WebString tagName() const; 52 BLINK_EXPORT WebString tagName() const;
53 // Check if this element has the specified local tag name, and the HTML 53 // Check if this element has the specified local tag name, and the HTML
54 // namespace. Tag name matching is case-insensitive. 54 // namespace. Tag name matching is case-insensitive.
55 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const; 55 BLINK_EXPORT bool hasHTMLTagName(const WebString&) const;
56 BLINK_EXPORT bool hasAttribute(const WebString&) const; 56 BLINK_EXPORT bool hasAttribute(const WebString&) const;
57 BLINK_EXPORT void removeAttribute(const WebString&); 57 BLINK_EXPORT void removeAttribute(const WebString&);
58 BLINK_EXPORT WebString getAttribute(const WebString&) const; 58 BLINK_EXPORT WebString getAttribute(const WebString&) const;
59 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value ); 59 BLINK_EXPORT bool setAttribute(const WebString& name, const WebString& value );
60 BLINK_EXPORT WebString innerText();
61 BLINK_EXPORT void requestFullScreen(); 60 BLINK_EXPORT void requestFullScreen();
62 BLINK_EXPORT WebString attributeLocalName(unsigned index) const; 61 BLINK_EXPORT WebString attributeLocalName(unsigned index) const;
63 BLINK_EXPORT WebString attributeValue(unsigned index) const; 62 BLINK_EXPORT WebString attributeValue(unsigned index) const;
64 BLINK_EXPORT unsigned attributeCount() const; 63 BLINK_EXPORT unsigned attributeCount() const;
65 BLINK_EXPORT WebNode shadowRoot() const; 64 BLINK_EXPORT WebNode shadowRoot() const;
66 65
67 // Returns the language code specified for this element. This attribute 66 // Returns the language code specified for this element. This attribute
68 // is inherited, so the returned value is drawn from the closest parent 67 // is inherited, so the returned value is drawn from the closest parent
69 // element that has the lang attribute set, or from the HTTP 68 // element that has the lang attribute set, or from the HTTP
70 // "Content-Language" header as a fallback. 69 // "Content-Language" header as a fallback.
71 BLINK_EXPORT WebString computeInheritedLanguage() const; 70 BLINK_EXPORT WebString computeInheritedLanguage() const;
72 71
73 // Returns the image contents of this element or a null WebImage 72 // Returns the image contents of this element or a null WebImage
74 // if there isn't any. 73 // if there isn't any.
75 BLINK_EXPORT WebImage imageContents(); 74 BLINK_EXPORT WebImage imageContents();
76 75
77 #if BLINK_IMPLEMENTATION 76 #if BLINK_IMPLEMENTATION
78 WebElement(const PassRefPtr<Element>&); 77 WebElement(const PassRefPtr<Element>&);
79 WebElement& operator=(const PassRefPtr<Element>&); 78 WebElement& operator=(const PassRefPtr<Element>&);
80 operator PassRefPtr<Element>() const; 79 operator PassRefPtr<Element>() const;
81 #endif 80 #endif
82 }; 81 };
83 82
84 } // namespace blink 83 } // namespace blink
85 84
86 #endif 85 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/html/parser/HTMLConstructionSite.cpp ('k') | sky/engine/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698