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

Unified Diff: public/web/WebAutocompleteParams.h

Issue 214823008: Add transaction detail params to requestAutocomplete(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: sync Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebAutofillClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebAutocompleteParams.h
diff --git a/public/web/WebColorSuggestion.h b/public/web/WebAutocompleteParams.h
similarity index 79%
copy from public/web/WebColorSuggestion.h
copy to public/web/WebAutocompleteParams.h
index f1b838a53c54ab5b1220fa8000189523bcaa0230..028ba814aa3af4515f3f58d76d444fa7a0549dc9 100644
--- a/public/web/WebColorSuggestion.h
+++ b/public/web/WebAutocompleteParams.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,28 +28,32 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebColorSuggestion_h
-#define WebColorSuggestion_h
+#ifndef WebAutocompleteParams_h
+#define WebAutocompleteParams_h
-#include "public/platform/WebColor.h"
#include "public/platform/WebString.h"
+#if BLINK_IMPLEMENTATION
namespace WebCore {
-struct ColorSuggestion;
+class Dictionary;
}
+#endif
namespace blink {
-struct WebColorSuggestion {
- WebColor color;
- WebString label;
+struct WebAutocompleteParams {
+ double transactionAmount;
+
+ WebString transactionCurrency;
+
+ WebAutocompleteParams()
+ : transactionAmount(0) { }
#if BLINK_IMPLEMENTATION
- WebColorSuggestion(const WebCore::ColorSuggestion&);
- WebColorSuggestion& operator=(const WebCore::ColorSuggestion&);
+ WebAutocompleteParams(const WebCore::Dictionary&);
#endif
};
} // namespace blink
-#endif // WebColorSuggestion_h
+#endif // WebAutocompleteParams_h
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebAutofillClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698