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

Side by Side Diff: webkit/glue/dom_operations_private.h

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/dom_operations.cc ('k') | webkit/glue/dom_serializer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_ 5 #ifndef WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_
6 #define WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_ 6 #define WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_
7 7
8 namespace WebCore { 8 namespace WebCore {
9 class AtomicString; 9 class AtomicString;
10 class Document; 10 class Document;
11 class Element; 11 class Element;
12 class Node; 12 class Node;
13 class QualifiedName; 13 class QualifiedName;
14 class String; 14 class String;
15 } 15 }
16 16
17 namespace WebKit { 17 namespace WebKit {
18 class WebFrameImpl;
18 class WebView; 19 class WebView;
19 } 20 }
20 21
21 class GURL; 22 class GURL;
22 class WebFrameImpl;
23 23
24 namespace webkit_glue { 24 namespace webkit_glue {
25 25
26 // If element is HTML:IFrame or HTML:Frame, then return the WebFrameImpl 26 // If element is HTML:IFrame or HTML:Frame, then return the WebFrameImpl
27 // object corresponding to the content frame, otherwise return NULL. 27 // object corresponding to the content frame, otherwise return NULL.
28 // The parameter is_frame_element indicates whether the input element 28 // The parameter is_frame_element indicates whether the input element
29 // is frame/iframe element or not. 29 // is frame/iframe element or not.
30 WebFrameImpl* GetWebFrameImplFromElement(WebCore::Element* element, 30 WebKit::WebFrameImpl* GetWebFrameImplFromElement(WebCore::Element* element,
31 bool* is_frame_element); 31 bool* is_frame_element);
32 32
33 // If element is img, script or input type=image, then return its link refer 33 // If element is img, script or input type=image, then return its link refer
34 // to the "src" attribute. If element is link, then return its link refer to 34 // to the "src" attribute. If element is link, then return its link refer to
35 // the "href" attribute. If element is body, table, tr, td, then return its 35 // the "href" attribute. If element is body, table, tr, td, then return its
36 // link refer to the "background" attribute. If element is blockquote, q, del, 36 // link refer to the "background" attribute. If element is blockquote, q, del,
37 // ins, then return its link refer to the "cite" attribute. Otherwise return 37 // ins, then return its link refer to the "cite" attribute. Otherwise return
38 // NULL. 38 // NULL.
39 const WebCore::AtomicString* GetSubResourceLinkFromElement( 39 const WebCore::AtomicString* GetSubResourceLinkFromElement(
40 const WebCore::Element* element); 40 const WebCore::Element* element);
41 41
42 // For img, script, iframe, frame element, when attribute name is src, 42 // For img, script, iframe, frame element, when attribute name is src,
43 // for link, a, area element, when attribute name is href, 43 // for link, a, area element, when attribute name is href,
44 // for form element, when attribute name is action, 44 // for form element, when attribute name is action,
45 // for input, type=image, when attribute name is src, 45 // for input, type=image, when attribute name is src,
46 // for body, table, tr, td, when attribute name is background, 46 // for body, table, tr, td, when attribute name is background,
47 // for blockquote, q, del, ins, when attribute name is cite, 47 // for blockquote, q, del, ins, when attribute name is cite,
48 // we can consider the attribute value has legal link. 48 // we can consider the attribute value has legal link.
49 bool ElementHasLegalLinkAttribute(const WebCore::Element* element, 49 bool ElementHasLegalLinkAttribute(const WebCore::Element* element,
50 const WebCore::QualifiedName& attr_name); 50 const WebCore::QualifiedName& attr_name);
51 51
52 // Get pointer of WebFrameImpl from webview according to specific URL. 52 // Get pointer of WebFrameImpl from webview according to specific URL.
53 WebFrameImpl* GetWebFrameImplFromWebViewForSpecificURL(WebKit::WebView* view, 53 WebKit::WebFrameImpl* GetWebFrameImplFromWebViewForSpecificURL(
54 const GURL& page_url); 54 WebKit::WebView* view, const GURL& page_url);
55 55
56 } // namespace webkit_glue 56 } // namespace webkit_glue
57 57
58 #endif // WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_ 58 #endif // WEBKIT_GLUE_DOM_OPERATIONS_PRIVATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/dom_operations.cc ('k') | webkit/glue/dom_serializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698