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

Side by Side Diff: Source/WebKit/chromium/public/WebElement.h

Issue 11273084: Merge 130847 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 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 | « no previous file | Source/WebKit/chromium/src/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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class WebElement : public WebNode { 44 class WebElement : public WebNode {
45 public: 45 public:
46 WebElement() : WebNode() { } 46 WebElement() : WebNode() { }
47 WebElement(const WebElement& e) : WebNode(e) { } 47 WebElement(const WebElement& e) : WebNode(e) { }
48 48
49 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return *this; } 49 WebElement& operator=(const WebElement& e) { WebNode::assign(e); return *this; }
50 void assign(const WebElement& e) { WebNode::assign(e); } 50 void assign(const WebElement& e) { WebNode::assign(e); }
51 51
52 WEBKIT_EXPORT bool isFormControlElement() const; 52 WEBKIT_EXPORT bool isFormControlElement() const;
53 WEBKIT_EXPORT bool isTextFormControlElement() const; 53 WEBKIT_EXPORT bool isTextFormControlElement() const;
54 // Returns the qualified name, which may contain a prefix and a colon.
54 WEBKIT_EXPORT WebString tagName() const; 55 WEBKIT_EXPORT WebString tagName() const;
56 // Check if this element has the specified qualified name. This function
57 // doesn't makes much sense because we have no ways to check namespace
58 // URI. Do not use this.
55 WEBKIT_EXPORT bool hasTagName(const WebString&) const; 59 WEBKIT_EXPORT bool hasTagName(const WebString&) const;
60 // Check if this element has the specified local tag name, and the HTML
61 // namespace. Tag name matching is case-insensitive.
62 WEBKIT_EXPORT bool hasHTMLTagName(const WebString&) const;
56 WEBKIT_EXPORT bool hasAttribute(const WebString&) const; 63 WEBKIT_EXPORT bool hasAttribute(const WebString&) const;
57 WEBKIT_EXPORT WebString getAttribute(const WebString&) const; 64 WEBKIT_EXPORT WebString getAttribute(const WebString&) const;
58 WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString& value); 65 WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString& value);
59 WEBKIT_EXPORT WebString innerText(); 66 WEBKIT_EXPORT WebString innerText();
60 WEBKIT_EXPORT WebDocument document() const; 67 WEBKIT_EXPORT WebDocument document() const;
61 WEBKIT_EXPORT void requestFullScreen(); 68 WEBKIT_EXPORT void requestFullScreen();
62 WEBKIT_EXPORT WebString attributeLocalName(unsigned index) const; 69 WEBKIT_EXPORT WebString attributeLocalName(unsigned index) const;
63 WEBKIT_EXPORT WebString attributeValue(unsigned index) const; 70 WEBKIT_EXPORT WebString attributeValue(unsigned index) const;
64 WEBKIT_EXPORT unsigned attributeCount() const; 71 WEBKIT_EXPORT unsigned attributeCount() const;
65 72
(...skipping 12 matching lines...) Expand all
78 #if WEBKIT_IMPLEMENTATION 85 #if WEBKIT_IMPLEMENTATION
79 WebElement(const WTF::PassRefPtr<WebCore::Element>&); 86 WebElement(const WTF::PassRefPtr<WebCore::Element>&);
80 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&); 87 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&);
81 operator WTF::PassRefPtr<WebCore::Element>() const; 88 operator WTF::PassRefPtr<WebCore::Element>() const;
82 #endif 89 #endif
83 }; 90 };
84 91
85 } // namespace WebKit 92 } // namespace WebKit
86 93
87 #endif 94 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698