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

Unified Diff: content/components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 11316153: implement input type=color for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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: content/components/web_contents_delegate_android/web_contents_delegate_android.cc
diff --git a/content/components/web_contents_delegate_android/web_contents_delegate_android.cc b/content/components/web_contents_delegate_android/web_contents_delegate_android.cc
index e212b2c7bbcabc9e091d589a64b903ffe192593e..bb266de59db9eb978e98fcd0abf83997750e4f5b 100644
--- a/content/components/web_contents_delegate_android/web_contents_delegate_android.cc
+++ b/content/components/web_contents_delegate_android/web_contents_delegate_android.cc
@@ -8,6 +8,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
+#include "content/components/web_contents_delegate_android/color_chooser_android.h"
#include "content/public/browser/android/content_view_core.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/invalidate_type.h"
@@ -45,6 +46,14 @@ WebContentsDelegateAndroid::GetJavaDelegate(JNIEnv* env) const {
// WebContentsDelegate methods
// ----------------------------------------------------------------------------
+ColorChooser* WebContentsDelegateAndroid::OpenColorChooser(
+ WebContents* web_contents,
+ int color_chooser_id,
+ SkColor color) {
+ return ColorChooser::Create(color_chooser_id, web_contents, color);
+}
+
+
Peter Beverloo 2012/11/23 17:55:48 nit: only a single blank line.
Miguel Garcia 2012/11/26 11:35:10 Done.
// OpenURLFromTab() will be called when we're performing a browser-intiated
// navigation. The most common scenario for this is opening new tabs (see
// RenderViewImpl::decidePolicyForNavigation for more details).

Powered by Google App Engine
This is Rietveld 408576698