diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-02 23:24:06 +0000 |
commit | f499e170777ed789fbe58f6697e3b5a46fa8deda (patch) | |
tree | 439601b6410c9cb2367644714ced54f1a742f911 /webkit/glue/dom_operations.h | |
parent | 9a0737126e932380b53a2c1dda5364f67871f1f7 (diff) | |
download | chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.zip chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.gz chromium_src-f499e170777ed789fbe58f6697e3b5a46fa8deda.tar.bz2 |
Minor cleanup in webkit/glue:
- created dom_operations_private.h for things that mention WebCore types
that are only needed within webkit/glue.
- moved contents of webkit_glue.h to the right locations.
- moved FilePath::StringType <-> WebString conversion out of glue_util
into webkit_glue since it is part of the public API.
- minimized includes in webkit_glue.h
R=dglazkov
Review URL: http://codereview.chromium.org/27351
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations.h')
-rw-r--r-- | webkit/glue/dom_operations.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/webkit/glue/dom_operations.h b/webkit/glue/dom_operations.h index 61af34e..c6276de 100644 --- a/webkit/glue/dom_operations.h +++ b/webkit/glue/dom_operations.h @@ -16,18 +16,6 @@ struct FormData; class WebFrameImpl; class WebView; -namespace WebCore { -class AtomicString; -class Document; -class Element; -class HTMLLinkElement; -class HTMLMetaElement; -class HTMLOptionElement; -class Node; -class QualifiedName; -class String; -} - // A collection of operations that access the underlying WebKit DOM directly. namespace webkit_glue { @@ -63,43 +51,6 @@ bool FillForm(WebView* view, const FormData& data); void FillPasswordForm(WebView* view, const PasswordFormDomManager::FillData& data); -// If node is an HTML node with a tag name of name it is casted and returned. -// If node is not an HTML node or the tag name is not name NULL is returned. -WebCore::HTMLLinkElement* CastToHTMLLinkElement(WebCore::Node* node); -WebCore::HTMLMetaElement* CastToHTMLMetaElement(WebCore::Node* node); -WebCore::HTMLOptionElement* CastToHTMLOptionElement(WebCore::Node* node); - -// If element is HTML:IFrame or HTML:Frame, then return the WebFrameImpl -// object corresponding to the content frame, otherwise return NULL. -// The parameter is_frame_element indicates whether the input element -// is frame/iframe element or not. -WebFrameImpl* GetWebFrameImplFromElement(WebCore::Element* element, - bool* is_frame_element); - - -// If element is img, script or input type=image, then return its link refer -// to the "src" attribute. If element is link, then return its link refer to -// the "href" attribute. If element is body, table, tr, td, then return its -// link refer to the "background" attribute. If element is blockquote, q, del, -// ins, then return its link refer to the "cite" attribute. Otherwise return -// NULL. -const WebCore::AtomicString* GetSubResourceLinkFromElement( - const WebCore::Element* element); - -// For img, script, iframe, frame element, when attribute name is src, -// for link, a, area element, when attribute name is href, -// for form element, when attribute name is action, -// for input, type=image, when attribute name is src, -// for body, table, tr, td, when attribute name is background, -// for blockquote, q, del, ins, when attribute name is cite, -// we can consider the attribute value has legal link. -bool ElementHasLegalLinkAttribute(const WebCore::Element* element, - const WebCore::QualifiedName& attr_name); - -// Get pointer of WebFrameImpl from webview according to specific URL. -WebFrameImpl* GetWebFrameImplFromWebViewForSpecificURL(WebView* view, - const GURL& page_url); - // Structure for storage the result of getting all savable resource links // for current page. The consumer of the SavableResourcesResult is responsible // for keeping these pointers valid for the lifetime of the |