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

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

Issue 50038: Fix for autofill bug 8627 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/dom_operations.cc » ('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-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_H__ 5 #ifndef WEBKIT_GLUE_DOM_OPERATIONS_H__
6 #define WEBKIT_GLUE_DOM_OPERATIONS_H__ 6 #define WEBKIT_GLUE_DOM_OPERATIONS_H__
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 10
11 #include "base/gfx/size.h" 11 #include "base/gfx/size.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "webkit/glue/password_form_dom_manager.h" 13 #include "webkit/glue/password_form_dom_manager.h"
14 14
15 namespace WebCore {
16 class Element;
17 class Node;
18 }
19
15 struct FormData; 20 struct FormData;
16 class WebFrameImpl; 21 class WebFrameImpl;
17 class WebView; 22 class WebView;
18 23
19 // A collection of operations that access the underlying WebKit DOM directly. 24 // A collection of operations that access the underlying WebKit DOM directly.
20 namespace webkit_glue { 25 namespace webkit_glue {
21 26
22 // Automatically fill a form to upload a file. 27 // Automatically fill a form to upload a file.
23 // 28 //
24 // Look in all frames for a form with the name or ID |form_name|. If the form is 29 // Look in all frames for a form with the name or ID |form_name|. If the form is
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const std::string& element_id); 144 const std::string& element_id);
140 145
141 // Returns true if the element with |element_id| as its id has autocomplete 146 // Returns true if the element with |element_id| as its id has autocomplete
142 // on. 147 // on.
143 bool ElementDoesAutoCompleteForElementWithId(WebView* view, 148 bool ElementDoesAutoCompleteForElementWithId(WebView* view,
144 const std::string& element_id); 149 const std::string& element_id);
145 150
146 // Returns the number of animations currently running. 151 // Returns the number of animations currently running.
147 int NumberOfActiveAnimations(WebView* view); 152 int NumberOfActiveAnimations(WebView* view);
148 153
154 // Returns the passed element/node casted to an HTMLInputElement if it is one,
155 // NULL if it is not an HTMLInputElement.
156 WebCore::HTMLInputElement* ElementToHTMLInputElement(WebCore::Element* element);
157 WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node);
158
149 } // namespace webkit_glue 159 } // namespace webkit_glue
150 160
151 #endif // WEBKIT_GLUE_DOM_OPERATIONS_H__ 161 #endif // WEBKIT_GLUE_DOM_OPERATIONS_H__
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/dom_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698