diff options
author | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:57:35 +0000 |
---|---|---|
committer | petersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-23 21:57:35 +0000 |
commit | 0c3abea91971ae0e2289da9c43ad359b716dd3aa (patch) | |
tree | fcd4bfe6772113cdbb959e7f650cd8c3ba59f9f1 /webkit | |
parent | 049d4ee048d1f09b0f77c23c5060c5ea5504a00b (diff) | |
download | chromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.zip chromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.tar.gz chromium_src-0c3abea91971ae0e2289da9c43ad359b716dd3aa.tar.bz2 |
A new struct AutofillForm for use as temporary data storage for communication between functions et cetera.
Review URL: http://codereview.chromium.org/8040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/build/glue/glue.vcproj | 22 | ||||
-rw-r--r-- | webkit/glue/autofill_form.h | 30 |
2 files changed, 35 insertions, 17 deletions
diff --git a/webkit/build/glue/glue.vcproj b/webkit/build/glue/glue.vcproj index 8524d3c..ce35495 100644 --- a/webkit/build/glue/glue.vcproj +++ b/webkit/build/glue/glue.vcproj @@ -125,6 +125,10 @@ Name="API" > <File + RelativePath="..\..\glue\autofill_form.h" + > + </File> + <File RelativePath="..\..\glue\cache_manager.h" > </File> @@ -369,14 +373,6 @@ > </File> <File - RelativePath="..\..\glue\glue_accessibility.cc" - > - </File> - <File - RelativePath="..\..\glue\glue_accessibility.h" - > - </File> - <File RelativePath="..\..\glue\glue_serialize.cc" > </File> @@ -461,7 +457,7 @@ > </File> <File - RelativePath="..\..\glue\resource_handle_impl.cc" + RelativePath="..\..\glue\resource_handle_win.cc" > </File> <File @@ -481,14 +477,6 @@ > </File> <File - RelativePath="..\..\glue\stacking_order_iterator.cc" - > - </File> - <File - RelativePath="..\..\glue\stacking_order_iterator.h" - > - </File> - <File RelativePath="..\..\glue\webcursor.cc" > </File> diff --git a/webkit/glue/autofill_form.h b/webkit/glue/autofill_form.h new file mode 100644 index 0000000..a817137 --- /dev/null +++ b/webkit/glue/autofill_form.h @@ -0,0 +1,30 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_GLUE_AUTOFILL_FORM_H_ +#define WEBKIT_GLUE_AUTOFILL_FORM_H_ + +#include <string> +#include <vector> + +// The AutofillForm struct represents a single HTML form together with the +// values entered in the fields. + +struct AutofillForm { + // Struct for storing name/value pairs. + struct Element { + Element() {} + Element(const std::wstring& in_name, const std::wstring& in_value) { + name = in_name; + value = in_value; + } + std::wstring name; + std::wstring value; + }; + + // A vector of all the input fields in the form. + std::vector<Element> elements; +}; + +#endif // WEBKIT_GLUE_AUTOFILL_FORM_H_ |