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

Unified Diff: public/web/WebDateTimeSuggestion.h

Issue 23623017: Prepare for date/time input datalist support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: public/web/WebDateTimeSuggestion.h
diff --git a/Source/core/page/PopupOpeningObserver.h b/public/web/WebDateTimeSuggestion.h
similarity index 68%
copy from Source/core/page/PopupOpeningObserver.h
copy to public/web/WebDateTimeSuggestion.h
index 1115bcae833bec6781d6befbac03aedafcf65803..be90075ffbf686b48713e472de5a51da7b4e840b 100644
--- a/Source/core/page/PopupOpeningObserver.h
+++ b/public/web/WebDateTimeSuggestion.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,18 +23,30 @@
* SUCH DAMAGE.
*/
-#ifndef PopupOpeningObserver_h
-#define PopupOpeningObserver_h
+#ifndef WebDateTimeSuggestion_h
+#define WebDateTimeSuggestion_h
-namespace WebCore {
+#include "../platform/WebString.h"
-class PopupOpeningObserver {
-public:
- virtual void willOpenPopup() = 0;
+#if BLINK_IMPLEMENTATION
+namespace WebCore { struct DateTimeSuggestion; }
+#endif
+
+namespace WebKit {
tkent 2013/11/07 01:43:10 WebKit -> blink
+
+struct WebDateTimeSuggestion {
+ double value;
tkent 2013/11/07 01:43:10 Please add a comment about what this double value
+ WebString localizedValue;
+ WebString label;
-protected:
- virtual ~PopupOpeningObserver() { }
+ WebDateTimeSuggestion() { }
+
+#if BLINK_IMPLEMENTATION
+ BLINK_COMMON_EXPORT WebDateTimeSuggestion(const WebCore::DateTimeSuggestion&);
+ BLINK_COMMON_EXPORT WebDateTimeSuggestion& operator=(const WebCore::DateTimeSuggestion&);
+#endif
};
-}
+} // namespace WebKit
tkent 2013/11/07 01:43:10 WebKit -> blink
+
#endif
« public/web/WebDateTimeChooserParams.h ('K') | « public/web/WebDateTimeChooserParams.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698