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

Unified Diff: components/web_contents_delegate_android/color_chooser_android.h

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: components/web_contents_delegate_android/color_chooser_android.h
diff --git a/components/web_contents_delegate_android/color_chooser_android.h b/components/web_contents_delegate_android/color_chooser_android.h
index 8ab332603a84fa55d1ea5b3178445b3dd8a0a727..eefd85b3ed4f4ebe421c989c631f917b6a596708 100644
--- a/components/web_contents_delegate_android/color_chooser_android.h
+++ b/components/web_contents_delegate_android/color_chooser_android.h
@@ -5,9 +5,11 @@
#ifndef COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_COLOR_CHOOSER_ANDROID_H_
#define COMPONENTS_WEB_CONTENTS_DELEGATE_ANDROID_COLOR_CHOOSER_ANDROID_H_
+#include <vector>
#include "base/android/jni_android.h"
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/strings/string16.h"
#include "content/public/browser/color_chooser.h"
using base::android::AttachCurrentThread;
@@ -15,6 +17,7 @@ using base::android::ScopedJavaLocalRef;
namespace content {
class WebContents;
+struct ColorSuggestion;
}
namespace web_contents_delegate_android {
@@ -23,7 +26,8 @@ namespace web_contents_delegate_android {
class ColorChooserAndroid : public content::ColorChooser {
public:
ColorChooserAndroid(content::WebContents* tab,
- SkColor initial_color);
+ SkColor initial_color,
+ const std::vector<content::ColorSuggestion>& suggestions);
virtual ~ColorChooserAndroid();
void OnColorChosen(JNIEnv* env, jobject obj, jint color);

Powered by Google App Engine
This is Rietveld 408576698