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

Unified Diff: content/common/view_messages.h

Issue 23623019: Support datalist for date/time input types on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 605e465b065337e3b8e863edbbdaedda2c80bbfa..b9311add91554c9fd99d580a2a4daaf1f938372f 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -15,6 +15,7 @@
#include "content/common/content_export.h"
#include "content/common/content_param_traits.h"
#include "content/common/cookie_data.h"
+#include "content/common/date_time_suggestion.h"
#include "content/common/navigation_gesture.h"
#include "content/common/pepper_renderer_instance_data.h"
#include "content/common/view_message_enums.h"
@@ -159,6 +160,12 @@ IPC_STRUCT_TRAITS_BEGIN(content::MenuItem)
IPC_STRUCT_TRAITS_MEMBER(submenu)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::DateTimeSuggestion)
+ IPC_STRUCT_TRAITS_MEMBER(value)
+ IPC_STRUCT_TRAITS_MEMBER(localized_value)
+ IPC_STRUCT_TRAITS_MEMBER(label)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams)
IPC_STRUCT_TRAITS_MEMBER(media_type)
IPC_STRUCT_TRAITS_MEMBER(x)
@@ -393,18 +400,12 @@ IPC_STRUCT_BEGIN(ViewHostMsg_CreateWorker_Params)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_DateTimeDialogValue_Params)
- IPC_STRUCT_MEMBER(int, dialog_type)
- IPC_STRUCT_MEMBER(int, year)
- IPC_STRUCT_MEMBER(int, month)
- IPC_STRUCT_MEMBER(int, day)
- IPC_STRUCT_MEMBER(int, hour)
- IPC_STRUCT_MEMBER(int, minute)
- IPC_STRUCT_MEMBER(int, second)
- IPC_STRUCT_MEMBER(int, milli)
- IPC_STRUCT_MEMBER(int, week)
+ IPC_STRUCT_MEMBER(ui::TextInputType, dialog_type)
+ IPC_STRUCT_MEMBER(double, dialog_value)
IPC_STRUCT_MEMBER(double, minimum)
IPC_STRUCT_MEMBER(double, maximum)
IPC_STRUCT_MEMBER(double, step)
+ IPC_STRUCT_MEMBER(std::vector<content::DateTimeSuggestion>, suggestions)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
@@ -970,7 +971,7 @@ IPC_MESSAGE_ROUTED1(ViewMsg_SetBrowserRenderingStats,
// Replaces a date time input field.
IPC_MESSAGE_ROUTED1(ViewMsg_ReplaceDateTime,
- ViewHostMsg_DateTimeDialogValue_Params /* value */)
+ double /* dialog_value */)
// Copies the image at location x, y to the clipboard (if there indeed is an
// image at that location).

Powered by Google App Engine
This is Rietveld 408576698