Index: Source/web/WebDateTimeSuggestion.cpp |
diff --git a/Source/core/page/PopupOpeningObserver.h b/Source/web/WebDateTimeSuggestion.cpp |
similarity index 67% |
copy from Source/core/page/PopupOpeningObserver.h |
copy to Source/web/WebDateTimeSuggestion.cpp |
index 1115bcae833bec6781d6befbac03aedafcf65803..a2cd0af2c313c9bc468bc11a7bac6f7db7ff80ec 100644 |
--- a/Source/core/page/PopupOpeningObserver.h |
+++ b/Source/web/WebDateTimeSuggestion.cpp |
@@ -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,26 @@ |
* SUCH DAMAGE. |
*/ |
-#ifndef PopupOpeningObserver_h |
-#define PopupOpeningObserver_h |
+#include "config.h" |
+#include "WebDateTimeSuggestion.h" |
-namespace WebCore { |
+#include "platform/DateTimeChooser.h" |
-class PopupOpeningObserver { |
-public: |
- virtual void willOpenPopup() = 0; |
+namespace WebKit { |
tkent
2013/11/07 01:43:10
should be |namespace blink {|
|
-protected: |
- virtual ~PopupOpeningObserver() { } |
-}; |
+WebDateTimeSuggestion::WebDateTimeSuggestion(const WebCore::DateTimeSuggestion& suggestion) |
+ : value(suggestion.value) |
+ , localizedValue(suggestion.localizedValue) |
+ , label(suggestion.label) |
+{ |
+} |
+WebDateTimeSuggestion& WebDateTimeSuggestion::operator=(const WebCore::DateTimeSuggestion& suggestion) |
+{ |
+ value = suggestion.value; |
+ localizedValue = suggestion.localizedValue; |
+ label = suggestion.label; |
+ return *this; |
} |
-#endif |
+ |
+} // namespace WebKit |
tkent
2013/11/07 01:43:10
Ditto.
|