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

Unified Diff: public/web/WebColorSuggestion.h

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebColorSuggestion.h
diff --git a/Source/web/WebDOMProgressEvent.cpp b/public/web/WebColorSuggestion.h
similarity index 80%
copy from Source/web/WebDOMProgressEvent.cpp
copy to public/web/WebColorSuggestion.h
index 0c8648eb3cb6aff9df1f39ea8ab0d5b7f956c04d..f1b838a53c54ab5b1220fa8000189523bcaa0230 100644
--- a/Source/web/WebDOMProgressEvent.cpp
+++ b/public/web/WebColorSuggestion.h
@@ -28,21 +28,28 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "WebDOMProgressEvent.h"
+#ifndef WebColorSuggestion_h
+#define WebColorSuggestion_h
-#include "core/events/ProgressEvent.h"
+#include "public/platform/WebColor.h"
#include "public/platform/WebString.h"
-using namespace WebCore;
+namespace WebCore {
+struct ColorSuggestion;
+}
namespace blink {
-WebDOMProgressEvent::WebDOMProgressEvent(const WebString& type, bool lengthIsComputable, unsigned long long loaded, unsigned long long total)
- : WebDOMEvent(ProgressEvent::create(type, lengthIsComputable, loaded, total))
-{
- ASSERT(m_private.get());
- ASSERT(isProgressEvent());
-}
+struct WebColorSuggestion {
+ WebColor color;
+ WebString label;
+
+#if BLINK_IMPLEMENTATION
+ WebColorSuggestion(const WebCore::ColorSuggestion&);
+ WebColorSuggestion& operator=(const WebCore::ColorSuggestion&);
+#endif
+};
} // namespace blink
+
+#endif // WebColorSuggestion_h
« no previous file with comments | « Source/web/web.gypi ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698